frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: OpenFret – Guitar inventory, AI practice, and a note-detection RPG

https://openfret.com?referral=showhn
1•openfret•4m ago•0 comments

Scala Days 2025: Conference Highlights and Talk Recordings

https://scala-lang.org/blog/2025/11/26/scaladays-2025-review-video-announcement.html
1•based2•4m ago•0 comments

Why the Sanitizer API is just `setHTML()`

https://frederikbraun.de/why-sethtml.html
1•todsacerdoti•5m ago•0 comments

The History of Xerox

https://www.abortretry.fail/p/the-history-of-xerox
1•BirAdam•5m ago•0 comments

Cursor and Claude Opus 4.5 is a game changer

1•seinecle•7m ago•0 comments

Measuring Agents in Production

https://arxiv.org/abs/2512.04123
1•tlarkworthy•9m ago•0 comments

The Ways the AI Bubble Might Burst

https://www.wheresyoured.at/premium-the-ways-the-ai-bubble-might-burst/
4•chilipepperhott•10m ago•0 comments

'Blood clots surge like never before ': Dr McCullough on mRNA Covid vaccines [video]

https://www.youtube.com/watch?v=rGsXu59bC3w
2•Bender•10m ago•1 comments

Puppy Linux

https://puppylinux-woof-ce.github.io/
3•doener•18m ago•1 comments

Bedrock Linux is a meta Linux distribution which allows users to mix-and-match

https://bedrocklinux.org/
2•doener•22m ago•1 comments

DevRel Is Back [video]

https://www.youtube.com/watch?v=eWMM4J_rfDg
1•mooreds•24m ago•0 comments

XKeyscore

https://en.wikipedia.org/wiki/XKeyscore
7•belter•29m ago•0 comments

3D Chess OpenGL PBR

https://github.com/elmarsan/Chess
2•elmarsan•30m ago•0 comments

Nina Simone's childhood home restored in North Carolina

https://www.axios.com/2025/12/03/nina-simone-home-restored-music
1•gnabgib•32m ago•0 comments

A fetch client that types itself

https://github.com/freb97/discofetch
1•freb97•34m ago•0 comments

Show HN: I built a quantitative analysis tool to retail traders

https://quantlens.app
1•indian_mafia•36m ago•0 comments

DeviceScript Archived – TypeScript for Microcontrollers

https://github.com/microsoft/devicescript
1•kandros•36m ago•0 comments

Embedded Universal Predictive Intelligence: a coherent framework for multi-agent

https://arxiviq.substack.com/p/embedded-universal-predictive-intelligence
1•che_shr_cat•37m ago•0 comments

Dynamic Dataflow Templating: the missing semantic for dataflow programming

https://observablehq.com/@tomlarkworthy/dataflow-templating
1•tlarkworthy•37m ago•0 comments

Show HN: XeraSentry – Real-time Ethereum security monitoring in Python

https://lavender-clarette-17.tiiny.site
1•Chu_Wong•37m ago•0 comments

I need advice for this AI Assistant Im Building

1•DylanWain•37m ago•0 comments

Jet Powered Blower

https://www.youtube.com/watch?v=BcEkt5vQTVQ
2•reader9274•38m ago•0 comments

Apple's Succession Intrigue Isn't at All

https://daringfireball.net/linked/2025/12/05/apple-succession-the-information
3•JumpCrisscross•39m ago•0 comments

Mind Switches in Futurama and Stargate

https://arxiv.org/abs/1209.4991
2•kekqqq•41m ago•0 comments

WebGPU Comes to Android (Alpha)

https://developer.android.com/jetpack/androidx/releases/webgpu
3•r2vcap•43m ago•0 comments

A brain parasite takes over America

https://usop.substack.com/p/usop-day-11
3•richardatlarge•44m ago•0 comments

OSPO Book from the Todo Group

https://todogroup.org/resources/book/
3•devonnull•45m ago•0 comments

Undaunted Mind: The Intellectual Life of Benjamin Franklin

