News for hackers. Stuff that matters.

weliveindetail

Re:Using the TPDE Codegen Back End in LLVM Orc on Tuesday September 30, 2025 @03:14PM (#45429886)
Please note that the post didn't mention the word benchmark a single time ;) It does a "basic performance measurement" of "our csmith example". Anyway, thanks for your notes, they are very welcome and valid.

Comparing TPDE against the default optimization level in ORC is not fair (because that is -O2 indeed), but that's what we get off-the-shelf. I tested the explicit FastISel setting and it didn't help on the LLVM side, as you said. I didn't try the command-line option though, thanks for the tip! (Especially the -pass-remarks-missed will be useful.)

And yeah, csmith doesn't really generate representative code, but again that was not stated either. I didn't dive into JITLink as it would be a whole post on its own, but yes feature-completeness prevailed over performance here as well -- seems characteristic for LLVM and isn't soo surprising :)

Last but not least, yes multi-threading isn't working as good as the post indicates. This seems related to the fix that JuliaLang did for the TaskDispatcher [1]. I will correct this in the post and see which other points can be addressed in the repo.

Looking forward for your OrcCompileLayer in TPDE!

[1] https://github.com/JuliaLang/julia/pull/58950

RuntimeDYLD is legacy, you might want to switch Postgres to use JITLink instead: https://llvm.org/docs/JITLink.html
Re:LLvee – LLVM AI on Thursday September 12, 2024 @04:54PM (#41525450)
Scam?
Re:Look ma, I wrote a new JIT compiler for PostgreSQL on Monday March 18, 2024 @05:48PM (#39750465)
Interesting, because we store relocatable objects. And process symbols can be resolved by name if you really want. It might be yet another performance trade-off though.
Re:Look ma, I wrote a new JIT compiler for PostgreSQL on Monday March 18, 2024 @09:56AM (#39744585)
> There is one way to make the LLVM JIT compiler more usable, but I fear it’s going to take years to be implemented: being able to cache and reuse compiled queries.

Actually, it's implemented in LLVM for years :) https://github.com/llvm/llvm-project/commit/a98546ebcd2a692e...

Re:JIT in ClickHouse on Sunday February 11, 2024 @03:38PM (#39338448)
RuntimeDyld is being replaced by JITLink and most recent development happens there. When moving on to new LLVM versions, this might be something to consider: https://llvm.org/docs/JITLink.html
Re:JITing Algorithms and Data Structures with LLVM on Wednesday November 01, 2023 @06:20PM (#38106162)
That really works great for people who have 100M times more lookups than inserts/deletions and less than 3K nodes :)
Re:Fast Page Maps for JIT on Tuesday June 21, 2022 @06:05AM (#31822209)
Great in-detail article, thanks! In the last paragraph you state that pseudo read-write-ex­ecute maps work "on the shiny new Apple sys­tems". Do you mean M1 with macOS 12 on arm64? Did you try it on other hardware/OSs? If it only works there, any ideas why that is?
Re:Query-Based Compiler Architectures on Friday June 26, 2020 @03:26AM (#23649599)
> OrcJIT has a pretty decent caching layer

(Sadly) this is not correct. If you want to cache compiled code between sessions, your only option so far are handwritten object caches along the lines of this example:

https://github.com/llvm/llvm-project/blob/ae47d158a096abad43...

Re:Gmail confidential mode is not secure or private on Friday June 21, 2019 @11:26AM (#20243338)
Jeopardy: An email option that encourages people to add OTHER people's phone numbers to Google's database.
Re:Huawei case prompts F/OSS reconsideration (German) on Tuesday May 21, 2019 @07:58AM (#19969279)
> US companies have now been shown for what they really are: an extension of the US government.

Interesting. Isn't that exactly what the US is blaming Huawei for?

No big surprise given the past riots against multinational companies in the district [1]. Apparently those responsible knew about that as much as they care about people & culture here. From a local's perspective, these reactions were obvious and even reasonable. Never been in Krzbrg on a 1. of May?

[1] https://www.tagesspiegel.de/berlin/neueroeffnung-mit-steinen...

Re:Carbon Removal Technologies on Tuesday October 23, 2018 @07:50PM (#18288506)
The problem with +2° is, that we will be at +5° soon after. Phase III is an irreversible chain reaction.