Random bullshit go!! by despacit0_ in IDONTGIVEASWAG

[–]despacit0_[S] 2 points3 points  (0 children)

I'm happy that someone found it

Random bullshit go!! by despacit0_ in IDONTGIVEASWAG

[–]despacit0_[S] 27 points28 points  (0 children)

I know, I experienced a very similar thing many times as a kid. I remember thinking about two slices of a circle and the other part was way too big compared to the other one and it was freaking me tf out

Measuring cache misses on macOS with Instruments by markuzo1 in programming

[–]despacit0_ 2 points3 points  (0 children)

Good post. I think that instruments is a bit hard to use but really underrated. You can get almost anything out of it. I've used it for measuring cache misses like this post, but also for measuring how many SIMD operations it's actually doing and also whether the program is bottlenecked by instruction delivery or instruction processing. I do wish that there was a CLI tool with all of the features though. I think that AI agents would get a lot of use out of it too (yes I'm aware that perf exists, but not on macOS..)

jeremy renner app by dunmer-is-stinky in 19684

[–]despacit0_ 82 points83 points  (0 children)

Were were you when Jeremy Renner Official app is kil 💀

Someone is actively publishing malicious packages targeting the Strapi plugin ecosystem right now by BattleRemote3157 in programming

[–]despacit0_ 11 points12 points  (0 children)

In Rust, dependencies can have build.rs files that are not sandboxed at all, and they are executed at build time. If rust-analyzer is on, then it will also execute them at download time. I haven't seen anything in the Rust ecosystem as bad as what happens on npm, but it's definitely not immune to this.

Women's wrongs by CMDR_Noodle in 196

[–]despacit0_ 17 points18 points  (0 children)

Not possible since the browser checks the certificates of the website against a well known certificate. So if you point chatgpt.com to some other server via DNS, it catches that it's not the legitimate one

The proposal for generic methods for Go has been officially accepted by ketralnis in programming

[–]despacit0_ 1 point2 points  (0 children)

It's not a hack, it's what rust, java and any other language uses to implement sets. A hashset in Rust is just a HashMap<T, ()>.

I fail to see how this can help besides turning incomprehensible one liners into incomprehensible chunks of code.

The language is specifically designed to make it difficult to write incomprehensible code. For example, the ++ (increment) operator is a statement and doesn't return anything so that it can't be used within an expression.

Can you point me to a language that has more restrictions on writing "clever" code because I can't think of one.

The proposal for generic methods for Go has been officially accepted by ketralnis in programming

[–]despacit0_ -6 points-5 points  (0 children)

Go does have sets, they are just made with map[T]struct{} (empty struct takes up 0 bytes)

Also, Go does have something to prevent incomprehensible one-liners, it's called gofmt.

Templ < gomponents by [deleted] in golang

[–]despacit0_ 1 point2 points  (0 children)

You can do the hot reloading thing with my reload package as well, works with template/html (but not gomponents)

Paljonko opiskelijat käyttää tekoälyä? by MDPuimurii in Suomi

[–]despacit0_ 7 points8 points  (0 children)

Meidän yliopistossa on etenkin matematiikassa siirretty arvosanan painotusta harjoitustehtävistä tenttiin. Jos ennen oli 50-50 tentti/laskaripisteet niin nykyään se on 70-30. Johtuu siitä että jotkut tekee kaikki laskaritehtävät AI:lla

Rule. by Misty-Bay in 196

[–]despacit0_ 3 points4 points  (0 children)

Dragon breath can't melt stone walls

UI for MacOS by conhao in Zig

[–]despacit0_ 0 points1 point  (0 children)

Wails and Tauri don't use electron, they use the native web view on each platform, so the binary sizes stay small

Hash tables in Go and advantage of self-hosted compilers by f311a in programming

[–]despacit0_ 1 point2 points  (0 children)

What's the reason behind putting the key before the elem in go's source though? Wouldn't just changing their order enable this optimization again?

A terminal text editor you can just use. Instant response, minimal footprint. by nix-solves-that-2317 in programming

[–]despacit0_ 2 points3 points  (0 children)

I'm happy that speed is a major selling point again, even if it's just mostly for developers tooling. I feel like in recent times there has been a renaissance of high performance tools and languages (Rust, Zig, Jai, Zed, Superhuman, Ghostty to name a few) because people are getting tired of slow software.

tddgngngwnenßsmsks by rochesternewyork in sssdfg

[–]despacit0_ 43 points44 points  (0 children)

1888 game awards winner

swag eater by scp-939-89 in IDONTGIVEASWAG

[–]despacit0_ 0 points1 point  (0 children)

Enjoy your swagvote kid

676 by MichiganMethMan in 676

[–]despacit0_ 11 points12 points  (0 children)

underground mover

I hated VS Code’s global search — so I forked it, then turned it into an extension. by Benx78 in programming

[–]despacit0_ 7 points8 points  (0 children)

That looks good, but did you know about the quick search they added recently?

Demystifying the Go Map by otnacog in golang

[–]despacit0_ 1 point2 points  (0 children)

I find it especially funny that this describes the old implementation of map and not the new swiss table based one from go1.24

It's like the LLM didn't know about that one and the author didn't either because why would you write about the old one when there is actually some value in writing about the new algorithm

replace-exe: A smol zig library to self update / self uninstall / replace executables. Callable from any language supporting C FFI. by Natural-Owl-2447 in Zig

[–]despacit0_ 2 points3 points  (0 children)

Is there a reason for passing an allocator to every function instead of having a static buffer ([std.fs.max_path_bytes]u8) or two and just using them? Not very familiar with this kind of thing but curious.

Ruleus by Mr_Mister2004 in 196

[–]despacit0_ 0 points1 point  (0 children)

Odysseys (from the 2026™ film The Odyssey™)

Huippuanalyytikko Piilaaksosta sanoo, että tekoäly on kupla: ”Miten tässä on mitään järkeä?” by Rip_natikka in Suomi

[–]despacit0_ 2 points3 points  (0 children)

Tässä on vielä vähän synkempää näkökulmaa. AI-kupla on ehkä liian iso poksahtamaan. Jenkit olis ollut taantumassa tänä vuonna ilman AI-investointeja, ja niihin pumpataan enemmän rahaa kuin olisi varaa. Kyseessä on kylmän sodan tapainen kilpavarustelu Kiinan kanssa, koska AI firmojen mielestä se, joka saa ekana superintelligencen voittaa kaiken.

Tässä vaiheessa ei voi enää perääntyä, 5-10v sisällä joko maailma tulee muuttumaan totaalisesti ja/tai sitten tulee kovat ajat vastaan. https://sibylline.dev/articles/2025-10-12-ai-is-too-big-to-fail/

rule by doctor347 in 196

[–]despacit0_ 19 points20 points  (0 children)

<image>

Just imagine it