https://www.lrb.co.uk/the-paper/v47/n22/ferdinand-mount/his-very-variousness
3•mitchbob•49m ago•1 comments

GoboLinux: Experimental Linux distribution that Redefines the Filesystem

https://gobolinux.org/
2•doener•50m ago•0 comments

FBI Making List of American "Extremists," Leaked Memo Reveals

https://www.kenklippenstein.com/p/leak-fbi-list-of-extremists-is-coming
21•O1111OOO•53m ago•8 comments
Open in hackernews

Java Hello World, LLVM Edition

https://www.javaadvent.com/2025/12/java-hello-world-llvm-edition.html
151•ingve•9h ago

Comments

jakozaur•8h ago
LLVM IR is quite fun to play with from many programming languages. The Java example is rather educational, but there are several practical example,s such as in Go Lang:

https://github.com/llir/llvm

znpy•8h ago
500 internal server error…
zkmon•8h ago
What's wrong with using the standard JDK for Java code?
throwaway150•7h ago
Nothing wrong with it. Why would you assume the author is in anyway hinting that there's something wrong with using the standard JDK for Java code?
zkmon•7h ago
Ok. Let me ask differently. Why would I download and use LLVM for working with java code? Which usecases favor this?
drzaiusx11•7h ago
This is interop glue to cross language boundaries in the JVM without the problems that come with JNI. The natural goal/use-case being that you can call pre-existing code in other languages that target LLVM IR.
TazeTSchnitzel•7h ago
That's not what the article is about.
connicpu•6h ago
The article is presenting something different entirely. This is the precursor to what it would take to create a compiler written in java that produces native code.
mands•6h ago
It's more an fun educational overview of the new FFM API.

I can't think of many actual use-cases where you'd want to use the LLVM JIT over those built-in to HotSpot.

Interfacing with existing LLVM-based systems, writing a very tight inner loop using LLVM where you absolutely need LLVM-like performance, or creating a compiler that targets LLVM using Java would be the main "real-world" use-cases.

almostgotcaught•6h ago
"why would I use a frying pan when I can use a flashlight"

The two things have nothing to do with each other.

kachapopopow•7h ago
LLVM is such an amazing piece of software, the amount of uses for it are unlimited especially when it comes to obfuscation. The IR is also really fun for compiling bytecode to native code since it's pretty trivial to translate it into IR (opposite of what is done in this article)
troymc•7h ago
I made a poster showing how one might write a Hello World program in 39 different programming languages, and even different versions of some common languages like Java:

https://troymcconaghy.blog/2025/01/13/39-hello-world-program...

throwaway150•7h ago
Cool poster! If you don't mind me asking, would you share what tools you use to create this poster? You've got syntax highlighting going on there too. What did you use for that?
iTokio•6h ago
You just have to read his blog, it is short and he answered everything.

> he used python and xelatex

> https://github.com/ttmc/hello-world-ways

troymc•6h ago
Yep, and for syntax highlighting, I used the minted package [1]. Internally, minted uses the Pygments library [2].

[1] https://ctan.org/pkg/minted

[2] https://pygments.org/

throwaway150•6h ago
Thanks!
pron•6h ago
Nice, but as of JDK 25 (the preview JEP 445 has become the permanent JEP 512), the canonical Hello World in Java is:

    void main() {
        IO.println("Hello World");
    }
troymc•6h ago
Thanks, I made a note to update that someday.
prmoustache•2h ago
Not a java developer but why the void? Shouldn't your main function and program return an integer?
tadfisher•1h ago
I believe that is a C-ism, where the C runtime calls your main() and exits the process with the return value. The Java equivalent is System.exit(int status).
gavinray•1h ago
The return type of a Java main is the JVM platform return type

Sending system signals is external to the JVM platform

pmdr•5h ago
Objective C is by far the weirdest on that list.
watersb•2h ago
Smalltalk, but in C
realo•3h ago
This is super cool! Now someone should make a similar poster with Hello World sent to a serial port.

Bonus points if it is a RS485 port.

