frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: I built a game where you are an LLM's subagent

https://github.com/gulivan/worker755
238•ivantgam•7h ago•56 comments

Show HN: Deflate X-Ray, See inside a compressed file

https://hrih.si/projects/deflate-xray/
12•DonAtimator•2d ago•2 comments

Show HN: I built a tool to animate your code

https://trycodeclip.com/
2•koochi10•44m ago•0 comments

Show HN: You Are Hilbert

https://you-are-hilbert.koenvangilst.nl/
2•vnglst•44m ago•0 comments

Show HN: Hidely Hide any window from screen sharing on Windows

https://github.com/CodingRule/Hidely
2•elure•1h ago•0 comments

Show HN: PDF ProMaster – PDF tools that run in the browser, no uploads

https://pdfpromaster.com/
2•pdfpromaster•1h ago•0 comments

Show HN: Type-C – variants, options, generics and pattern matching for C

https://github.com/stass/type-c
2•stass•3h ago•0 comments

Show HN: Zero C# – C# without a runtime or GC

https://onurgumus.github.io/zero-csharp/index.html
174•reverseblade2•1d ago•120 comments

Show HN: TEB RUN – a pseudo-3D arcade racer in TypeScript and Canvas, no engine

https://tebrun.io/
3•tebrun•4h ago•0 comments

Show HN: An ASCII cell aquarium for your terminal

https://github.com/kborer/cells/
65•kborer•4d ago•22 comments

Show HN: The Riemann Proof Handbook

https://github.com/tamnd/riemann-handbook
82•tamnd•15h ago•58 comments

Show HN: Foolscap – a writing app that reads your book and never writes for you

https://foolscap.works/
129•atugard•3d ago•95 comments

Show HN: Rmux – A lightweight GPU rendered terminal workspace

https://rmux.app
5•JaTochNietDan•8h ago•0 comments

Show HN: I made a PS1 style racing game

https://outpostracer.com
45•shash7•1d ago•33 comments

Show HN: Tinnitus frequency finder and audio notch tool

https://trynotched.com/find
229•brianrhea•4d ago•136 comments

Show HN: Fast deterministic natural language search for OpenStreetMap data

https://hippomaps.ch/?q=cafes+by+the+Limmat+100+m+from+the+lake+in+zurich#map=15.02/47.36708/8.54935
138•vihren•3d ago•47 comments

Show HN: NestDaddy Memory, one memory shared by ChatGPT, Claude and Cursor

https://nestdaddy.com/memory
3•nestdaddy•9h ago•2 comments

Show HN: OpenComputer – an open source alternative to Devin

https://github.com/diggerhq/opencomputer
124•iacguy•2d ago•36 comments

Show HN: Mastra Factory, the open-source software factory we use to build Mastra

157•codekarate•4d ago•45 comments

Show HN: A Lichess client for playing chess and puzzles on Kobo e-readers

https://github.com/BandarLabs/Cobalt/tree/main/apps/lichess
4•thepoet•10h ago•0 comments

Show HN: agent-mcts – Monte Carlo tree search on top of Claude Code

https://github.com/natsu0529/agent-mcts
15•natsu529•1d ago•2 comments

Show HN: I built a newspaper for white-collar crime that paints every portrait

https://financialcrimes.fyi/
3•veryduhass•13h ago•1 comments

Show HN: LZ0 -An asymmetric LZ compressor with ultra minimal, 0-alloc decoder

https://github.com/seb3773/lz0
26•seb3773•3d ago•10 comments

Show HN: Npx.tools, a keyboard-friendly index of developer tools

https://npx.tools/
2•hasnainkhagan•16h ago•0 comments

Show HN: Type Fighter 2

https://typefighter2.com/
150•torumitch•4d ago•73 comments

Show HN: Cornhole News – A Hacker News inspired site for news across the Midwest

https://cornholenews.news
237•cornholemedia•3d ago•122 comments

Show HN: Hikari.ImGui, a pure C# re-implementation of Dear ImGui

https://github.com/LeastActionTech/Hikari.ImGui
2•charm137•18h ago•2 comments

Show HN: A modern take on the Go language

https://github.com/telgatech/gpp
6•u89012•18h ago•2 comments

Show HN: Lifetime Black Friday Deals (Mega List)

https://www.blackfridaydeals.directory/black-friday-lifetime-deals
2•bfdd•18h ago•0 comments

Show HN: Mount your iPhone as a filesystem on Linux over WiFi

https://github.com/Amirjon06/iphone-linux
4•Amirjon_Abd•20h ago•0 comments
Open in hackernews

Show HN: Type-C – variants, options, generics and pattern matching for C

https://github.com/stass/type-c
2•stass•3h ago
I love C, but often using it for parsing, tree walking or complex error handling leads to spaghetti code.

Of course there is Swift, Ocaml or Rust for situations like that, but then you are either forced to convert the entire codebase, or add a runtime library or go through the pain of bridging C to the new language. Sometimes there are no compilers for the target architecture too when you are working on embedded stuff.

This is where Type-C comes in. It works as a preprocessor like TypeScript and calls the original C driver behind the scenes. Your code stays normal C for the most part, so you can predict how the code will be laid out. TypeC is a full superset of C11, so any C11 code compiles as is.

Want to use TypeC just for one file? Rename to .tc and use the features you want, the rest of the codebase stays the same. This works for kernel or baremetal code too as there is no runtime or extra libararies.

There are examples of TypeC code as well as real-world tests of converting existing code to TypeC on the GitHub page.

This is how the code looks like for an expression evaluator: type expr = | Num(int value) | Add(const expr l, const expr r) | Mul(const expr l, const expr r) | Div(const expr l, const expr r);

  static result(int, eval_error)
  eval(const expr *e)
  {
      int d;

      match (*e) {
      case Num(value):
          return (Ok(value));
      case Add(l, r):
          return (fit((long long)try eval(l) + try eval(r)));
      case Mul(l, r):
          return (fit((long long)try eval(l) * try eval(r)));
      case Div(l, r):
          d = try eval(r);
          if (d == 0)
              return (Err(DivByZero));
          return (fit((long long)try eval(l) / d));
      }
  }

  % typec -std=c11 -Wall -Wextra eval.tc
  $ ./a.out
  14
  division by zero
Would love to hear your thoughts and feedback!