Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
strager
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
strager
4y ago
> also have [cops] be subjected to term limits just like politicians Why would we want cops to have less experience on average?
62.
▲
by
strager
4y ago
Do any operating systems expose mixed buffering (for real screen rendering) to applications? I know Windows used to allow full-screen apps to implement single buffering, but I don't know if it could seamlessly transition into double bu
63.
▲
by
strager
4y ago
How do you debug that code?
64.
▲
by
strager
4y ago
Function coloring is a problem with async/await: https://journal.stuffwithstuff.com/2015/02/01/what-color-is-...
65.
▲
by
strager
4y ago
Maybe this: https://github.com/ziglang/zig/issues/335#issuecomment-10138...
66.
▲
by
strager
4y ago
Hello Fresh subscription. I now spend more time with my girlfriend.
67.
▲
by
strager
4y ago
That's a human problem, not a Christian problem. Cultures around the world enabled slavery.
68.
▲
by
strager
4y ago
Christians and their faith lead the slavery prohibition movement. I don't know the history of the other things you mentioned.
69.
▲
by
strager
4y ago
> far more people have suffered Compared to what?
70.
▲
by
strager
4y ago
> Bugs are reduced by monitoring, testing, and reducing how much code there is so there's less surface area (which also makes monitoring and testing easier). > > You reduce code by refactoring. This is a great point. I wonder
71.
▲
by
strager
4y ago
> Your compiler can instantly tell you what you've broken. For some definition of "instant". I can often run my Python or JavaScript test suite faster than Haskell/GHC or Rust/rustc can type-check a module. And i
72.
▲
by
strager
4y ago
> That's because you are explicitly telling the compiler to create a copy of your shared pointer This is also happening in the Rust code (x.clone()).
73.
▲
by
strager
4y ago
C++'s std::shared_ptr<T> is not at all like Rust's Rc<T>. std::shared_ptr<T> is more like Arc<T> or Arc<Box<T>> depending on the deleter. Also, your Rust example uses -O (which is -C opt-level=2
74.
▲
by
strager
4y ago
In the OP's case, the _why_ can be encoded in function names. For example: function DatePicker() { function handleDateChange(event) { preventDialogFoobarFromClosing(event); ... } return (
75.
▲
by
strager
4y ago
Does GNU ld support delayload?
76.
▲
by
strager
4y ago
> It also took me a while to get Thanks for the feedback. I redesigned that code block, making it a side-by-side diff. Is it easier to understand now?
77.
▲
by
strager
4y ago
That's a good point. I never thought of this. I assumed that, because Clang+MinGW was newer, it's less stable. That's why I went with GCC+MinGW. I completely forgot about the positive corporate influence on Clang.
78.
▲
by
strager
4y ago
dlltool generates implibs. quick-lint-js has a .def -> .lib build step in its CMake build system. I'd say this is a form of compilation.
79.
▲
by
strager
4y ago
Do you work on a compiler backend? =]
80.
▲
by
strager
4y ago
You're right. I should have written 'Hypothesis', not 'Conclusion', for that line. EDIT: I corrected the article. The statement is correct though. The bug was specific to Windows x64 builds when compiled with GCC-Mi
81.
▲
by
strager
4y ago
Interesting. I've heard of GCC doing this and breaking multi-threaded code, but not breaking single-threaded code. I'm curious. Can you share the bug report?
82.
▲
by
strager
5y ago
Facebook, Twitter, Gmail, Discord
83.
▲
by
strager
5y ago
esbuild, SWC, and Bun are not ports of existing programs.
84.
▲
by
strager
5y ago
> All dependencies sources must be included with project sources. This sounds great for applications. But for libraries, you'll likely end up with the diamond dependency problem: an application uses two libraries, and each library u
85.
▲
by
strager
5y ago
The next OS vendor might.
86.
▲
by
strager
5y ago
> Removes counterparty risk. Bitcoin does not remove counter-party risk. The counter-party is there, and it's risky: * miners (can ditch Bitcoin; can censor your transactions) * Bitcoin software (wallets; miners) (can have bugs whic
87.
▲
by
strager
5y ago
> including support for the necessary aliasing and macros that system shells (ab)use for system configuration I think we could get away without system-configured aliases and macros. > I think the system you propose would require a fat
88.
▲
by
strager
5y ago
> Why waste time with ... This is what I used to think. Then I considered having children. My perspective changed quickly. (Though I don't know exactly why it changed.)
89.
▲
by
strager
5y ago
> Sure the shell might have looked amazing like a browser but why So you don't need to copy your config to the remote server, like XXH does. So you can still edit your command when your wifi gets spotty.
90.
▲
by
strager
5y ago
... while sacrificing features like auto-complete, shell awareness (Git branch and other doodads people love to put in their prompt), and persistence (screen/tmux/mosh).
More ›