154 karma · joined Dec 3, 2025 (11mo ago) · 72 submissions
comment 1mo ago · link · parent
inty infers more - including generics (parametric polymorphism), while tsc is more of a simpler local inference.
inty is more strict - it accepts less programs than tsc would. This is mostly on purpose (to our benefit) as some of those programs have unsound code like array covariant (downcasting array members of the wrong type). tsc makes it easier to slip through these bugs.
And if tsc + jsdoc is good then the same question remains (do we really need the TypeScript language?)
comment 1mo ago · link · parent
With HM-style type inference, row-polymorphism, sum types, type classes for overloading + operations, recursive types for object methods, and type annotations for edge cases.
I've been working on this since before TypeScript existed. Latest incarnation: https://github.com/sinelaw/inty
Demo: https://sinelaw.github.io/inty/ (you may need to reload once)
comment 3mo ago · link · parent
14.
I hate packaging my software for Linux(getfresh.dev ↗)
101 points · by _sinelaw_ · 3mo ago · 150 comments
comment 5mo ago · link · parent
Fresh itself has a few dozen direct dependencies. About 33 of those already exist on Debian. It boils down to these missing dependencies:
- The entire oxc toolchain — oxc_allocator, oxc_ast, oxc_codegen, oxc_diagnostics, oxc_isolated_declarations, oxc_parser, oxc_semantic, oxc_span, oxc_transformer
- rquickjs, rquickjs-serde (the QuickJS plugin engine)
- ts-rs
- jsonc-parser
- rust-i18n (this one has an open ITP)
If we build Fresh without plugins enabled, it's just the last three.
comment 9mo ago · link · parent
comment 10mo ago · link · parent
comment 10mo ago · link · parent
Since I have e2e tests, I only use the agent for: guiding it on how to write the e2e test ("use tmux to try the new UI and then write a test") or to evaluate its overall usability (fake user testing, before actual user testing): "use tmux to evaluate the feature X and compile a list of usability issues"
comment 10mo ago · link · parent
I'm building an alternative, and I haven't opened emacs for a month now
comment 10mo ago · link · parent
I'm building Fresh [0] [1] as an alternative to VSCode that runs in your terminal, with the main goal being ease-of-use out of the box (not a vi-clone modal editor), for example supports mouse, menu, command palette, etc out of the box. LSP as well. I'm focused on making it easy to use with minimum or zero configuration.
[0] https://github.com/sinelaw/fresh [1] https://sinelaw.github.io/fresh/
comment 11mo ago · link · parent
Also, recently I found out just how expensive (runtime-wise) it is to host a full-blown TypeScript host, such as Deno. This is very cool tech but kind of bloated when all you want is to run some JavaScript, e.g. as a plugin system. It's possible to just pre-compile (transpile) your .ts files and then ship only the JavaScript output and use a lightweight runtime (QuickJS or even the new Micro QuickJS), but then compilation becomes a neccessary step for what could've been purely dynamic, ad-hoc and quick plugins (think elisp in emacs).
minfern is my second shot at this, and I'm exploring just how much JavaScript idioms are "must have" for it to be useful.
26.
Show HN: minfern – Type inference for JavaScript without transpilation(github.com ↗)
2 points · by _sinelaw_ · 11mo ago · 1 comment
comment 11mo ago · link · parent