Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fwsgonzo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
151.
▲
by
fwsgonzo
2y ago
I disable all that. Does it not work? https://medium.com/p/b429b91850a5
152.
▲
A Sandboxed Rainbow Function
(fwsgonzo.medium.com)
1 points
by
fwsgonzo
2y ago
|
0 comments
153.
▲
by
fwsgonzo
2y ago
I think I would be using std::unique_ptr here instead of the manual memory management, which as you can see sometimes fails spectacularly. I've had codebases myself ~10 years ago where I didn't really know how to use them properly
154.
▲
by
fwsgonzo
2y ago
Same here. The winters are just sporadic snow and rain now. Also live quite far north. I am worried about AMOC slowdown though.
155.
▲
by
fwsgonzo
2y ago
I completely agree. Not that everything has to be relaxed, but at least the things that made it impossible to decode RISC-V when C is enabled. The amount of code needed to detect when and how instructions are laid out is much larger than it
156.
▲
by
fwsgonzo
2y ago
I honestly think the very readable specification has been a boon for RISC-V and possibly part of the reason why people continue to find it easy to pick up. If you are unsure about something in the spec, there's also a multitude of RISC
157.
▲
by
fwsgonzo
2y ago
I see some of those things could perhaps be solved by implementing parts of the game in a sandbox. I know that's work: I'm doing it myself. But all the work with the host-guest boundary (let's not call it bindings, please), i
158.
▲
by
fwsgonzo
3y ago
I tried to migrate to capn-proto but it just doesn't build on MinGW so I have no choice but to wait. Like you say, it gets worse the more I wait. But, if the APIs are somewhat sane, they should hopefully also be somewhat similar: Able
159.
▲
by
fwsgonzo
3y ago
I really hope you're not saying modern web-pages are enjoying to use because they look good? Because they are anything but. Instead they're often cumbersome and spend my resources on pointless cruft. HN is one of the few web-pages
160.
▲
by
fwsgonzo
3y ago
80% of the code is drivers, which having written many myself, doesn't always need the latest OOP features. Abstractions suck in C for sure, but it's OK. Meanwhile, the Windows XP codebase had 45M LOC in 2011. Truly big codebases n
161.
▲
Using C++ as a Scripting Language, part 12: RPC with less drudgery
(fwsgonzo.medium.com)
1 points
by
fwsgonzo
3y ago
|
0 comments
162.
▲
by
fwsgonzo
3y ago
You don't have to start in 16-bit mode. If you want you could be starting in long mode even, although probably better to start in 32-bit mode without paging enabled.
163.
▲
by
fwsgonzo
3y ago
As usual, comment out all the error handling code. Also my experience with WASM.
164.
▲
Using C++ as a Scripting Language, part 12
(fwsgonzo.medium.com)
2 points
by
fwsgonzo
3y ago
|
0 comments
165.
▲
by
fwsgonzo
3y ago
I agree. There is actually a storm coming here tonight, reaching 50m/s gusts. Power is likely to go out, and I have to pre-warm the fireplace in case. Power will likely come back fairly soon, but Internet is not treated the same way. I
166.
▲
by
fwsgonzo
3y ago
Once you become proficient at something, it's likely you don't need basic questions answered, and that leaves advanced to hard problems. For me SO is still very important. It has people like Peter Cordes that answer my complicated
167.
▲
by
fwsgonzo
3y ago
I recently tried Copilot out of curiosity and this is my experience too: It helps me getting started, which for me is 99% of the challenge. I know how to solve problems, even complex ones, but for some reason getting started is just so extr
168.
▲
by
fwsgonzo
3y ago
I have had the same experience compiling for WASM. It's always a bunch of commenting out code that doesn't compile. Thankfully we have other things backend side. I'm guessing people writing Rust are having a better time with
169.
▲
by
fwsgonzo
3y ago
https://old.reddit.com/r/rust/comments/bhtuah/production_dep... "Because Rust" and safety, of course. I wonder if programming on Windows just sucks in general, and all these are Windows trading
170.
▲
by
fwsgonzo
3y ago
One of the strengths of C++ is just that, that the more information you can provide, the better opportunities for optimizations. If you're saying that Rust adds more information than C++, then sure, it would be possible for it to optim
171.
▲
by
fwsgonzo
3y ago
It really shouldn't. Rust has internal sanity checks where C/C++ doesn't. C++ also has better abstractions often leading to better whole-program performance than C. In C you would have to obsess about each little thing to kee
172.
▲
by
fwsgonzo
3y ago
I wonder if any of these are avoided by disabling JIT, which I have done. And also, just how much of the codebase is JIT related? I also don't think C++ is always the problem. This is a complex language run-time, and there's all s
173.
▲
by
fwsgonzo
3y ago
I've given up disabling JS for my most visited pages, but you can still disable JIT if you want to drop a million LOC of attack surface. The slow-down is barely noticeable. At least not on the sites I visit, including GitHub. I still u
174.
▲
by
fwsgonzo
3y ago
Unsurprisingly, no plugins. Just plain-old GDScript, but embedding a faster scripting solution into the C++ codebase is not too hard for serious work.
175.
▲
by
fwsgonzo
3y ago
Cool, I still recognize the Instruction union as he based it on mine (libriscv). It's interesting to see how it has mutated across two implementations. Anyway, this is overflowing with cool ideas. I do see one minor nitpick though. Th
176.
▲
by
fwsgonzo
3y ago
Indeed, if you play Harvest Moon, it's quite interesting just how much Stardew Valley copies.
177.
▲
by
fwsgonzo
3y ago
It wasn't that long ago that I had heard about Kagi the first time. Now I use it every day, and the fact that I can pin cppreference.com to the top is just such a boon.
178.
▲
by
fwsgonzo
3y ago
What the other commenter said, you need to step back and think logically here. Technically everyone is missing out on something, but we're not stressed out about all of it. It would be too much. Personally, I am working on interesting
179.
▲
by
fwsgonzo
3y ago
That's definitely a cool project, but I'm only interested in interpreting right now. I am sharing programs with clients, as I wrote in another thread. Not interested in producing or linking native code. I already have a binary tra
180.
▲
by
fwsgonzo
3y ago
No, as the author of TinyKVM, the overheads of entering and leaving KVM is not the same order of magnitude as SFI. TinyKVM requires 2-3 microseconds to enter and leave, which is the lowest I ever managed to get while it still being robust a
More ›