Better HN
topnewbestaskshowjobs
Log inSign up

shikck200

96 karma · joined Nov 19, 2024 (2y ago) · 83 submissions

Submissions

comment 1w ago · link · parent

Rust's killer features is not "the borrow checker". That idea was just stolen from Cyclone. Rust is basically a semi ml kind of language in the c++ space. I dont see many "killer features" in rust outside the saner type system.

Its basically a better language for software you write in C at the cost of horrible compile times.

comment 1w ago · link · parent

> M5 Max

Fucking lol. I have an almost decade-old laptop and compile projects way faster. Ocaml and Go both compile 100K LOC projects under 1sec.

comment 1w ago · link · parent

Cranelift never took off. Its weirdly bundled inside some adhoc wasm runtime, and is not a replacement for the "real" rust compiler.

comment 2w ago · link · parent

Does Pi support ACP? IIRC claude code (the subscription) cant be used outside claude code or ACP?

comment 2w ago · link · parent

Token use exploded a week or two ago. I worked for a few hours and hit my 5 hour limit. Did only some simple bug fix. Somethings definitely broken.

This is the #1 thing i HATE with LLMs. They are not predictable like a compiler is.

comment 2w ago · link · parent

Im still on Emacs with the awesome agent-shell. The use of LLMs have made code review the top prio for any serious development. I basically did a custom theme that shows git diffs inline, then hook that to magit. The final thing is the review process, here i can "talk" to an LLM directly from the code, and ask for changes, or a rewrite when i see slop.

This has been a solid setup, and a must have for agentic development.

comment 2w ago · link · parent

Could the projects bring in stuff from omarchy? Omarchy is a toy, but they did slop the osx thing, so maybe some ideas can be ported over?

comment 2w ago · link · parent

The Cybertruck should tell you how stupid Elon really is. Its a coffin on wheels, and rightfully banned in the entire EU. His next stunt was to make a flying car, thats basically vaporware, and, also banned literally everywhere.

comment 2w ago · link · parent

More importantly, WHY is mysql GROUP BY still broken as default? MySQL is the PHP of databases, but it seems they have no plan to fix bugs.

comment 1mo ago · link · parent

Pure LOLPHP matrial

comment 1mo ago · link · parent

Other countries moving their gold out of the US, LOL

comment 1mo ago · link · parent

Companies pay for claude, devs not. IF i had to use AI from my own purse, i would never pay for a claude sub.

comment 1mo ago · link · parent

Lisp allows for some really, really complex and spaghetti code bases. I have seen the ultimate macro-hell from top to bottom. I know syntax does not matter, but i just cant honestly say i read lisp code as clear as something like Go. I guess it boils down to style. I have seen 100 lisp styles, and only one Go style.

comment 1mo ago · link · parent

Looking at the source i was not surprised. A shell html page, that uses a shittonne of javascript, and obviously does not even include the static content per page load. Its sad that this is the status quo of the AI slop you see.

comment 1mo ago · link · parent

"How do we finally get rid of trump?"

> Chat is unavailable right now.

comment 1mo ago · link · parent

> Criticise person X for being a "absolute scumbag"

> Yolo

> Switch to person X software anyway.

This is the most weak double standards i have seen in a while. IF you mock someone for what they did 10 years ago, have the balls to stand by it.

comment 1mo ago · link · parent

The fact that i would use 99% less dependencies, and overall have a WAY more simple deployment story. Also a typed language is always better than the PHP way, where you have functions that are hard to reason about, and edge cases llms miss easily.

comment 1mo ago · link · parent

I never had issues with token use at this scale. More so i would say a huge bloated framework uses more tokens as the LLM might read the source to understand why something works as it does. With stdlib only most LLM already knows it.

Also a laravel "rate limiter" sound suss. Its probably needs some extra dependency like redis + a supporting php library to work. On the contrary i can mock up a reasonably efficient in memory rate limiter in pure Go, and only go to redis when i need the scale.

comment 1mo ago · link · parent

You could. But thats rarely where the perf hit is. You rarely need more CPU juice than Go provides, and if you do you probably use Rust or C. There is little to gain from dropping down to ASM, as you most likely run on an OS that is more powered than a microkernel, where you would need ultimate low level control.

comment 2mo ago · link · parent

Sure. I like Rust. But i also know when not to use Rust.

comment 2mo ago · link · parent

Meh.. sure a DR is not the same as an RC, but i would class it as a subset of the same thing. You you cant have an RC, you cant have DR, but the other way around.

In the end its the same problem, dressed up differently.

comment 2mo ago · link · parent

Indeed.

Shared Go slices are a bad mix in concurrent code. This is a given. But its also not a fair comparison, you should instead compare java arrays to go arrays, not slices.

This goes for slices, strings and maps. Those a usually wrapped in a mutex, or used with sync primitives like sync.Map.

comment 2mo ago · link · parent

Neither Java or Go guarantees data-race freedom. A data race does not by itself make ordinary Java or Go code memory-unsafe in the C/C++ sense.

I fail to see how a racy Java program is more memory safe than a racy Go program?

comment 2mo ago · link · parent

I have not written a line of Java in 15 years. But im pretty sure Java has threads? Once you have threads, you pretty much have data races.

        Thread a = new Thread(() -> x++);
        Thread b = new Thread(() -> x++);

        a.start();
        b.start();

comment 2mo ago · link · parent

Now you are pushing pixels. A data-race IS a kind of race condition.

My point is "races" happen all over. In concurrent code, databases, http and pretty much anywhere where you have some kind of timing, not scoped to a unit.

comment 2mo ago · link · parent

Memory safety != Data race free

comment 2mo ago · link · parent

Are you saying any language that does not promise data-race freedom is memory unsafe? That would rule out almost every programming language.

comment 2mo ago · link · parent

Sure, but a data race is, IMHO not the same as memory safety. A data race, can be 100% memory safe, but just cause a logic bug in some program. I often see people mixing memory safety with racing. Go has bounds checks so you end up with a panic either way. Not UB.

As an (outside go) example, Ocaml (5) promises strong memory safety, but not to be data race free. A data race is not something we can prevent, because its usually not bound by code, but by time and the race-source rarely in source-code.

This means we have data races in http, database inserts etc. The source is usually not a concurrent task in source code-land.

comment 2mo ago · link · parent

You can write unsafe code in Go (import unsafe), but then, you can do the same in Rust. Unsafe code is not the default, and in day to day Go i rarely see the use of the unsafe package.

comment 2mo ago · link · parent

That does not make sense to me. Go is memory-safe, but it does not guarantee data-race freedom.

So whats your point here? Haskell?

123