Some language that seem to look good might show their true ugly face...

Octoth0rpe•6h ago
I've been playing with a very basic compiler for a language that looks a bit like go -> llvm ir, but I'm finding myself constantly revising my AST implementation as I progressively add more things that it needs to represent. Is anyone aware of any kind of vaguely standardized AST implementation used by more than one project? I've been searching this morning for one and am coming up empty. My thinking is that if I can find some reasonably widely used implementation, then hopefully that implementation has thought out lots of the corner cases that I haven't gotten to yet.
znkr•6h ago
LISP ;-)
xnacly•6h ago
This, lisp is perfect for representing arbitrary data, nesting is just another sexpr, easy to produce, easy to parse and easy to debug / reason about
pjmlp•4h ago
When I did my degree, the years prior to mine had some flexibility choosing the implementation language for compilers class.

Lisp and Prolog were forbidden due to how easy the whole exercise would be.

Octoth0rpe•6h ago
I can appreciate this answer, but I don't think it's really what I'm asking.

I think I'm more looking for some kind of standardized struct definition that translates easily to llvm IR and is flexible enough for a wide variety of languages to target.

Something like this: https://gist.github.com/thomaswp/8c8ef19bd5203ce8b6cd4d6df5e... (Which doesn't meet my criteria because AFAICT isn't used by anything, but is reasonably close to what I want) or this: https://docs.rs/sap-ast/latest/src/ast/lib.rs.html#1-83 (which seems specific to SAP, I would like something more general)

emptysea•6h ago
Ruff’s ast is used by Ruff, Ty, and Pyrefly
Octoth0rpe•6h ago
Thank you! this looks pretty helpful
rendaw•6h ago
Self plug, I put together this reference/example before+after (high and corresponding intermediate/low level) example gallery for for a couple languages: https://andrewbaxter.github.io/semicompiled/ https://github.com/andrewbaxter/semicompiled?tab=readme-ov-f...

I was using it while dabbling on compiler stuff, it was useful to have a set of concise compilation examples. I haven't touched it much lately, unfortunately, and I added the eBPF because the target was there but had no way to validate it (standalone eBPF validator where?) so I think it's probably somewhat wrong... or invalid at least, maybe that's a separate concern for people who would want this.

tuhgdetzhh•6h ago
I'm always a bit shocked how casual people people wget and execute shell scripts as part of their install process.

This is the equivalent of giving an author of a website remote code execution (RCE) on your computer.

I get the idea that you can download the script first and carefully read it, but I think that 99% of people won't.

balder1991•5h ago
Even assuming it’s not malicious, the script can mess up your environment configuration.
exe34•5h ago
I'm so thankful for nixos for making it hard for me to give in to that temptation. you always think "oh just this once". but with nixos I either have to do it right or not bother.
hombre_fatal•4h ago
NixOS gives you a place to configure things in a reproducible way, but it doesn’t require you do it.
tombert•1h ago
It sort of does actually, at least if you don't have nix-ld enabled. A lot of programs simply won't start if they're not static-linked, and so a lot of the time if you download a third-party script, or try to install it when the `curl somesite.blah | sh`, it actually will not work. Moreover, it also is likely that it won't be properly linked in your path unless you do it thr right way.
exe34•28m ago
$ ./Downloads/tmp/xpack-riscv-none-elf-gcc-15.2.0-1/bin/riscv-none-elf-cpp Could not start dynamically linked executable: ./Downloads/tmp/xpack-riscv-none-elf-gcc-15.2.0-1/bin/riscv-none-elf-cpp NixOS cannot run dynamically linked executables intended for generic linux environments out of the box. For more information, see: https://nix.dev/permalink/stub-ld

You have to go out of your way to make something like that run in an fhs env. By that point, you've had enough time to think, even with ADHD.

zenlot•5h ago
If you don't trust the software, don't install it.
OptionOfT•4h ago
Equally I don't like how many instructions and scripts everywhere use shorthands.

