frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Google releases Gemma 4 open models

https://deepmind.google/models/gemma/gemma-4/
599•jeffmcjunkin•2h ago•168 comments

Tailscale's New macOS Home

https://tailscale.com/blog/macos-notch-escape
45•tosh•40m ago•14 comments

Qwen3.6-Plus: Towards real world agents

https://qwen.ai/blog?id=qwen3.6
296•pretext•4h ago•100 comments

George Goble died recently – known for first dual-CPU-Unix and fast BBQ lighting

https://www.legacy.com/us/obituaries/wlfi/name/george-goble-obituary?id=61144779
19•finaard•41m ago•6 comments

LinkedIn is illegally searching your computer

https://browsergate.eu/
1258•digitalWestie•5h ago•575 comments

Lemonade by AMD: a fast and open source local LLM server using GPU and NPU

https://lemonade-server.ai
325•AbuAssar•7h ago•82 comments

Hugo's New CSS Powers

https://www.brycewray.com/posts/2026/04/hugos-new-css-powers/
11•speckx•45m ago•2 comments

JSON Canvas Spec

https://jsoncanvas.org/spec/1.0/
25•tobr•3d ago•4 comments

Inside Nepal's Fake Rescue Racket

https://kathmandupost.com/money/2026/03/27/inside-nepal-s-fake-rescue-racket
206•lode•7h ago•82 comments

Significant Raise of Reports

https://lwn.net/Articles/1065620/
230•stratos123•9h ago•116 comments

IBM Announces Strategic Collaboration with Arm

https://newsroom.ibm.com/2026-04-02-ibm-announces-strategic-collaboration-with-arm-to-shape-the-f...
239•bonzini•10h ago•151 comments

Delve allegedly forked an open-source tool and sold it as its own

https://techcrunch.com/2026/04/01/the-reputation-of-troubled-yc-startup-delve-has-gotten-even-worse/
190•nickvec•3h ago•91 comments

Artemis II will use laser beams to live-stream 4K moon footage at 260 Mbps

https://www.tomshardware.com/networking/artemis-ii-will-use-laser-beams-to-live-stream-4k-moon-fo...
213•speckx•3h ago•90 comments

'Backrooms' and the Rise of the Institutional Gothic

https://thereader.mitpress.mit.edu/backrooms-and-the-rise-of-the-institutional-gothic/
115•anarbadalov•5h ago•57 comments

Sweden goes back to basics, swapping screens for books in the classroom

https://undark.org/2026/04/01/sweden-schools-books/
607•novaRom•8h ago•312 comments

Renewables reached nearly 50% of global electricity capacity last year

https://www.theregister.com/2026/04/01/renewables_generated_nearly_half_global_power/
141•Growtika•3h ago•67 comments

Ask HN: European Tech Alternatives?

17•BrunoBernardino•31m ago•5 comments

An Example of Statistical Investigation of the Text Eugene Onegin – Markov, 1913 [pdf]

https://alpha60.de/research/markov/DavidLink_AnExampleOfStatistical_MarkovTrans_2007.pdf
23•jxmorris12•3d ago•1 comments

Modern SQLite: Features You Didn't Know It Had

https://slicker.me/sqlite/features.htm
92•thunderbong•2h ago•17 comments

Cursor 3

https://cursor.com/blog/cursor-3
67•adamfeldman•49m ago•51 comments

Bringing Clojure programming to Enterprise (2021)

https://blogit.michelin.io/clojure-programming/
169•smartmic•10h ago•97 comments

Gone (Almost) Phishin'

https://ma.tt/2026/03/gone-almost-phishin/
147•luu•2d ago•68 comments

Quadratic Micropass Type Inference

https://articles.luminalang.com/a/micropass-inference/
14•simvux•5d ago•5 comments

Email obfuscation: What works in 2026?

https://spencermortensen.com/articles/email-obfuscation/
303•jaden•15h ago•88 comments

A forecast of the fair market value of SpaceX's businesses

https://futuresearch.ai/spacex-ipo-valuation/
83•ddp26•2h ago•115 comments

Reinventing the pull request

