Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
lhorie
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
107 ms
·
961.
▲
by
lhorie
6y ago
> nothing I couldn't get in the US, save for Nanaimo Bars and Letterkenny And kinder eggs :) As someone who spent several years in Toronto, several in San Francisco and grew up in Sao Paulo, Brazil, I agree that there's a lot o
962.
▲
by
lhorie
6y ago
If I'm coming across as accusing you specifically of racism, I apologize, I did not construe your comment as such. FWIW, many "little X" towns in toronto are in fact caucasian... You are entitled to your opinion and Trudeau t
963.
▲
by
lhorie
6y ago
I lived in Toronto for well over a decade. Perhaps this is a irreconcilable difference of opinion, but what you call a "globalist punching bag" is also affectionately called a melting pot. What you call a manufactured husk is also
964.
▲
by
lhorie
6y ago
Come on now, if you're gonna be pulling the "I lived here 40 years" card, at least acknowledge issues like affordable housing and tech hating graffiti.
965.
▲
by
lhorie
6y ago
I'm sorry but consider that this right here is discrimination too. Go to Costco in Markham, Ontario and you're going to be seeing a lot of chinese people in the way you describe too. But then consider: when was the last time you s
966.
▲
by
lhorie
6y ago
I joined Uber a few months before Travis left. I can share a few things that come to mind: - shortly after Dara joined, he sent a company-wide email to the effect of "all corporate espionage projects must be halted effectively now"
967.
▲
by
lhorie
6y ago
Yes, deasync[0] for example, hooks into the Node.js event loop from c++ land [0] https://www.npmjs.com/package/deasync
968.
▲
by
lhorie
6y ago
Linking to the system curl is indeed very easy, just pass `--library curl`, but cross-compiling means you can't just do that (since e.g. a windows dll is not going to work on macos). Instead you need either source code or a `.o` file.
969.
▲
by
lhorie
6y ago
You can read more about it here: https://github.com/ziglang/zig/issues/2765
970.
▲
by
lhorie
6y ago
Some people like to point to this resource[0] At the end of the day, it comes down to identifying what kind of audience is reading. The ideal (and hard) way to go about docs is to be redundant/verbose/overcommunicative to target d
971.
▲
by
lhorie
6y ago
I tend to agree that allocator param isn't that strong of an argument (e.g. one can easily just store a pointer to the allocator in a struct to hide it from method signatures). And it is quite valid to just create a local allocator and
972.
▲
by
lhorie
6y ago
The advantage is cross compilation. Gcc and friends are notoriously difficult to setup for cross compilation (so much so that some don't even bother trying and either only offer source or just compile from different machines running th
973.
▲
by
lhorie
6y ago
I'll get the bads out of the way first: there are areas where the language isn't quite there yet (e.g. the error thing I mentioned) I ran into an issue where you can't do async recursive trampolines yet (think implementing cl
974.
▲
by
lhorie
6y ago
It's also not entirely about clarity of facts per se, but rather which facts. It's clear for a javascript developer that doing NPM install is going to bring in half the universe worth of transitive deps and that they can opt out
975.
▲
by
lhorie
6y ago
Well, it's not so much about expectations about byte counts per se. YMMV but in my experience, for whatever reason the relative size of an average program happens to correlate with how big and complex a project gets as a function of it
976.
▲
by
lhorie
6y ago
I mean, I don't want to speak for the esbuild author, but he did mention that his rust implementation ran into a number of issues[0], one of them being related to making lifetime stuff happy with concurrency. Judging from other recent
977.
▲
by
lhorie
6y ago
> If you don't mind 20KB of string formatting code So this here is sort of why I brought up binary size. I know hello world size doesn't really say anything about real world, but as I was looking at different languages, a commo
978.
▲
by
lhorie
6y ago
Honestly, I was put off by the early marketing hullabaloo, so I haven't looked closely. What's most problematic in my mind is that from what I've seen, I don't feel that the V lead is as forthcoming about issues and limi
979.
▲
by
lhorie
6y ago
For example, usually it's not obvious when memory is being freed. I recall a thread about esbuild where the author was saying they had better GC perf from go due to GC happening in a thread whereas in Rust it didn't and it was not
980.
▲
by
lhorie
6y ago
As far as I know, zig is the only language that is able to output binaries on par in size w/ C (a hello world in zig is about the same size as a C one, whereas most other languages can only manage at a minimum an order of magnitude big
981.
▲
by
lhorie
6y ago
Here's a different (and potentially offensive, please put away the pitchforks) perspective. Recently at work, I was prompted by a coworker to look at a code review page for some go code they wrote. I don't normally review go code
982.
▲
by
lhorie
6y ago
For parsing specifically, I haven't felt the need for them (errdefer is not really relevant since I don't typically need to clean up resources half-way through parsing, and likewise, zig stack traces aren't necessarily as use
983.
▲
by
lhorie
6y ago
Oh, very cool, I somehow missed that! Thanks!
984.
▲
by
lhorie
6y ago
Yes, e.g. `const Token = struct { kind: Kind, otherStuff: ... }`, where Kind is an enum where one of the values is Kind.error. Then since switch is exhaustive, you can just pattern match on kind as you iterate over tokens to handle the erro
985.
▲
by
lhorie
6y ago
Interesting read, especially as someone poking w/ writing a parser in zig for fun :) One area of improvement worth mentioning in this area is that currently zig errors cannot be tagged with extra information, which tends to be importan
986.
▲
by
lhorie
6y ago
Would be curious to see the results controlling for page size and for type of task. For example, I normally don't use the scrollbar... until I do (because I'm scrubbing a huge page looking for some specific thing). And then I get
987.
▲
by
lhorie
6y ago
I think of documentation as my little secret superpower. It makes one more productive (i.e. one doesn't need to keep getting interrupted to be asked the same question yet again), it makes others more productive (they can unblock themse
988.
▲
by
lhorie
6y ago
Zoom puts the "end meeting" button on the right bottom corner (and volume/video toggles on the left bottom corner). The buttons look different and they are labeled in plain text (no guessing what an icon means). Cmd+w prompts
989.
▲
by
lhorie
6y ago
He said in the past that he's not interested in implementing HMR[0] [0] https://github.com/evanw/esbuild/issues/97
990.
▲
by
lhorie
6y ago
But the author gave a perfectly reasonable alternative solution: put destructive actions reasonably far from common non-destructive ones. There are many other valid approaches: e.g. Chrome prompts "Hold cmd+q to quit" if you fat-f
More ›