Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ahupp
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
151.
▲
by
ahupp
6y ago
It only has to happen once.
152.
▲
by
ahupp
6y ago
The comment originally said it was the cost of a pointer copy, and I was pointing out it's not a pointer. eg., sizeof(std::map<std::string,std::string>) is 48, which is the "pointers and bookeeping" you mention.
153.
▲
by
ahupp
6y ago
Check out craco, for overriding specific bits of config without ejecting: https://github.com/gsoft-inc/craco
154.
▲
by
ahupp
6y ago
That's not exactly true. In C++ terms, the example code is moving a value: std::map<...> foo; someFunction(std::move(foo)); And not moving a pointer like: std::unique_ptr<std::map<...>> foo = ...; some
155.
▲
by
ahupp
6y ago
It seems low on details because the exploit was incredibly simple. AFAICT you didn't have to do anything special to get the signed token, they just gave it out. > Here on passing any email, Apple generated a valid JWT (id_token) fo
156.
▲
by
ahupp
6y ago
Today's JS ecosystem reminds me of how people used to talk about Lisp: "Extend the language however you want, just write a macro!" And in practice that means there's a million little language variants floating around th
157.
▲
by
ahupp
6y ago
So you had an option to watch it in your home for the price of a theater ticket and instead you decided to just take it? I regularly tell my kids no when there's a movie we have to pay full price for. They can wait a few months.
158.
▲
by
ahupp
6y ago
Yes, in a few cases the hardware would go back to its manufacturer for more investigation. The ones I'm aware of were more subtly bad, and more reproducible than this one though.
159.
▲
by
ahupp
6y ago
The killer upcoming features: * Wayland support for running native GUI apps. X410 is pretty good, but it has all the limitations of a remote X server. * GPU Compute, for pytorch etc.
160.
▲
by
ahupp
6y ago
Also at FB: one day we got a huge spike in measured site-wide cpu usage. After the terror subsided, we found that a single request on a single machine had reported an improbably huge number of cycles (like, a billion years of cpu time). W
161.
▲
The Windows Subsystem for Linux Build 2020 Summary
(devblogs.microsoft.com)
8 points
by
ahupp
6y ago
|
2 comments
162.
▲
by
ahupp
6y ago
Speaking of: Neon, a system for writing Node libraries in Rust is pretty cool: https://neon-bindings.com/
163.
▲
by
ahupp
6y ago
For this sort of problem Rust's safety guarantees don't buy you all that much. If you're generating machine code and implementing a GC that's not the sort of thing that Rust's typesystem can prove correct. That sai
164.
▲
by
ahupp
6y ago
This is a really cool idea.
165.
▲
by
ahupp
6y ago
Sure, but the why are we talking about special syntax in the first place? In any non-trivial projects you're rarely going to be working with primitive tags, it's always higher level components.
166.
▲
by
ahupp
6y ago
JSX was a direct port of XHP to Javascript.
167.
▲
by
ahupp
6y ago
The problem with E4X is that it's only data; you can't define a new tag that reduces to new primitives. This kind of composability is why XHP (in PHP) and JSX are so useful.
168.
▲
by
ahupp
6y ago
A universal cure for cancer would increase lifespan by (IIRC) 2 years. This would increase it by lots more. I'm having a hard time drawing a line here that says one is good and one is bad.
169.
▲
by
ahupp
6y ago
If the headline was "universal cure for cancer found!", would you also say "I'm missing the good news"?
170.
▲
by
ahupp
6y ago
I worked on FB site performance a decade ago and I assure you it was abysmally slow.
171.
▲
by
ahupp
6y ago
Kind of. I haven't found a VSCode emacs package that does more than superficially handle emacs keybindings; there's always mismatches that trip me up.
172.
▲
by
ahupp
6y ago
The most likely explanation is they phished an employee. How does self-hosting prevent that?
173.
▲
by
ahupp
6y ago
It's not a chip like a CPU. It's chemistry and biology.
174.
▲
by
ahupp
6y ago
There's a neat tool called crater ( https://github.com/rust-lang/crater ) for Rust. It can run an experiment across every Rust package (or every popular one), so you can e.g see if some theoretically breaking compi
175.
▲
by
ahupp
6y ago
Yes, at enormous cost.
176.
▲
by
ahupp
6y ago
Right, but I haven't seen anything to suggest our current testing plans will be universal or frequent enough to really solve this. So testing more is certainly better than not testing, but without constant testing of non-sick people i
177.
▲
by
ahupp
6y ago
Everyone says "we need more testing", but there's actually very little discussion of how that testing would translate into lower transmission. I'm skeptical any program less aggressive than the one proposed here would g
178.
▲
by
ahupp
6y ago
Entirely possible that they are just more memorable than a regular bike. But they are definitely way more popular than a Segway.
179.
▲
by
ahupp
6y ago
The most annoying issues mysteriously fixed themselves after 6mo or so: a trackpad that would go haywire ever once in a while, and diagonal tearing on the screen. It was a brand new model so maybe there were driver updates. The fingerpri
180.
▲
by
ahupp
6y ago
To be fair to the Segway, there's a remarkable number of self-balancing one wheel scooters on the street in SF these days (well, a few months ago). And I think you can trace all of those back to Segway. Sometimes v1 doesn't quit
More ›