Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
BoppreH
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
391.
▲
by
BoppreH
4y ago
Should a compiler also suggest applying the fix? I'm working on my own toy language and wondering if simple, obvious errors (like the `map` -> `nap` typo from the article) should come with an "Apply fix? [y/N]" option
392.
▲
by
BoppreH
4y ago
Isn't that Regression to the Mean[1]? You have two tests, A and B. You take the best N samples by score A, then look at the corresponding score B. Regression to the mean tells you to expect scores B to be lower than A. The classical ex
393.
▲
by
BoppreH
4y ago
Sorry, I wouldn't dream to imply that Clojure is inferior to Javascript. My dig was at the article's implementation of half of Clojure[1], which does have tooling problems. [1] https://en.wikipedia.org/wiki/Gr
394.
▲
by
BoppreH
4y ago
I think that's a bit harsh. It's frustrating to translate an imperative task to an FP language, but it's also frustrating to translate a Bash command into Python, or Prolog semantics into Go, or any program full of mutations
395.
▲
by
BoppreH
4y ago
I love softcore FP (immutability, first-class functions, etc), but I always get the impression that hardcore FP, like in this article, is about reimplementing programming language concepts on top of the actual programming language used. The
396.
▲
by
BoppreH
4y ago
I'm afraid the number of qubits doesn't grow fast enough. Here's[1] a tongue in cheek "Post-Quantum RSA" with 2 Terabit keys. [1] https://cr.yp.to/papers/pqrsa-20170419.pdf
397.
▲
by
BoppreH
4y ago
That's from three years ago, and for error-corrected RSA breaking. ECC has keys an order of magnitude smaller, and minimizing the number of quits to run Shor's is a hot area. And compared to other uses (quantum AI anyone?), it
398.
▲
by
BoppreH
4y ago
Unfortunately I work in cryptography, and breaking our algorithms is one of the tasks that requires the least number of qubits. And that doesn't depend on having a desktop quantum computer either, but only that a single state actor any
399.
▲
by
BoppreH
4y ago
Perhaps it varies by category. I think your "mad-science" niche disproportionally rewards quality because (1) there's a high barrier to entry, (2) each project stands up on its own, and (3) your channel already has a positive
400.
▲
by
BoppreH
4y ago
Ouch, that is a sharp corner: $ echo 'aaa' > a.txt $ echo 'bbb' > b.txt $ TMP_DIR="" # Mistake! Missing arg, failed search, typo'd name, etc. $ cp a.txt b.txt $TMP_DIR $ cat b.t
401.
▲
by
BoppreH
4y ago
Shells are a combination of programming language, user interface, and standard library. The programming language and stdlib aspects are just like Python or Rust, but with a different focus: - Terseness. I can very realistically type hundred
402.
▲
by
BoppreH
4y ago
Some channels have also opted to remove sorting altogether: https://www.youtube.com/user/enyatv/videos I understand the desire to control how users are exposed to your content, but I think these options err too mu
403.
▲
by
BoppreH
4y ago
Part of those activities is sociocultural, but they are grounded in physical benefits. "High heat makes many nutrients more bioavailable", and "some metals and alloys have excellent mechanical strength compared to organic mat
404.
▲
by
BoppreH
4y ago
Quantum computing as we know it requires extreme isolation from the environment, usually in the form of vacuum, RF shielding, and extremely low temperatures. I'm skeptical of a wet warm mass achieving it. There are many aspects of natu
405.
▲
by
BoppreH
4y ago
Most of these points can also be raised against DALL-E 2, but software has one extra thorn: patents. It's a common advice to not read software patents[1] because the infringement penalties are lower if you did so unwittingly, that is,
406.
▲
by
BoppreH
4y ago
I assure you it's not satire, otherwise it wouldn't be such a popular question on StackOverflow[1] and an item in the Python FAQ[2] [1]: https://stackoverflow.com/questions/2295290/what-do-lambda-f... [2
407.
▲
by
BoppreH
4y ago
Dr Lowe explicitly mentions the danger of 254 nm: > That's very much as opposed to (say) 254 nm light, which starts doing damage immediately due to greater penetration into animal tissue. and that 200-222 is safer because of lower p
408.
▲
by
BoppreH
4y ago
It looks like that because it's a minimal example. Real cases usually involve callbacks or expensive computations. How often it happens depends a lot on what you're doing.
409.
▲
by
BoppreH
4y ago
That's one way of thinking about it, and it works well for Python. Here's another one, and the way I think about it: def _loop(i): functions.append(lambda: print(f"Hello {i}")) _loop(0) _loop(1)
410.
▲
by
BoppreH
4y ago
The same problem frequently bites me in Python too: functions = [] for i in range(10): functions.append(lambda: print(f'Hello {i}')) for fn in functions: fn() # Hello 9 # Hello 9 #
411.
▲
by
BoppreH
4y ago
Yes, that might be the case. Though the prompts don't seem to try showcasing model creativity, so I'd be surprised if Google picked a temperature so high that it significantly deviated from the prompt so often.
412.
▲
by
BoppreH
4y ago
It's interesting that these models can generate seemingly anything, but the prompt is taken only as a vague suggestion. From the first 15 examples shown to me, only one contained all elements of the prompt, and it was one of the simple
413.
▲
by
BoppreH
4y ago
Oohh, that's a nice exercise. A few more ideas that should be easy to implement: - Content-Type: application/json, and body {"response"꞉ "success"} (hint: that's not an ASCII colon). - Content-Type: applic
414.
▲
by
BoppreH
4y ago
Tibia shaped my childhood. It was, and still is, quite a unique game: - The chat was used not only for player communication, but to interact with NPCs ("hi, buy 1 plate armor, yes") and casting spells (you say "utani gran hur
415.
▲
by
BoppreH
4y ago
A warning[1] that is present in so many items in California that including it in spurious labels is it's own in-joke. [1] https://www.nytimes.com/wirecutter/blog/what-is-prop-65/amp/
416.
▲
by
BoppreH
4y ago
Unix time does have leap seconds. From Wikipedia: It is the number of seconds that have elapsed since the Unix epoch, excluding leap seconds. Yes, it means the Unix timestamp jumps around, either skipping or repeating a second, when
417.
▲
by
BoppreH
4y ago
1. The Best Regex Trick[1], where you want to match Tarzan but not "Tarzan": use the regex "Tarzan"|(Tarzan) and ignore matches where the capturing group is empty. 2. When making UI adjustments of color, speed, position,
418.
▲
by
BoppreH
4y ago
Be careful with Math.floor on negative numbers. It rounds -1.1 to -2. You probably want the new Math.trunc.
419.
▲
by
BoppreH
4y ago
> The cd command is also buggy: It doesn't work for directories located on CD/DVD drives (You can however still access content on CD/DVD using direct paths): > cd d:\ That's not a bug, is it? `cd` requires the `&#x
420.
▲
by
BoppreH
4y ago
Thank you very much for your concern, but my anonymity was very very casual, and it doesn't bother me much that it's now lost. I was hoping to create a conversation about privacy in language models and it's slippery slope, an
More ›