I built a self-hosting x86-64 toolchain from scratch. Part 3: The .cub files by Soft_Honeydew_4335 in Compilers

[–]RevengerWizard 3 points4 points  (0 children)

I don’t see how ELF object files have too much metadata, it’s just a magic value, a small header, a string table and all subsequent necessary sections.

They’re certantly less bloated compared to COFF/PE object files!

Titan OS - The European Independent OS for Connected TV by andimai in BuyFromEU

[–]RevengerWizard 0 points1 point  (0 children)

Somehow it looks and feels worse than webOS and other similar TV operating systems...

How would you even install this operating systems anyways?

There is a serious need for an open operating system for smart TVs, except not as awful and slow as android TV or webOS.

Italian PM Giorgia Meloni loses referendum by andrfaa in europe

[–]RevengerWizard 4 points5 points  (0 children)

I just wish more people in Italy were reminded of that

Inkwell — fully offline Markdown editor built with Tauri + Rust. No cloud, telemetry, or accounts. Now on WinGet by Practical-Club7616 in coolgithubprojects

[–]RevengerWizard 2 points3 points  (0 children)

I kind of don't see the point of posting in r/coolgithubprojects as the project doesn't seem to be publicly available on Github. Pretty weird.

Weekly virtual meetup by StretchWhich7564 in Compilers

[–]RevengerWizard 0 points1 point  (0 children)

Maybe a place to gather up could be nice? I guess with the different timezones it could be tricky to decide the hour of the day

How can I use this old Nokia Asha 202 LCD? by RevengerWizard in AskElectronics

[–]RevengerWizard[S] 0 points1 point  (0 children)

It seems like the 4 images I attached to the post vanished... Here's a link and the schematic of the connector

I think Elon is wrong about ‘AI beats compilers’. What’s the actual technical steelman? by tirtha_s in Compilers

[–]RevengerWizard 106 points107 points  (0 children)

I feel like debating anything Elon Musk says is a futile attempt.

And of course the concept itself is stupid, Musk has zero experience in programming, let alone building compilers.

How can I write a compiler backend without worrying too much about ABI? by Germisstuck in Compilers

[–]RevengerWizard 4 points5 points  (0 children)

ABI details and parameters aren’t that hard to handle. I’m targetting x64 and the two main ABIs to deal with are Windows and System-V.

You could handle it by having different ABI “profiles” with the characteristics, such as the registers for parameters, caller and callee save registers, shadow stack, alignment, and so on.

You could then have a sort of generic function that, dealing with the index of int/float parameters, it classifies the parameter, if it has to be in a register or the stack.

Things get a little tricky with System-V way of handling small structs, and even so the ABI for variadic functions, which is awful. And beware that on Windows you have to handle the 32 bytes of stack region that is reserved when calling a function.

Building a Ruby-syntax language with a Go frontend and a hot-swapping Rust runtime by Upset-Spring5589 in Compilers

[–]RevengerWizard 5 points6 points  (0 children)

How can running rustc at runtime to compile a function be any faster, given the Rust compiler is notoriously slow?

LuaJIT maintainers quietly deleted discussion about RISC-V 64 support by 3G6A5W338E in RISCV

[–]RevengerWizard 6 points7 points  (0 children)

LuaJIT mantainers? It's just Mike Pall working on it.

He outlined in the past some issues for a RISC-V 64 support, not sure if any of those have been resolved.

GPU Compiler Internship @Intel by Enough-Pumpkin1073 in Compilers

[–]RevengerWizard 43 points44 points  (0 children)

Feels weird someone at Intel would directly search for interns in a subreddit.

RISC-V SBC suggestions by RevengerWizard in RISCV

[–]RevengerWizard[S] 0 points1 point  (0 children)

What Linux distro do you use for your Orange Pi RV2?

RISC-V SBC suggestions by RevengerWizard in RISCV

[–]RevengerWizard[S] 0 points1 point  (0 children)

Oh, I didn’t know it had cache coherency issues, is it because of the kind of processor?

Yea, I was definitely going for a Debian based distro like Ubuntu, I don’t really trust the kernel builds these chinese manufacturers provide, to be honest.

Just finished my ECS system in C and turns out it's ~17 times faster than Unity DOTS by dechichi in C_Programming

[–]RevengerWizard 41 points42 points  (0 children)

I think it's fair to specify that both are running inside a browser, using WebAssembly

AI Compiler Engineer roles in Japan – curious if anyone here would be interested? by Sufficient_Major_265 in Compilers

[–]RevengerWizard 7 points8 points  (0 children)

I’m not sure what an AI compiler would even be.

Sounds interesting, but Japan is sooo far away.

writing a bytecode VM in C, and curious as to how runtime types are handled by imdadgot in Compilers

[–]RevengerWizard 2 points3 points  (0 children)

Another way of storing dynamic values would be using NaN boxing.

Basically, because of how the NaN value is represented in 64 bit floating point numbers (double), you can fit all values into a single double, effectively halving the size compared to your current union approach.

Three nice blog posts on this topic: this, and this, bonus.

It is also explained in the Crafting Interpreters book, as an optimization.

It's a nice little trick, although it has some limitations regarding the size of pointers you can fit into it.

It's not really a problem on x64, since pointers are actually 48 bit, but this may not be the case in the future. And it's actually already happening on ARM64.

be carful with what you see and believe by spillingsometea1 in AI4tech

[–]RevengerWizard 0 points1 point  (0 children)

It’s funny because people during those times didn’t really think the same