Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
justinpombrio
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
justinpombrio
3y ago
> I've found that line comments (which must end in a newline, regardless of where they appear) are one of the major sources of complexity in writing a good formatter. Indeed they are! Most line comments appear in places that already
92.
▲
by
justinpombrio
3y ago
> How could they have prevented the browser from introducing line breaks? Fixed it with: <code style="white-space: pre">
93.
▲
by
justinpombrio
3y ago
> Also, without being an engineer or technician, it did always seem to me that fridges were like cars in that you had "luxury" models that were standard frames with fancy (often less-than-useful) features, and then actual luxur
94.
▲
by
justinpombrio
3y ago
I wrote a parser library based on (slightly extended) Pratt parsing. It's a nice, different location in the design space of parsers. Very declarative, and it allows having great error messages out of the box. https://github.
95.
▲
by
justinpombrio
3y ago
Pretty lost yeah, but you're asking questions which is better than 90% of the people who are lost. Some very brief answers: They're called qubits; a cubit is a length about 50cm. Pronounced the same though. Quantum computers are n
96.
▲
by
justinpombrio
3y ago
That's not actually the technique the authors are using. Catching 100 fish would be analogous to "sample 100 YouTube videos at random", but they don't have a direct method of doing so. Instead, they're guessing pos
97.
▲
by
justinpombrio
3y ago
Yeah: what's the alternative? September, 2023 -- Notable.io announces one of its primary investors is pulling out. October, 2023 -- Notable.io announces it failed to raise as much as it hoped for in its latest fundraising round. Novemb
98.
▲
by
justinpombrio
3y ago
Well on the other end of the extreme we had Java, which had an awful lot of this: HashMap<String, List<int>> hashmap = new HashMap<String, List<int>>(); Latest Java lets you omit the left type annotation (I
99.
▲
by
justinpombrio
3y ago
I was repeating bad information then. Thank you for the correction!
100.
▲
by
justinpombrio
3y ago
My understanding is that courts haven't even tested if terms of service are enforceable, never mind sudden updates to them.
101.
▲
by
justinpombrio
3y ago
Let's sketch a "law" for digital goods. This law is entirely about how digital products are labeled and advertised. If the seller uses "ownership" words like "own", "buy", or "purchase"
102.
▲
by
justinpombrio
3y ago
Some disciplines have started moving to Arxiv. And all the major programming languages conferences (PLDI, POPL, ICFP, more) switched to PACMPL, which is open acess and I expect is cheaper but am not sure how to check. I don't know much
103.
▲
by
justinpombrio
3y ago
Don't conflate peer review with paid journals, they're very different things. The money received by paid journals doesn't go to the reviewers. The reviewers are mostly professors who have their own funding. I reviewed a paper
104.
▲
by
justinpombrio
3y ago
Yeah, I feel like PhD committee members often have the opposite problem: you want them to read the thing and suggest improvements, but they're too busy to give more than a skim. A duck would just distract them.
105.
▲
by
justinpombrio
3y ago
> Fossil fuels reserves are going to collapse in the coming decades Source? Quick internet searches seem to say we have more than 50 years left of coal, oil, and natural gas that we know we can extract. And that will expand as we find
106.
▲
by
justinpombrio
3y ago
If the voice was chosen specifically to sound like Morgan Freeman, for the purpose of making listeners think it's Morgan Freeman when they hear it, it seems reasonable for it to run afoul of Morgan Freeman's right to publicity.
107.
▲
by
justinpombrio
3y ago
Sure, call it "reasonable hypocrisy", so long as we don't castigate people doing it. How about wanting to legally abolish tips, because it's unfair and leads to subminimum wages for workers? Must you refuse to tip a wait
108.
▲
by
justinpombrio
3y ago
> I don't want it to be subtly manipulating things without my knowledge based on custom instructions that I don't know about. "Answer the customer's questions in an accurate and friendly manner. When appropriate, sugg
109.
▲
by
justinpombrio
3y ago
This is a good general point: it sometimes makes sense to be against X, while simultaneously participating in X. For example: in a country where you need to bribe people to carry on a normal life, you can do so while advocating for an
110.
▲
by
justinpombrio
3y ago
Looking at the poll https://harvardharrispoll.com/wp-content/uploads/2023/10/HHP... Here are two questions on it: > Do you think the Hamas killing of 1200 Israeli civilians on Israel can be justified
111.
▲
by
justinpombrio
3y ago
Sounds like there's a confirmed extracted image, with 5 bloby "constellations".
112.
▲
by
justinpombrio
3y ago
My immediate thoughts after a couple minutes: The message has length 65697, and it's extremely sparse (mostly zeroes) except for the beginning and end. 65697 is only 161 larger than 2^16, suggesting that it has size 2^16 with some extr
113.
▲
by
justinpombrio
3y ago
Has it been solved? Is there a public place where people are trying to interpret the message? I thought this might be in #general-discussion on Discord, but I'm having trouble finding discussion of the message in the middle of people t
114.
▲
by
justinpombrio
3y ago
> Very few engineers want to maintain relationships with customers, interview users to identify potential features, manage leadership, play politics for resource allocation, and so on Ah, so that's what a product manager is supposed
115.
▲
by
justinpombrio
3y ago
> STM is about hardware, not programming languages As others have pointed out, there's STM research in PL, it's not entirely about hardware. (The link I gave wasn't great, sorry.) > Mutable value semantics in native cod
116.
▲
by
justinpombrio
3y ago
There are many cases where you can replace a call to `.iter()` in your Rust code to a call to `.par_iter()` from `rayon`. Those cases are trivial, and it's great.
117.
▲
by
justinpombrio
3y ago
Some relevant PL research STM: https://cs.brown.edu/~mph/HerlihyM93/herlihy93transactional.... Region based memory management: https://en.wikipedia.org/wiki/Region-based_memory_management Rus
118.
▲
by
justinpombrio
3y ago
> In your first example you don’t need the else clause and wouldn’t you clear up a lot of the invariants by checking leaf value (with ‘not a leaf’ appropriately represented) rather than whether there is a left child. I'm not sure wh
119.
▲
by
justinpombrio
3y ago
> But the pattern matching basically still has to deal with that outcome, and have a pattern for each error type. Not so! In Rust: enum FileError { FileNotFound, FileExplodedWhileOpening, } impl Display for
120.
▲
by
justinpombrio
3y ago
> I have not seen anybody successfully build something on their own time, money, risk who like types. If there is someone here, I would love to see it! Experiment: you go and search for people who have built something on "their ow
More ›