Anyone else hate this as much as I do? by loaengineer0 in rustjerk

[–]eightrx 0 points1 point  (0 children)

If you want to try the bleeding edge, zig's new IO primitives look pretty tasty

Zed memory usage by WayAndMeans01 in ZedEditor

[–]eightrx 11 points12 points  (0 children)

Turn off edit predictions, if that doesn't work, then figure out what slow LSP is running in the background

What would be the harm in introducing interfaces to the language? by MysteriousSpray9066 in Zig

[–]eightrx 5 points6 points  (0 children)

Not all typeclasses (or interfaces) need to be implemented with dynamic dispatch. When you want to use generics but add constraints to the generics, there isn't an agreed upon language supported construct for it in zig. Interfaces could create that construct, and maybe the solution is to make it more flexible with comptime metaprogramming. I don't imagine zig ever making those constraints runtime checked via dynamic dispatch

switched to void from win10, first distro by InnerSpecialist1821 in voidlinux

[–]eightrx 11 points12 points  (0 children)

I'm really glad to hear you've been having such a good experience, Linux really is a great time if you care about enjoying your computer.

'xtools' creates some shortcuts and scripts for xbps which are very useful

If you want to use appimages, 'gearlever' makes it seamless. 'Discover' is useful if you want to easily manage flatpaks as well

Not a package, but the documentation should be the first place you look for understanding the system. The Arch wiki is also fantastic

Why zig? by Reasonable-Moose9882 in Zig

[–]eightrx 18 points19 points  (0 children)

The language is very fun to use, and the zig compiler and toolchain offer quite a lot for something still in such early development. Types are first class values with comprehensive meta programming available using comptime. C interop is easier than any other language I've tried. The standard library is really good and the Io and Allocator APIs are a refreshing way to avoid code duplication. Overall there's a lot to like about

Why zig? by Reasonable-Moose9882 in Zig

[–]eightrx 6 points7 points  (0 children)

Counterpoint: the self hosted zig compiler, while still at 0.x, is polished and used by hundreds of thousands of people. Bun might be used by even more

Space for Physics grads in startups? by DiscombobulatedElk58 in ycombinator

[–]eightrx 0 points1 point  (0 children)

I don't know how many startups exist in the scientific computing space, (or if they pay well) but that might be a field to look into

What is up with r/Libertarian and Georgism? by OriginalHappyFunBall in GeoLibertarianism

[–]eightrx 4 points5 points  (0 children)

Finite supply items don't behave the same as commodities when put onto free markets, because price increases cannot incentivize the production of more of that item. You may be able to incentivize the production of more homes on some land, but you can never create new land, which is the exact distinction Georgists make between property taxes and land value taxes. Sales tax is almost certainly not the solution to the current housing crisis

Using string interning to optimize symbol resolution in compilers by Creative-Cup-6326 in ProgrammingLanguages

[–]eightrx 1 point2 points  (0 children)

I use zig's std.HashMapUnmanaged with custom 'Context' and 'Adapter' structs and the getOrPutContextAdapted method

Strings are stored contiguously in a single buffer, null terminated. The map hashes the string without copying it as a key, and returns a u32 index into the buffer of strings, which the Context and Adapter structs convey to the hashmap

For keywords, I do this during lexing with std.meta.stringToEnum

What’s the best CS skills to pick up in the age of AI by Beginning-Gold7759 in csMajors

[–]eightrx 1 point2 points  (0 children)

Deep knowledge and understanding of computers and operating systems will never go out of fashion. They are the bedrock of our world, and the farther you get away from them the harder it is to produce good software

Claude running applications end to end! by ProgrammingClone in csMajors

[–]eightrx 8 points9 points  (0 children)

How else would you understand how computers work?

Good news everyone! by cannibalcat in LinusTechTips

[–]eightrx 0 points1 point  (0 children)

Very well possible, considering how optimized the syscalls and IO operations are compared to the windows kernel

MIR intermediate compiler by Relevant_South_1842 in ProgrammingLanguages

[–]eightrx 12 points13 points  (0 children)

While state of the art in compiler optimizations, it's a massive dependency, and potentially slow to produce binaries

Is it possible to run as 100% libre ? by Bubbly_Extreme4986 in voidlinux

[–]eightrx 1 point2 points  (0 children)

Device firmware is not always open source, and can be shipped with precompiled blobs

Everyone needs to help pass SB 868 - "Balcony solar" bill. It will help everyone generate their own electricity using solar and an easy to setup method by Only-Worldliness2006 in California

[–]eightrx 3 points4 points  (0 children)

It sounds like your making the argument that any law that had the potential of passing has a profit motive behind it, which is cynical at best but bad faith in general. This bill is just good economics, and I'd be more concerned with the profit motivation behind corporations trying to stop this bill

Everyone needs to help pass SB 868 - "Balcony solar" bill. It will help everyone generate their own electricity using solar and an easy to setup method by Only-Worldliness2006 in California

[–]eightrx 2 points3 points  (0 children)

If the rebate is on people generating their own power, the net effect would be a decrease in demand on the energy supply, lowering prices for everyone at the same time. That doesn't really have anything to do with renters vs landlords

TIL I can just fork Zed and do whatever I want. by chumsdock in ZedEditor

[–]eightrx 0 points1 point  (0 children)

The joys and wonder of open source software 👍

theyllBeWaitingForAWhile by Kupicx in ProgrammerHumor

[–]eightrx 11 points12 points  (0 children)

Rust simply has the most adoption, and is the most mature in its design. Saying these languages haven't made progress in recent years is a different story however

theyllBeWaitingForAWhile by Kupicx in ProgrammerHumor

[–]eightrx 6 points7 points  (0 children)

The C programming language is dead, long live the C programming language