Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ManBeardPc
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
ManBeardPc
20d ago
The Record struct contains rtype and data where RecordData is a tagged union. Aren’t those two always in sync? Not a DNS expert, just wondering if this is redundant or there is a reason both are there. Doesn’t matter anymore if they store i
2.
▲
by
ManBeardPc
2mo ago
Don‘t know any other runtimes that have that by default. Probably kind of possible in Erlang or so by transferring the state, but stopping and moving a green thread in the middle of execution I’ve not seen elsewhere.
3.
▲
by
ManBeardPc
2mo ago
Last I checked (and remember right) they used Stackless Python. Very interesting, it can serialize tasklets and send them to another machine to continue executing. Seems no longer maintained though.
4.
▲
by
ManBeardPc
4mo ago
It was an improvement in some regards, but a pita most of the time. Before I had to work on an Angular project React was my least favorite frontend library. Solid.js gave me back my sanity (also Svelte 5). Fast, small, includes what I need
5.
▲
by
ManBeardPc
8mo ago
News in general. Also works well in sales, see how often financial "advisors" try to convince people the market is crashing soon and everything except their product is unsafe and how they try to mitigate downsides (active funds, l
6.
▲
by
ManBeardPc
9mo ago
The endgame is to normalize punishing groups/individuals for any reason on a whim of the ones in charge. Start with minorities and people who can’t defend themselves, then later you can do easier to anyone who gets inconvenient. Despot
7.
▲
by
ManBeardPc
9mo ago
My next company‘s boss was pretty much Windows only (server and desktops/laptops, some Linux servers). Linux on the server was already replacing more and more machines. Now I am even allowed to use MacBooks or Linux laptops. Current co
8.
▲
by
ManBeardPc
11mo ago
It will be a big one for people living near the coast. Basically all port infrastructure will need to be moved. Of course there a things like extreme heat waves, cold snaps, lack of rain or floods that will make a lot of land unlivable too.
9.
▲
by
ManBeardPc
1y ago
Yes, that is exactly what is happening. 2000W solar panels feed the battery, up to 800W are allowed to be fed back into the grid/house network. Keep in mind you could also plug a 3000W device directly into the battery, meaning you coul
10.
▲
by
ManBeardPc
1y ago
The awesome part is you can circumvent the 800W. First you can legally install 2000W solar panels, making 800W output much more likely. The 800W is only how much you can feed back into the grid. Second you can install one or more batteries
11.
▲
by
ManBeardPc
1y ago
Huge barrier of entry. It requires a lot of integration and investment. Getting another supplier to move usually involves handing over big bills. Even then it is not guaranteed that the change is (fast) enough. I see it all the time, nobody
12.
▲
by
ManBeardPc
1y ago
Regarding async I kind of agree with you right now, but the new design is there and currently getting implemented. If you don’t believe it will work out or need to use async right now sure, use something else. It is not a stable language ye
13.
▲
by
ManBeardPc
1y ago
The point is the code is on another type. Any variable could by of a type that implements some Drop logic. It is mostly called implicitly where it is used, wether you as a programmer are aware of it or not. You would need to check. In Zig y
14.
▲
by
ManBeardPc
1y ago
Drop yes. Thanks for the correction. It is clear when it is called, but you have to check in code you are not currently seeing as any type could implement it. May seem like a minor thing, but is not explicit at the point of usage. In Zig on
15.
▲
by
ManBeardPc
1y ago
Not only being text based but also having another separate language is problematic. Rust also has powerful declarative macros but it is it’s own language. Procedural macros and crabtime are imho a bit better for more complex cases as you wr
16.
▲
by
ManBeardPc
1y ago
You can ofc use the *alloc from libc if you want. Otherwise there are different ones in the standard library, ArenaAllocator wraps another allocator, FixedBufferAllocator uses a given byte slice. I recommend to take a look at https:/&
17.
▲
by
ManBeardPc
1y ago
It has proper arrays and slices, even being able to define a sentinel value in the type system, so you know when it is a C string or a slice with a specific size with arbitrary values. Strings can become a problem if you need another encodi
18.
▲
by
ManBeardPc
1y ago
Comptime is very nice but certainly more limited then Lisp. You can't generate arbitrary code with it. But good enough to implement something like JSON serialization or Struct-of-Arrays in normal code that is readable. Custom allocator
19.
▲
by
ManBeardPc
1y ago
Like a modern C with lessons learned. Instead of macros it uses Zig itself to execute code at runtime (comptime). Custom allocators are the norm. No hidden control flow, everything is very explicit and easy to follow. But it’s not only the
20.
▲
by
ManBeardPc
1y ago
Maybe on the condition that the law was struck down by courts. Otherwise it would block iterations on any controversial topics that need time to reach consensus. Some others here asked how would we decide what is the same law. That’s pretty
21.
▲
by
ManBeardPc
1y ago
It would probably be toppled by courts, yes. Anyway, meanwhile they already start implementing it, developing the technology and infrastructure they can base on the next time where they basically reintroduce the same illegal laws in a new n
22.
▲
by
ManBeardPc
1y ago
Glad we could delay it for now. It will come back again and again with that high of support though. Also the German Bundestag is already discussing a compromise: https://www.bundestag.de/presse/hib/kurzmeldungen-11
23.
▲
by
ManBeardPc
1y ago
A battery case would work too. Was just hoping for a model that is trimmed and optimized for longer trips outside the city/with absence of reliable power sources. Cut some of the performance, only efficiency cores, bigger antenna and o
24.
▲
by
ManBeardPc
1y ago
The way it is currently yes. But hardware is way more efficient now. Why not sacrifice performance and optimize a bit more in that direction? It is plenty fast already for everyday life. I don’t like that we only focus on performance and we
25.
▲
by
ManBeardPc
1y ago
I want an extra thick model instead, let’s call it iPhone Travel (or Ultra?). Just thick enough so the cameras are no longer sticking out. Give me an all-week battery instead of an all-day one. Slim down the power usage and give a power sav
26.
▲
by
ManBeardPc
1y ago
But hey, at least the battery is (partially) replaceable that way.
27.
▲
by
ManBeardPc
1y ago
It’s true for me. I need a portable workstation more than a mobile laptop, as long as it survives train travels (most have power outlets now), moving between buildings/rooms or the occasional meeting with a customer +presentation it is
28.
▲
by
ManBeardPc
1y ago
No it hasn’t become so dangerous and surveillance doesn’t help. Neither cameras nor real-name accounts actually helped to prevent crimes. Same with databases, lists or other surveillance tools. Many criminals who committed terrorism were kn
29.
▲
by
ManBeardPc
1y ago
Somebody doing worse is not an excuse. Everyone has to cut their emissions. The story is about the US so that’s what I wrote about.
30.
▲
by
ManBeardPc
1y ago
The US matters, it has a big influence and could force companies around the globe to hurry up the transition. Just because the emissions may have peaked a lot of it is just outsourced. Also just reducing is not enough. We already missed imp
More ›