Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
d0mine
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
391.
▲
by
d0mine
3y ago
CRDT looks interesting. To share not just the results visible in the org file, a remote jupyter notebook could be used. https://github.com/emacs-jupyter/jupyter
392.
▲
by
d0mine
3y ago
Feynman explains quantum correlation using boxes with 3 buttons https://youtube.com/watch?v=ZcpwnozMh2U&t=17m55s
393.
▲
by
d0mine
3y ago
Data point: pyenv works just fine for me. It helps me with installing/managing many python versions (multiple years). I guess, I'm in the "expert" category. I'm saying it so that people won't be afraid to tr
394.
▲
by
d0mine
3y ago
There are people who are not native English speakers. They might find Unicode useful.
395.
▲
by
d0mine
3y ago
stdlib behavior may be more preferable: - resolving "../" may have security implications - unicode hostname seems more readable. To get punycode, one can call .encode("idna") if necessary. How often parsing urls is
396.
▲
by
d0mine
3y ago
It sounds like: "Dropbox is a small UX improvement over rsync"
397.
▲
by
d0mine
3y ago
The dementia rate is 25% at 80 and raises to 37% at 90.
398.
▲
by
d0mine
3y ago
The same can be said about google and more specifically about stackoverflow: you can't just mindlessly copy-paste. It is a tool that can be useful both for a beginner and more experienced developers.
399.
▲
by
d0mine
3y ago
Could you mention three?
400.
▲
by
d0mine
3y ago
It is not either or. Use Python where it is strong, and execute SQL queries from Python where appropriate. Python as a glue language is one of its strong sides.
401.
▲
by
d0mine
3y ago
What is wrong suggesting an alternative approach that makes the solution more readable? Using an appropriate DSL for the problem may be useful. In Python: df.to_sql('purchases', db, index=False) print(*db.execute(query))
402.
▲
by
d0mine
3y ago
It looks like llm hallucinated the query that doesn't group by country to get the median. Here's version generated after asking to fix it: SELECT p.country, SUM(p.amount - p.discount) AS total FROM purchases p JOIN (
403.
▲
by
d0mine
3y ago
It is not about human language being imprecise. I can formulate the questions using the math language precisely with the exact same result (different number of roots are possible for different formulations of the problem for the same "
404.
▲
by
d0mine
3y ago
Why not SQL for pure declarative queries? Here's llm-hallucinated sql query of the polars example: SELECT country, SUM(amount - discount) AS total FROM purchases WHERE amount <= ( SELECT MEDIAN(amount) * 10
405.
▲
by
d0mine
3y ago
Bayesian approach sounds like a religion (one true way). There is nothing unusual about different mathematical methods/models producing different results e.g., the number of roots even for the same quadratic equation may depend on &quo
406.
▲
by
d0mine
3y ago
Embark extends well vertico + consult workflow (selection/narrowing in minibuffer) https://youtu.be/d3aaxOqwHhI
407.
▲
by
d0mine
3y ago
There is a cost in trying to force the language to find bugs for you. More is not always better. Unlike a linter, ignoring false positives from a compiler requires more work to work around them. Not having exceptions in the language creates
408.
▲
by
d0mine
3y ago
It is funny: usually, Java is used as a prime example why checked exceptions are bad.
409.
▲
by
d0mine
3y ago
He described the future 40 years ahead of his time. There is even no need for a pilot today. Videos of drones killing people are freely available on reddit.
410.
▲
by
d0mine
3y ago
REPL is kind of the point: did you try to type and run any of the examples in the tutorial? Just skimming it would be less useful (for the very basics). If you already know everything in the tutorial, then try a project in Python that y
411.
▲
by
d0mine
3y ago
I saw it here, perhaps, in articles about competitions where both humans and computers were allowed (computers-only teams won). I too can’t find anything relevant on google.
412.
▲
by
d0mine
3y ago
> never go away It reminds me: centaurs (human+AI) in chess/go were better than either humans or AI just for a short time. People still play chess but they are outclassed by modern AI.
413.
▲
by
d0mine
3y ago
Space-separated case: import sys from collections import Counter L = Counter( word for line in sys.stdin for word in line.casefold().split() ) L is the words' multiset (the desired lis
414.
▲
by
d0mine
3y ago
The second person was put by MR-3 (Mercury, not Gemini) https://en.m.wikipedia.org/wiki/Timeline_of_space_travel_by_...
415.
▲
by
d0mine
3y ago
It has been lobotomized enough already. Look at C++20 Concepts example https://news.ycombinator.com/item?id=39395020
416.
▲
by
d0mine
3y ago
Just follow the tutorial (yes, really) https://docs.python.org/3/tutorial/index.html
417.
▲
by
d0mine
3y ago
asyncio doesn't store strong references to tasks. It is your responsibility to keep the ref: https://docs.python.org/3/library/asyncio-task.html#asyncio.... Consider organizing the code using TaskGroup.
418.
▲
by
d0mine
3y ago
Iterators can be shared in Python e.g., here's a well-known grouper recipe (traverse `it` iterator in chunks of `N` items each): zip(*[it]*N) Example: >>> L = [1, 2, 3, 4] >>> *zip(*[iter(L)]*2),
419.
▲
by
d0mine
3y ago
There is a crisis in cosmology right now e.g., the apparent conflict in our measurements of the expansion rate of the early versus the modern universe. https://youtube.com/playlist?list=PLd19WvC9yqUf5TRqYoMYxEwjT...
420.
▲
by
d0mine
3y ago
C# is not 90s
More ›