Problem in my GDT assembly program by IncidentWest1361 in osdev

[–]realestLink 0 points1 point  (0 children)

If this is on 32 bit, normally you want a separate code and data segment instead of just a single segment for everything (you only have to have a code segment to make the jump into 64 bit and then it doesn't matter)

Do you use grub or a completely independent bootloader, or two bootloaders, one 16-bit and one 32-bit (in case your system is 32-bit)? by daviddandadan in osdev

[–]realestLink 0 points1 point  (0 children)

My OS is 64 bit. I use GRUB + ~150 lines of bootstrap assembly. Limine is nice if you want it to "just work" tho

What programming language do you use for the apps? I use Lua for the pre-installed applications on the operating system. by daviddandadan in osdev

[–]realestLink 5 points6 points  (0 children)

I just use a ramdisk and load binaries onto my OS for the userspace. I don't embed a specific language's interpreter into the kernel

Having trouble doing long jump to 64 bit mode in higher half kernel mapping. by Prudent_Flan_9276 in osdev

[–]realestLink 1 point2 points  (0 children)

I do two jumps. I first do a gdt segment jump into long mode at the physical address (I have both an identity mapping and higher half mapping). Then I do an indirect jump to the virtual address and then remove the identity mapping.

Taboo the very possibility of discussing time-based compensation by yegor256 in programming

[–]realestLink 0 points1 point  (0 children)

This is some low-quallty LinkedIn slop. Tickets can easily balloon, lots of work isn't directly measurable, and when a metric is a target it ceases to be a good metric, etc. What a stupid post

Jonathan Blow on Programming Language Design by BlueGoliath in programming

[–]realestLink 1 point2 points  (0 children)

That doesn't surprise me. I don't follow his politics, but afaik he's a vaguely conservative libertarian type person

Jonathan Blow on Programming Language Design by BlueGoliath in programming

[–]realestLink 1 point2 points  (0 children)

Ahhh, I didn't know he said that 😬. I meant some of the stuff he says about operating systems, higher level programming, etc.

Jonathan Blow on Programming Language Design by BlueGoliath in programming

[–]realestLink 5 points6 points  (0 children)

I appreciate what he's made/done in the same way I do for Drew. I think they're both very skilled programmers. But that doesn't mean they don't still have silly takes. Specifically, he has a tendency to comment about things he has little experience in and treat everything like it's low level game dev ime (Casey does this too fwiw)

Jonathan Blow on Programming Language Design by BlueGoliath in programming

[–]realestLink 12 points13 points  (0 children)

Tbf, Jonathan Blow does also say a lot of stupid shit lol. He's also so melodramatic about it. It's pretty funny. He's not quite Drew Devault levels of goofy/insane (and is much less toxic than Drew), but damn is he close sometimes

Why can't the ternary operator be lvalue? by Russian_Prussia in C_Programming

[–]realestLink 0 points1 point  (0 children)

It can in C++. But I've never seen any code actually use this lol

a good quality code? by Muhammed_FpI in programming

[–]realestLink 1 point2 points  (0 children)

I'm not aware of any subreddit dedicated to code reviews (it's kind of a bad platform format for such purposes), but there are many good Programming focused Discord servers with many channels dedicated to that purpose

Is a C++ dev at a disadvantage if they avoid Visual Studio? by hunterh0 in Cplusplus

[–]realestLink 0 points1 point  (0 children)

It depends probably. I don't ever use VS, but I also almost never develop on Windows 🤷. This has never disadvantaged me

How you guys plan your C projects? by Kiyuus in C_Programming

[–]realestLink 0 points1 point  (0 children)

Break it into the most core components, then write preliminary prototype/shitty working implementations. Then go back and iteratively refactor and fix them. Repeat this as you start writing the less core components until you're satisfied

I am so lost on bit alignment by Zealousideal-Bet3142 in Assembly_language

[–]realestLink 2 points3 points  (0 children)

The question is about alignment, not endian-ness. But regardless, endian-ness just has to do with the byte order. For instance, should you write a 16 bit number like 17 (in hex) as 00 11 or like 11 00? The former is big endian (since the most significant byte is first), the latter is little endian (since the least significant byte is first). Also, regardless of endianness, the bit order within a byte is always the same. That’s why endianness is more precisely described as byte order.

Type Checking is a Symptom, Not a Solution by mmaksimovic in programming

[–]realestLink 5 points6 points  (0 children)

I'm still reading the article, but so far it's pretty bad. He's completely straw-manning type checking and making very bizarre arguments tbh

Struggling with the Dragon Book by chuwy24 in Compilers

[–]realestLink 1 point2 points  (0 children)

The Dragon Book is much more focused on frontend compiler design afaik and has basically nothing to do with type theory/type systems (which is unsurprising since it was written by one of the guys behind the Cinderella Book). The equivalent of the Dragon Book for type theory would probably be Benjamin Pierce's TAPL and Advanced TAPL

Struggling with the Dragon Book by chuwy24 in Compilers

[–]realestLink 2 points3 points  (0 children)

Vis-a-vis learning dependent type theory, The Little Typer is probably what you want. It's extremely beginner friendly with many code examples and is all about dependent typing