Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bergkvist
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
bergkvist
2mo ago
If you are using an Apple Silicon laptop and you want to deploy to an x86-64 Linux box, this can get a bit annoying due needing to deal with cross compilation in nix.
2.
▲
by
bergkvist
2mo ago
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.
3.
▲
Show HN: Silicon Physics Sandbox
(silicon.bergkv.ist)
6 points
by
bergkvist
2mo ago
|
0 comments
4.
▲
Show HN: Manipulate NumPy arrays in Python using Uiua
(github.com)
2 points
by
bergkvist
1y ago
|
0 comments
5.
▲
UiuaPy: Manipulate NumPy arrays in Python using Uiua
(github.com)
4 points
by
bergkvist
1y ago
|
1 comments
6.
▲
by
bergkvist
2y ago
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
7.
▲
Outperforming Rayon with OpenMP
(belijzajac.dev)
2 points
by
bergkvist
3y ago
|
0 comments
8.
▲
by
bergkvist
3y ago
See https://news.ycombinator.com/item?id=37920655
9.
▲
by
bergkvist
3y ago
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-ka
10.
▲
by
bergkvist
3y ago
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.
11.
▲
by
bergkvist
3y ago
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 en
12.
▲
by
bergkvist
3y ago
ptrdiff_t is a signed integer type - which means you can subtract these numbers without worrying about underflow
13.
▲
by
bergkvist
3y ago
`fetchTarball` with a github archive link is much faster than `fetchGit` for bootstrapping nixpkgs.
14.
▲
by
bergkvist
3y ago
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
15.
▲
by
bergkvist
3y ago
A derivation is simply an attrset with `type = "derivation"` as a key-value pair in it
16.
▲
by
bergkvist
3y ago
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
17.
▲
by
bergkvist
3y ago
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 ru
18.
▲
by
bergkvist
3y ago
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
19.
▲
by
bergkvist
3y ago
Also the ability to connect to external displays is missing - which is a pretty big one.
20.
▲
by
bergkvist
4y ago
It is funny because it is the exact opposite of what you should do if you want to stop corruption. Deregulation is the best cure for corruption, because it makes the gatekeepers obsolete. There would be no reason to bribe them because you d
21.
▲
by
bergkvist
4y ago
No amount of abstraction is going to save you from the problem of 2 processes manipulating the same state machine.
22.
▲
by
bergkvist
4y ago
I was expecting this to be about economic bubbles for some reason
23.
▲
NumPy C-API (Python C extensions)
(youtube.com)
1 points
by
bergkvist
4y ago
|
0 comments
24.
▲
by
bergkvist
5y ago
I have to disagree that fork is evil. fork is great because of copy-on-write. I guess my particular use case is not very typical/common though. I'm running powerflow simulations on a power grid model (several GB of memory to store
25.
▲
by
bergkvist
5y ago
Inheritance in OOP is what I like to think of as "structured patching". When you create a .patch-file with `git diff`, you are essentially creating an inheritance hierarchy. Imagine having 5 patch files that are applied to the sam
26.
▲
Python C Extensions (trial/error teaching style)
(youtube.com)
2 points
by
bergkvist
5y ago
|
0 comments
27.
▲
by
bergkvist
5y ago
The biggest limitation of using Docker for building images is that it does not allow for composition. You can't simply say you want to combine a Python and Rust image for example. With dockerTools from nix ( https://nix.dev&#
28.
▲
by
bergkvist
6y ago
Nope, should be open to access for anyone. But I posted the wrong link. This one should work: https://hub.docker.com/r/bergkvist/lib-lagraph
29.
▲
Docker image as a “reusable package”: GraphBLAS and LAGraph binaries
(hub.docker.com)
1 points
by
bergkvist
6y ago
|
2 comments