Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ptx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
481.
▲
by
ptx
3y ago
If that documented behavior is part of the API contract, then the entire isValid function seems useless and should probably be removed – if it's intended to check emptiness, just use isEmpty which already does that (or rename isValid t
482.
▲
by
ptx
3y ago
Do you have an example of those comments you think would be helpful for beginners? The second point doesn't seem like a positive on the whole, except maybe for the company selling it, in the "there's good money to be made in
483.
▲
by
ptx
3y ago
I'm curious what the PR description means by "the tool reached a compilation success rate of 99.9%". Did it break the code and introduce compilation failures when adding the useless comments?
484.
▲
by
ptx
3y ago
If the problem with the second work-around (the reason it's not satisfactory) is that it's not supported as part of the platform, forcing you to use a "trick" to "outsmart the compiler", then C# has this solved
485.
▲
by
ptx
3y ago
That's what I thought was weird. It starts and concludes with "For example, the Shirky principle means that a government agency [...]", but all the actual examples in-between are of private companies causing problems, not gov
486.
▲
by
ptx
3y ago
> it will process events while waiting for syscall How does that work? According to the source code quoted in the article, there is a separate "coroutine-safe version of time.sleep", which seems like it shouldn't be need
487.
▲
by
ptx
3y ago
> quite impressive for a single author to have a functional, fast language with a working garbage collector From what I gather from the article, they didn't implement a garbage collector, but rather integrated the Boehm GC. This i
488.
▲
by
ptx
3y ago
Can you use MSIX without buying a code-signing certificate?
489.
▲
by
ptx
3y ago
> Jönköping was not until recently. It still isn't. Unlike KTH and Chalmers, "Jönköping University" is listed as a university college, not a university: https://www.uka.se/swedish-higher-education-authori
490.
▲
by
ptx
3y ago
> Whenever anything is sent to the server from the browser, we need proper validation. Input should be properly sanitized before being sent to the server. That doesn't sound right. If the attack vector is reflected XSS, i.e. that
491.
▲
by
ptx
3y ago
Isn't that the idea that unsafe code can do unsafe things internally while exposing a safe interface? So in your example the bug would be in the unsafe code, which shouldn't have allowed the unsafety to leak into the safe code.
492.
▲
by
ptx
3y ago
It's the same process described with different syntax for different operating systems. It contains no "ah yes and you need to" and is not "deep". Here's a templated version of the same process, if you prefer, w
493.
▲
by
ptx
3y ago
At least it doesn't let you do this (as far as I can tell) so it seems slightly better in that aspect: value="1 -o 1" if [ $value -eq 10 ]; then echo "Value is exactly 10." fi The syntax is terrible,
494.
▲
by
ptx
3y ago
Not really. It's the same 3-step process in both cases.
495.
▲
by
ptx
3y ago
Sure. Add "Get the actual official Python from python.org, not whatever mess Microsoft has cooked up" as step 0. If you do use Microsoft's Python distribution though, are you saying that it provides neither "python3"
496.
▲
by
ptx
3y ago
Where can I find more details on how this sandboxing works? Edit: Seems like it's using OpenBSD's pledge API? https://www.youtube.com/watch?v=bpRw6KQnY0k&t=8107s
497.
▲
by
ptx
3y ago
Right, on Windows the recipe needs a few alterations but is essentially the same. This should work: > py -3 -m venv --upgrade-deps my-virtual-environment > my-virtual-environment\Scripts\pip install whatever-third-party-package
498.
▲
by
ptx
3y ago
Are there any plans to rewrite the browser implementation in the Jakt language once that gets a bit more stable? Memory safety would be a unique advantage over other browsers (aside from Servo).
499.
▲
by
ptx
3y ago
Part of the problem is that this used to require third-party tools, which gave rise to lots of different tools, but nowadays everything you need is included in Python itself. The simplest way (in the sense of having the fewest components re
500.
▲
A dangling pointer is indeterminate (2014)
(trust-in-soft.com)
1 points
by
ptx
3y ago
|
0 comments
501.
▲
by
ptx
3y ago
Probably meant as a reference to the "irresistible force meets an immovable object" [0] phrase/idea? [0] https://en.wikipedia.org/wiki/Irresistible_force_paradox
502.
▲
by
ptx
3y ago
Unfortunately you can't use it for Kotlin/JS anymore. Jetbrains recently removed the Maven support from the Kotlin/JS tooling, so it now just pops up a message telling you to migrate to Gradle.
503.
▲
by
ptx
3y ago
Although, according to the link, not because there's anything wrong with it, but because other changes they want to make to the filesystem code would risk breaking soft updates.
504.
▲
by
ptx
3y ago
I've never seen lightswitches like those, but that's a terrible design as well, for the same reasons.
505.
▲
by
ptx
3y ago
You're right that excluding "eval {" is not necessary because it only occurs in the already excluded subset, but that search link is missing a lot of matches since the space character in my pattern has turned into a plus sign
506.
▲
by
ptx
3y ago
This was fixed in version 12.24 (back in 2021) according to the version history page[0], but the current version still uses "eval" in several places[1]. This seems like an unnecessarily dangerous approach – wouldn't it have b
507.
▲
by
ptx
3y ago
Do you have any pointers to more in-depth comparisons to Java's security model and some analysis of why wasm should work better? Is the idea mainly that permissions are more fine-grained? It probably makes porting existing applications
508.
▲
by
ptx
3y ago
I'm not even sure all the points are common sense. Is he saying that English is better than Chinese? Or that using a different kind of keyboard for Chinese would be better? Or that the author believes that only English uses the Latin a
509.
▲
by
ptx
3y ago
It suggested Vernor Vinge's "A Deepness in the Sky", which has some vaguely related concepts but doesn't match the description at all, as far as I can tell.
510.
▲
by
ptx
3y ago
Is it "The Road Not Taken" by Harry Turtledove? The Wikipedia description seems to match. (If so, ChatGPT got it on the second attempt.)
More ›