Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
uranusjr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
uranusjr
4y ago
Correct, but the challenges are to compile the dynamic library correctly so it runs on another machine, and on a given target machine choose to load a correct compiled artifact. Python has extremely good support for those compared to other
62.
▲
by
uranusjr
4y ago
pg-native is a good example actually. Its readme lines out how you need to first get a compiler, libpq, and have some certain commands in your PATH. With psycopg2 (Python’s equivalent), the most common scenario is ‘pip install paycopg2-bina
63.
▲
by
uranusjr
4y ago
Fundamentally the problems are the same, but the communities have very different priorities. The vast majority of Node is still web dev and the community focuses on dependencies that are deployed as JavaScript files (including transpiled co
64.
▲
by
uranusjr
4y ago
You could, and that’s what psycopg2 did for a while (for a different reason but effectively they separated source and binary releases as different projects). This solves an immediate problem but introduces new challenges, probably the most
65.
▲
by
uranusjr
4y ago
Just fyi Poetry is still using pip under the hood. Also (unrelated to Poetry’s pip usage) if you ever build a dependency from source (the situation where pip executes arbitrary code), Poetry also executes arbitrary code.
66.
▲
by
uranusjr
4y ago
They could’ve called this B-sharp-sharp and get an extra layer of joke for free!
67.
▲
by
uranusjr
4y ago
If I understand correctly DDG !g simply redirects you to Google so this is effectively the same as using Google plus a superfluous redirect.
68.
▲
by
uranusjr
4y ago
> I don't even know a non technical person that doesn't curse under their breath when a date picker pops up. I used to designed software for factory automation and every time there’s dates involved the datepicker is always an e
69.
▲
by
uranusjr
4y ago
Hungarian Notation essentially? Regardless of (assumed) technical advantages I thought we’ve settled most users just don’t like it.
70.
▲
by
uranusjr
4y ago
Given the documentation actually list the data-* syntax as an alternative (and pretty much near the top), I’m assuming they are aware of the problem, but still prefer the non-standard-compliant attributes.
71.
▲
by
uranusjr
4y ago
Yes and no. It is technically a separate installation, but is installed automatically.
72.
▲
by
uranusjr
4y ago
I don’t understand any of the technical details involved here, but reading your comments makes me seriously wondering, does RPi rely on these everywhere, or just when plugged to a Mac? Because all three things seem like pretty reasonable op
73.
▲
by
uranusjr
4y ago
The “one more backtick” syntax is a very early Markdown feature explicitly mentioned by John Gruber (originally only for inline code, of course). It might even be in the original “spec”, I don’t remember, but it dates way back and is implem
74.
▲
by
uranusjr
4y ago
I’m still patiently waiting for Python to eventually decide to jump from 3.X directly to X+1
75.
▲
by
uranusjr
4y ago
There are indeed edge cases where the VM implementation detail leaks, which I assume is what parent was referring to. Typical port exposing just works out of the box on Windows as well.
76.
▲
by
uranusjr
4y ago
Docker (and all container solutions out there) runs the Linux container in a VM on _any_ non-Linux OS. This is a designed trade-off of using Linux virtualisation and not really Windows’s fault (nor macOS where I do a lot of development and
77.
▲
by
uranusjr
4y ago
Another thing that someone brings up most time zoning is brought up: there used to be a time when Americans did it right, and they tore it (almost) all down for what it is now. Culture is shaped and can be changed, it took a wrong turn an
78.
▲
by
uranusjr
4y ago
The open() variant reads the first 100 text characters, not 100 bytes, because open() works in “text mode” by default, so the two are not _that_ different. Your generally point is still very correct though, the memory issue is the main prob
79.
▲
by
uranusjr
4y ago
This is pretty cool. I created simpleindex[1] a while ago to solve a different problem, but since the solution is essentially also running a custom index server, it has several overlapping functionalities to Morgan’s server script. I wonder
80.
▲
by
uranusjr
4y ago
BitTorrent is the first ever program that implements the BitTorrent protocol, written by Bram Cohen, who designed the protocol.
81.
▲
by
uranusjr
4y ago
For “Delete” specifically you can also simply press ⌘backspace when the save dialog is activated to trigger the button. In some dialogs where the button is “Don’t Save” (i.e. autosave not active) the combo may be ⌘D
82.
▲
by
uranusjr
4y ago
I thought they were contributing to the Python web framework called Tornado (quite popular especially before asyncio caught on, but still well-known nowadays).
83.
▲
by
uranusjr
4y ago
Also sometimes accent shows because the speaker isn’t sure at real-time how the sentence is “supposed” to be said, and therefore falls back to the way that feels the most natural. So yeah, listen to more people speak, mimic them, and practi
84.
▲
by
uranusjr
4y ago
The most dominate use (these days, at least) is to implement structural typing (a la Protocol), i.e. conforming to a “shape” without actually inheriting anything. So yeah, it’s not particularly useful for day-to-day use, but still a hook ne
85.
▲
by
uranusjr
4y ago
Just fyi, both npm and yarn are “third party” tools. Cargo is closer to the Rust core, and you can find tools in a similar position in Python as well (e.g. setuptools, hatch). Packaging tools being managed by a different group than people w
86.
▲
by
uranusjr
4y ago
I’m guessing they’re implying tuple, it’s pretty common to consider that type as “immutable list” (although personally I very much dislike this categorisation)
87.
▲
by
uranusjr
4y ago
Thinking it this way, the card definitely work very well, excellent job!
88.
▲
by
uranusjr
4y ago
But you have no way to prove your business card actually runs the released source. And if users are expected to build from source, the card becomes less meaningful. Similar to the original comment, I fully agree this is a very cool thing. B
89.
▲
by
uranusjr
4y ago
Note that this describes a Zen state (as in the Western colloquial sense) and is supposed to be intentionally self-contradicting to provoke thoughts. It’s sometimes disappointing to see a lot of people follow it as rules or strong suggest
90.
▲
by
uranusjr
4y ago
Note that in this instance the user is setting index-url, so no additional indexes are added, but the default index is replaced. So as long as the replaced index is faster, it will result in a faster install. It’s the extra-index-url option
More ›