HackerTrans
TopNewTrendsCommentsPastAskShowJobs

bergkvist

105 karmajoined vor 6 Jahren

Submissions

Show HN: Silicon Physics Sandbox

silicon.bergkv.ist
6 points·by bergkvist·vor 8 Tagen·0 comments

Show HN: Manipulate NumPy arrays in Python using Uiua

github.com
2 points·by bergkvist·vor 11 Monaten·0 comments

UiuaPy: Manipulate NumPy arrays in Python using Uiua

github.com
4 points·by bergkvist·vor 11 Monaten·1 comments

Outperforming Rayon with OpenMP

belijzajac.dev
2 points·by bergkvist·vor 3 Jahren·0 comments

comments

bergkvist
·vor 11 Stunden·discuss
Golang is not a replacement for C. It is a much higher level language, which doesn't play well with systems programming/embedded development etc.
bergkvist
·vor 2 Jahren·discuss
Yeah, I remember in the early days, when I installed Spotify it would scan my computer for music and upload everything it found. I imagine this is basically how they bootstrapped
bergkvist
·vor 3 Jahren·discuss
See https://news.ycombinator.com/item?id=37920655
bergkvist
·vor 3 Jahren·discuss
Note that it is in Swedish, and one of the articles is behind a paywall.

- https://www.aftonbladet.se/nyheter/a/on2Rpg/uppgifter-krimin...

- https://sverigesradio.se/artikel/kriminella-kan-skriva-sig-p...

Shootings through apartment doors is relatively common, here are a few of the incidents from 2023:

- https://www.incharts.se/en/shootings/shooting/stockholm-2023...

- https://www.incharts.se/en/shootings/shooting/malmo-2023-10-...

- https://www.incharts.se/en/shootings/shooting/jarfalla-2023-...

- https://www.incharts.se/en/shootings/shooting/botkyrka-2023-...

- https://www.incharts.se/en/shootings/shooting/stockholm-2023...

- https://www.incharts.se/en/shootings/shooting/upplands-bro-2...

- https://www.incharts.se/en/shootings/shooting/sodertalje-202...

- https://www.incharts.se/en/shootings/shooting/stockholm-2023...
bergkvist
·vor 3 Jahren·discuss
But you can't look it up anonymously. You have to authenticate with your national ID number, and the person will be notified about who looked up their income.
bergkvist
·vor 3 Jahren·discuss
Actually addresses being public are causing issues. Sweden has a lot of problems with gang violence, and gang members often register their public addresses to other peoples addresses, causing innocent people to be killed. The address you enter is in no way being verified beyond it needing to be a valid address.
bergkvist
·vor 3 Jahren·discuss
ptrdiff_t is a signed integer type - which means you can subtract these numbers without worrying about underflow
bergkvist
·vor 3 Jahren·discuss
`fetchTarball` with a github archive link is much faster than `fetchGit` for bootstrapping nixpkgs.
bergkvist
·vor 3 Jahren·discuss
Yes, you are right - I misremembered this detail. My problem at the the time was I didn't want to commit my flake.nix to the repository in one of my previous work places (for political reasons). So I had to unstage and restage it every time I created a new commit.
bergkvist
·vor 3 Jahren·discuss
A derivation is simply an attrset with `type = "derivation"` as a key-value pair in it
bergkvist
·vor 3 Jahren·discuss
My use case here is not using pkgs.fetchgit etc - but rather when developing a package locally and rebuilding it.

Let's say I'm working on a huge monorepo locally, with GBs of code and data in it, most of which I want to ignore in my nix build. Let's say the files I actually care about are also not in a single subfolder. Then I can't just move the flake.nix to that subfolder either.
bergkvist
·vor 3 Jahren·discuss
The biggest show-stoppers for me with flakes is:

Building third party flakes takes forever since every flake uses its own version of nixpkgs. If you don't pin your third party flake urls they might also change under your nose as you run the same command again a day later.

Flakes are coupled to git. You need to remember to stage changes whenever you do Ctrl+S in your editor before rebuilding. I've wasted more time than I'd like to admit wondering why what I'm building doesn't include my latest change.

Flakes copy the entire directory into the nix store. This is terrible for mono-repos - and especially if it contains any large files. There is an issue about making the copying of the entire directory into /nix/store lazy - though this doesn't really address the problem. It just treats some common symptoms.

This kind of copying would likely be a lot more acceptable if it was specified explicitly in flake.nix, rather than implicitly. Then you could also use your own filters for ignoring files, rather than relying on the coupling to git and its staging area.
bergkvist
·vor 3 Jahren·discuss
I feel like looking at the first working versions of a big successful project is a great way to understand how it works.

Usually it will only contain the most important core features without a lot of abstractions/generalizations. So it is actually manageable to read through all of the code in a couple of days.
bergkvist
·vor 3 Jahren·discuss
Also the ability to connect to external displays is missing - which is a pretty big one.