Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
akubera
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
akubera
5y ago
In fact it looks like PyPy implemented it first [0], and it was an implementation detail in 3.6, but declared part of the standard in 3.7 [1]. [0]: https://docs.python.org/3.6/whatsnew/3.6.html#new-dict-imple... [
32.
▲
How much traffic comes from the front page of Hacker News?
(blog.royalsloth.eu)
5 points
by
akubera
5y ago
|
0 comments
33.
▲
by
akubera
6y ago
I assumed since this seems to be testing function call overhead, rather than the math, that an equivalent function with BigIntegers would be about the same for JS. But I tried it just for fun: const { performance } = require('per
34.
▲
by
akubera
6y ago
dupe: https://news.ycombinator.com/item?id=25738457
35.
▲
by
akubera
6y ago
I still think it's a shame that Amazon's Ion format never got widespread adoption. https://amzn.github.io/ion-docs/ Superset of JSON with many extra features that people in the comments here desire from their
36.
▲
Getting wise to Neowise, our first visible comet in decades [video]
(youtube.com)
1 points
by
akubera
6y ago
|
0 comments
37.
▲
by
akubera
6y ago
Also related is pythonpy[0], which added a similarly named command 'py', but apparently that project has died. This looks like a big improvement, with math functions auto-imported, and the --script option is a fantastic idea. Good
38.
▲
Misinformation During a Pandemic
(bfi.uchicago.edu)
1 points
by
akubera
6y ago
|
0 comments
39.
▲
by
akubera
7y ago
I'm reminded of this little gem: https://hookrace.net/time.gif (Relevant post https://news.ycombinator.com/item?id=14996715 ) But on the topic: is there actually a dearth of APIs "these days"
40.
▲
by
akubera
7y ago
I always had a similar distaste for headlines with words like "blast" and "slam", but learned recently[0] that these are standard abbreviations for headline writers to save space. Your words are not on that list from Wik
41.
▲
by
akubera
7y ago
Yes but that's the underlying system, not your "application code" handling the structure parsing. Maybe I shouldn't have said JSON, but you do always get a JavaScript object back, as opposed to UNIX filesystem/socke
42.
▲
by
akubera
7y ago
I think the browser is the described OS here: every-api passes objects around, IndexDB is your filesystem, remote REST & GraphQL servers are returning structured JSON objects to your program, you can add a <script> tag to your <
43.
▲
by
akubera
7y ago
Didn't downvote, but they probably came because you asked a very tangential question to the subject. I'll try to answer it: I think you just want to move units around so h (Planck's constant) has units of Joules instead of Jo
44.
▲
Department of Energy Selects Site for Electron-Ion Collider
(bnl.gov)
1 points
by
akubera
7y ago
|
0 comments
45.
▲
by
akubera
7y ago
The "fast project page" this links to is pretty interesting: https://patrickcollison.com/fast > The Empire State Building. Construction was started and finished in 410 days. > Unix. Ken Thompson wrote the fi
46.
▲
by
akubera
7y ago
There was that human-milk ice cream in the UK around 2011: https://en.wikipedia.org/wiki/Baby_Gaga I don't know how well that turned out.
47.
▲
by
akubera
7y ago
So this is like BrowserID/Persona but instead of including the third-party email service to prove identification, the only credentials are on device/in-browser, right? I assume that if you only connect one computer (authenticator)
48.
▲
by
akubera
7y ago
Ah, yeah I see; there's an ambiguity in parsing expressions and tuples which could lead to subtle typing bugs. There's another ambiguity that (a for a in b) is not a tuple, but a generator, while [a for a in b] is a list.
49.
▲
by
akubera
7y ago
Part of the problem here is clearly this person is mapping JavaScript idioms to python; in particular "Needing to put dict property names `{'in': 'quotes'}": these aren't object properties , these are key
50.
▲
by
akubera
7y ago
It's the marketing of "in your city" when they only support (by my estimate) ~6% of the US population, which is at fault. I assume your "middle of nowhere" comment is just trolling.
51.
▲
by
akubera
7y ago
The latter. It's about replacing things like Active Directory, Exchange, Skype, etc. None of the projects relate to the actual science, except maybe Visual Studio licenses? But I know of nobody that uses ROOT on Windows with VS.
52.
▲
by
akubera
7y ago
https://github.com/libp2p/rust-libp2p There's the Rust repository, and the auto-generated documentation can be found at https://docs.rs/libp2p/0.11.0/libp2p/ I'm curious what a
53.
▲
by
akubera
7y ago
Perhaps to align with the final "else" clause, or it was familiar to c programmers due to the c-preprocessor directive https://gcc.gnu.org/onlinedocs/cpp/Elif.html , or they were mindful that every charac
54.
▲
by
akubera
7y ago
I think equating "the internet" and "the web" is sloppy; the author does this in the first paragraph and throughout the article. > It [The Internet/The Web] took off with hackers running independent servers in th
55.
▲
by
akubera
7y ago
and a nice discussion at https://news.ycombinator.com/item?id=13348672
56.
▲
by
akubera
8y ago
Thanks! It's been in front of me this whole time... if it was a python, it would have constricted me. Actually it looks like I can get flake8 & pyright simultaneously; that's actually the ideal situation I was looking for.
57.
▲
by
akubera
8y ago
As with everything, depends on the audience. If working on something web-related or has an obvious need for javascript, then yeah, node can be an assumed dependency (actually probably preferred because I'd imagine you get better integr
58.
▲
by
akubera
8y ago
As far as I can tell, Pyright is designed only for the VSCode plugin? Or at least is a typescript project that parses and analyzes python code, so if you're using that stack already it may be a good choice, but otherwise it's more
59.
▲
by
akubera
8y ago
I just installed it. It gives red squiggly lines under variables that haven't been assigned (typos) and for incorrect methods on variables it can type-deduce. This is without me adding any typing-hints to the script I'm working on
60.
▲
by
akubera
8y ago
What, to you, makes something a fundamental right? The EU's document is "Charter of Fundamental Rights of the European_Union"[0], which does grant privacy as one. That pretty clearly does make it a "fundamental right&q
More ›