frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

A Basic Just-In-Time Compiler (2015)

https://nullprogram.com/blog/2015/03/19/
31•ibobev•3h ago

Comments

possiblywrong•1h ago
Following is the closed form solution linked in the article (from a since-deleted Reddit comment):

    from functools import reduce

    def recurrence(ops, a0, n):
        def transform(x, op):
            return eval(repr(x) + op)
        ops = ops.split()
        m = reduce(transform, [op for op in ops if op[0] in ('*', '/')], 1)
        b = reduce(transform, ops, 0)
        for k in range(n + 1):
            print('Term 0: ', a0 * m ** k + b * (m ** k - 1) / (m - 1))
> This is really only interesting if a particular (potentially really large) term of the sequence is desired, as opposed to all terms up to a point. The key observation is that any sequence of the given set of operations reduces to a linear recurrence which has the given solution.
kscarlet•1h ago
It seems that JIT is overloaded with at least 2 meaning.

The canonical definition of JIT is "compilation during execution of a program". Usually, a program is being interpreted first, then switches to compiled code in the middle of execution. This is not what this article does.

What this article does is sometimes called on-the-fly AOT, or just on-the-fly compilation. I'd prefer not overloading the term "JIT".

MobiusHorizons•33m ago
I always took the distinction to be the executable memory bit as opposed to writing an executable and then launching it in the usual way. Of course high performance runtimes that contain JITs do typically interpret first in order to get type information and reduce startup latency, but that’s more a function of the language not being efficiently AOT compileable rather than fundamental to the concept of a JIT
kscarlet•25m ago
In that sense almost every compiled Lisp/Scheme implementation, GHC, etc. or any other interactive programming system, count as JIT. But virtually nobody in those circles refer to such implementations as JIT. Instead, people says "I wish our implementation was JIT to benefit from all those optimizations it enables"!
MobiusHorizons•15m ago
Do they generate machine code in ram and jump to it? Or do they interpret byte code?

EDIT: at least GHC seems to be a traditional AOT compiler.

Publish on your own site, syndicate elsewhere

https://indieweb.org/POSSE#
435•47thpresident•8h ago•101 comments

A Basic Just-In-Time Compiler (2015)

https://nullprogram.com/blog/2015/03/19/
32•ibobev•3h ago•5 comments

Daft Punk Easter Egg in the BPM Tempo of Harder, Better, Faster, Stronger?

https://www.madebywindmill.com/tempi/blog/hbfs-bpm/
305•simonw•6h ago•53 comments

2026 will be my year of the Linux desktop

https://xeiaso.net/notes/2026/year-linux-desktop/
321•todsacerdoti•4h ago•232 comments

Show HN: Website that plays the lottery every second

https://lotteryeverysecond.lffl.me/
80•Loeffelmann•4h ago•35 comments

Proving Liveness with TLA

https://roscidus.com/blog/blog/2026/01/01/tla-liveness/
21•ibobev•3h ago•1 comments

Clicks Communicator

https://www.clicksphone.com/en/communicator
282•microflash•10h ago•198 comments

IPv6 just turned 30 and still hasn't taken over the world

https://www.theregister.com/2025/12/31/ipv6_at_30/
298•Brajeshwar•13h ago•598 comments

Ask HN: Who is hiring? (January 2026)

262•whoishiring•12h ago•167 comments

Unix v4 (1973) – Live Terminal

https://unixv4.dev/
134•pjmlp•9h ago•60 comments

The Cost of a Closure in C: The Rest

https://thephd.dev/the-cost-of-a-closure-in-c-c2y-followup
5•ingve•2d ago•0 comments

Linux kernel security work

http://www.kroah.com/log/blog/2026/01/02/linux-kernel-security-work/
70•chmaynard•6h ago•32 comments

Adventure 751 (1980)

https://bluerenga.blog/2026/01/01/adventure-751-1980/
5•quuxplusone•1h ago•0 comments

Einstein Probe detects an X-ray flare from nearby star

https://phys.org/news/2025-12-einstein-probe-ray-flare-nearby.html
11•wglb•2h ago•2 comments

Microsoft kills official way to activate Windows 11/10 without internet

https://www.neowin.net/news/report-microsoft-quietly-kills-official-way-to-activate-windows-1110-...
176•josephcsible•4h ago•112 comments

Fighting Fire with Fire: Scalable Oral Exams

https://www.behind-the-enemy-lines.com/2025/12/fighting-fire-with-fire-scalable-oral.html
131•sethbannon•9h ago•187 comments

TinyTinyTPU: 2×2 systolic-array TPU-style matrix-multiply unit deployed on FPGA

https://github.com/Alanma23/tinytinyTPU-co
92•Xenograph•9h ago•39 comments

Jank Lang Hit Alpha

https://github.com/jank-lang/jank
127•makemethrowaway•8h ago•22 comments

Global software engineering job postings outlook – 2026

https://jobswithgpt.com/blog/global_software-engineering_jobs_january_2026/
49•sp1982•6h ago•16 comments

The PGP Problem (2019)

https://www.latacora.com/blog/2019/07/16/the-pgp-problem/#the-answers
21•croemer•5d ago•25 comments

What you need to know before touching a video file

https://gist.github.com/arch1t3cht/b5b9552633567fa7658deee5aec60453/
306•qbow883•6d ago•195 comments

Ask HN: Who wants to be hired? (January 2026)

95•whoishiring•12h ago•178 comments

Chain Flinger

https://nealstephenson.substack.com/p/kdk-kinetik-der-kontinua-part-1-introduction
33•roomey•5d ago•7 comments

Blob Opera, Community Edition

https://opera.addy.ie
19•padolsey•1w ago•2 comments

Accounting for Computer Scientists (2011)

https://martin.kleppmann.com/2011/03/07/accounting-for-computer-scientists.html
79•tosh•10h ago•27 comments

Punkt. Unveils MC03 Smartphone

https://www.punkt.ch/blogs/news/punkt-unveils-mc03
129•ChrisArchitect•11h ago•119 comments

The rsync algorithm (1996) [pdf]

https://www.andrew.cmu.edu/course/15-749/READINGS/required/cas/tridgell96.pdf
99•vortex_ape•11h ago•9 comments

Uxn32: Uxn Emulator for Windows and Wine

https://github.com/randrew/uxn32
40•ibobev•5d ago•3 comments

Rope science, part 11 – practical syntax highlighting (2017)

https://xi-editor.io/docs/rope_science_11.html
5•PaulHoule•1w ago•0 comments

Assorted less(1) tips

https://blog.thechases.com/posts/assorted-less-tips/
185•todsacerdoti•15h ago•42 comments