https://lubeno.dev/blog/reinventing-the-pull-request
69•bkolobara•6d ago•55 comments

Emacs-libgterm: Terminal emulator for Emacs using libghostty-vt

https://github.com/rwc9u/emacs-libgterm
73•signa11•4d ago•16 comments

EmDash: A Fresh Take on CMS

https://maciekpalmowski.dev/blog/emdash-a-fresh-take-on-cms/
40•taubek•2h ago•9 comments

Mercor says it was hit by cyberattack tied to compromise LiteLLM

https://techcrunch.com/2026/03/31/mercor-says-it-was-hit-by-cyberattack-tied-to-compromise-of-ope...
130•jackson-mcd•1d ago•39 comments

March heat in American west has left snowpack at record-low levels

https://www.theguardian.com/us-news/2026/apr/01/snowmelt-american-west
80•ijidak•3h ago•41 comments
Open in hackernews

Quadratic Micropass Type Inference

https://articles.luminalang.com/a/micropass-inference/
14•simvux•5d ago

Comments

edmundgoodman•2d ago
This is really cool!! It looks interesting for making errors in complex type systems easier to debug, but the quadratic performance of the title sounds a bit worrying for productive compiler use — and imo the benchmarks don’t really mean anything without a point of reference to a traditional unification implementation.

If this system only provides benefits in the type-error path of the compiler I wonder if a traditional single-pass unification could be used for speed on the common path of code compiling without type errors, then when unification fails this slower multi-pass approach could be run on-demand to give better error reporting. This could lazily avoid the cost of the approach in most cases, and the cases in which it would be used are less latency critical anyway.

Also, I think there is a typo in one of the code blocks: ‘2 should be unified into (string, string) not just string afaict

simvux•2d ago
Working around the performance concerns by only running this algorithm after a faster algorithm found an error is an interesting idea. I think it could work, as things that produce errors would in a real compiler be marked as "poisoned" to be ignored in further analysis and IR lowerings. Thus the two algorithms disagreeing on a type wouldn't cause a noticable difference in the end result.

Comparative benchmarks are tricky. I considered making a simpler single-pass inference branch which is based around the same data structures to create a more one-to-one comparison. But this algorithm is rather different so porting it wasn't very straight forward. I'm currently integrating this into my real compiler so from there it'll be easier to estimate the real-world performance impact of this system.

Typo has been fixed, thanks!

edmundgoodman•2d ago
Couldn’t the comparison (and also the fast path I guess) just be putting all the inference passes into a single big pass, which then avoids the quadratic number of re-applications of passes? Looks like unification is otherwise the same?
munificent•1h ago
This is what I was thinking too. Just do a single unification pass, but track the provenance of each type assignment. If an error is needed, use the provenances of the colliding unifications to decide which context locations to prioritize.
ux266478•2m ago
> I propose a new kind of type inference algorithm that always prioritises the type unifications the end-user is most likely to care about, independent from the types order in source code.

> If we could instead unify types in the order the end-user deems most important

I think the problem with this is that the desirable priority is context and programmer-dependent, and we already have this ability by the ordering of the types themselves so getting rid of that seems strange. Also this approach apparently still isn't independent from the order of types, it just imposes additional structure on top of that with multiple inference passes, making the whole affair more rigid and more complicated.

Having it ranked on order alone is something which is simple, easy to internalize, easy to reason about, and gives the utmost control to the programmer. For instance with the example given, this is the intuitive way I'd have constructed that function without even really thinking about it:

    fn example(x) -> Point[int] {
        let p = Point(x, x);
        log(["origin: ", x]);
        return p;
    }
Netting the "ideal" error.

I don't even want to think about how much harder this makes reasoning about higher order polymorphism. I think the problem here stems from an expectation that type inference is kind of a magic wand for getting something like dynamic typing. So then when no thought is put into the actual structure of the program WRT the type inference, what's instead gotten is an icky system that isn't Just Doing The Thing. Vibes-based-typing? If that's the goal, I wonder if it might be better served by fuzzy inference based on multiple-passes generating potential conclusions with various confidence scores and choosing the most likely.