Sometimes you see curl -sSLfO. Please, use the long form. It makes life easier for everybody. It makes it easier to verify, and to look up. Finding --silent in curl's docs is easier than reading through every occurrence of -s.

   curl --silent --show-error --location --fail --remote name https://example.com/script.sh
Obligatory xkcd: https://xkcd.com/1168/
ndsipa_pomu•3h ago
Absolutely agree.

The shorthands are for when typing it at a console and the long form versions should be used in scripts.

Terr_•10m ago
For a small flight of fancy, imagine if each program had a --for-docs argument, which causes it to simply spit out the canonical long-form version equivalent to whatever else it has been called with.
VMG•2h ago
The thing that gets installed, if it is an executable, usually also has permissions to do scary things. Why is the installation process so scrutinized?
stouset•59m ago
I’m always a bit shocked how seriously people take concerns over the install script for a binary executable they’re already intending to trust.
romaniitedomum•1m ago
> I’m always a bit shocked how seriously people take concerns over the install script for a binary executable they’re already intending to trust.

The issue is provenance. Where is the script getting the binary from? Who built that binary? How do we know that binary wasn't tampered with? I'll lay odds the install script isn't doing any kind of GPG/PGP signature check. It's probably not even doing a checksum check.

I'm prepared to trust an executable built by certain organisations and persons, provided I can trace a chain of trust from what I get back to them.

mands•5h ago
Nice read up of the new FFM API.

Recently saw a new FFM-based zero-copy transport and RPC framework using io_uring at https://www.mvp.express/

An interesting time to be in the Java/JVM ecosystem, meanwhile, back to my Spring Boot app...tho least we're on Java 25

pron•3h ago
Tangential:

The --enable-native-access option mentioned in the article is part of a large effort we call "Integrity by Default"[1]. The idea is that a library module can violate invariants established by another module (e.g. access to private fields and methods, mutation of final fields etc.) requires approval by the application, so that a library will not be able to have a global effect on the application without its knowledge, and the correctness of each module could be verfied in isolation.

Now, --enable-native-access is also required to use JNI, but JNI can violate the integrity of Java invariants in a much more extensive way than FFM can. For example, JNI gives native code access to private fields of classes in arbitrary modules, while FFM does not. The only invariant FFM can break is freedom from undefined behaviour in the C sense. This is dangerous, but not nearly as dangerous as what JNI can do.

For the time being, we decided to enable both FFM and JNI with the same flag, but, given how more dangerous JNI is, in the future we may introduce a more fine-grained flag that would allow the use of FFM but not of JNI.

[1]: https://openjdk.org/jeps/8305968

tadfisher•1h ago
Where does the "final means final" effort fit in? Can the JVM prevent modification of final fields via JNI, or is --enable-native-access also going to require (or imply) the flag which enables setAccessible() and friends?
namegulf•1h ago
Wondering the benefits and how is this different from using GraalVM to build native images?

For eg. we could use Spring + Graal VM and get the application into native binaries without worrying too much about the low level stuff.

What are we missing?

gavinray•1h ago
This article specifically discusses calling external C ABI libraries via the FFM API.

GraalVM is for compiling JVM bytecode to native, architecture-specific binaries.

FFM is like "[DllImport]" in .NET, or "extern" definitions in other languages.

The article shows how to auto-generate JVM bindings from C headers, and then allocate managed memory + interact with externally linked libs via the FFM API passing along said managed memory.

fniephaus•33m ago
BTW: We (the GraalVM team) maintain a full-blown LLVM bitcode runtime that can be embedded in Spring or any other JVM application and compiled to native: https://github.com/oracle/graal/tree/master/sulong
gavinray•16m ago
May as well throw the Native Image C API for FFM-like capabilities out there too

https://www.graalvm.org/latest/reference-manual/native-image...

One of the neatest things I've been able to do is compile a .dll library "plugin" for an application which loads plug-ins by invoking a special exported symbol name like "int plugin_main()" using GraalVM and @CEntryPoint

The entrypoint function starts a Graal isolate via annotation params and no native code was needed