Better HN
topnewbestaskshowjobs
Log inSign up

_sinelaw_

154 karma · joined Dec 3, 2025 (11mo ago) · 72 submissions

Submissions

comment 1mo ago · link · parent

I assume you mean jsdoc + tsc in js type checking mode (tsc --allowJs --checkJs --strict)?

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

Or we can just drop TypeScript completely and type-check JavaScript directly.

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

You still need the distro maintainers to cooperate. And the packaging itself can be highly involved (as in the case of rust dependencies on Debian)

comment 3mo ago · link · parent

Exactly. It's ironic that the end result is "windows is easier". Ugh.

comment 3mo ago · link · parent

Still need to handle automatic upgrades. That's my plan. I was wondering if there's a better way...

comment 3mo ago · link · parent

Flathub (not sure if these are the same people behind Flatpak) makes it clear they don't welcome these types of submissions:

https://docs.flathub.org/docs/for-app-authors/requirements

comment 3mo ago · link · parent

If I don't make my program easy to install, many people won't even try it.

Being responsive to maintainers doesn't help if maintainers never reach out or even actively refuse to package your software.

comment 3mo ago · link · parent

It's a problem for my potential users. I don't get this "it's not your job to distribute your own software".

comment 3mo ago · link · parent

Sure, I already do offer deb/rpm via GitHub release page. My problem is ensuring users have an easy way to update

comment 3mo ago · link · parent

I do publish deb files in the GitHub release page. Will take a look at aptly / reprepo

comment 3mo ago · link · parent

"Someone else's job" doesn't help getting the software into my user's hands.

I need a solution that works for my users regardless.

comment 3mo ago · link · parent

cargo install (the equivalent command here) is available. Downsides:

- very slow

- need to install prerequisites

- not possible on many machines (to weak, not enough disk for running builds)

Many users don't want to deal with this

comment 3mo ago · link · parent

Hi, I'm the author of this post (and of Fresh). I've spent a lot of time getting it distributed cleanly to Linux users of all distros, and it's an uphill battle. I'm curious how other solo maintainers are dealing with this problem. Is a self updating static binary a reasonable solution?

14.

I hate packaging my software for Linux(getfresh.dev ↗)

101 points · by _sinelaw_ · 3mo ago · 150 comments

comment 5mo ago · link · parent

(Fresh maintainer here)

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

The harder problem is conflicting design choices, or duplicating similar infra. It means I need to be much more involved in steering individual agents and planning up front (waterfall style), which limits the parallelism further

comment 9mo ago · link · parent

I did when just starting on a new project, it was working well when I had many new components to implement. But as the project matured and stabilized every new feature is cross-cutting and it's impossible to parallelize the work without running into conflicts (design conflicts, where two agents would add similar overlapping mechanisms, and also the usual code conflicts, touching the same files). Also, with project maturity I'm much more concerned about keeping it stable and correct, which is hard to do with parallel agents running amok.

comment 9mo ago · link · parent

It even runs Fresh so you can have a mini VSCode-like experience on your phone (pkg update && pkg install fresh-editor)

comment 9mo ago · link · parent

Let me know if you still have issues, I'll look into it

comment 10mo ago · link · parent

Is this 'task' feature really useful? I'd say applications like IDEs and text editors should not have automatic arbitrary execution of code in the first place. 'eval' should be blocked and extensions/plugins should have only very limited power to execute external logic (such as processes for LSP) or require allowlisting manually every process.

comment 10mo ago · link · parent

For Claude, it's enough to prompt "use tmux to test", that usually does the work out of the box. If colors are important I also add "use -e option with capture-pane to see colors". It just works. I used it regularly with Claude and my TUI. For other agents other than Claude I need to use a more specific set of instructions ("use send-keys, capture-pane and mouse control via tmux" etc.)

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 also a long time emacs user (>15 years) but got tired of the endless config fiddling, with some packages breaking over emacs versions, other packages which were cool at the time slowly getting stale and need to switch to yet another similar incarnation of the same idea. And most of all having to recover the config every time I use a new computer or just connect to a new VM.

I'm building an alternative, and I haven't opened emacs for a month now

comment 10mo ago · link · parent

What specifically are you missing from Zed? (not a Zed user but curious to know)

comment 10mo ago · link · parent

I also got tired of the bloat and also prefer working from the terminal.

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

For a long time I watched TypeScript take over the JavaScript ecosystem as a reasonable way to add structure and safety. But even before TypeScript existed I was thinking about how to approach this differently, ripping out the "bad parts" of JavaScript instead of accommodating them with a complex and partially strict type system.

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

Added GPM support, try latest master or release >= 0.1.25 (rolling out now)

comment 11mo ago · link · parent

Did you try "use option as meta key"? https://superuser.com/questions/1038947/using-the-option-key...

comment 11mo ago · link · parent

Done, you can pass now file, or file:line, or file:line:column in the cli

comment 11mo ago · link · parent

zed: ~20 seconds to open the file, 4.7gb RAM

no ansi color rendering

123