Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
murkt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
61.
▲
by
murkt
1y ago
Powerbank is a wrong keyword here, what you want to look for is something like “USB-C power supply with battery”, “USB-C uninterruptible power supply”, etc. Lots of results on Ali for a query “usb-c ups battery”.
62.
▲
by
murkt
1y ago
I wonder if it’s possible to compile Postgres directly into a Python extension instead of WASM. Just import it and go forth, no node dependency, nothing.
63.
▲
by
murkt
1y ago
I am not arguing against that language ideally should have less features. I am arguing with “Python is getting huge”, because it’s huge and has been for many-many years :)
64.
▲
by
murkt
1y ago
This is a pretty simple and useful feature. I wouldn’t say that it bloats the language too much. Descriptors and metaclasses are much more complicated and have a lot more implications and have been in the language for a veeeeery long time.
65.
▲
by
murkt
1y ago
GP commenter complains that it’s not AI that came up with an idea and implemented it, but a human did. In the few years we will see complaints that it’s not AI that built a power station and a datacenter, so it doesn’t count as well.
66.
▲
by
murkt
1y ago
Just spent 10 minutes playing it, looks pretty fun!
67.
▲
by
murkt
1y ago
If you formulate the warnings just right, you wouldn’t need to “force” it, as kids will be willing to look both sides themselves. They like to be alive.
68.
▲
by
murkt
1y ago
Any age. There is no right age to jump out of the window on the 10th floor, no right age to cross a busy interstate by foot, no right age to set a bed on fire. You wouldn’t allow a kid to do it (and similar things) at any age. Would you? :)
69.
▲
by
murkt
1y ago
Yep, it works for majority of children, but not for all of them. Folks that had a couple of kids with whom it did work spread it as a gospel. You can try many other things, and maybe you’ll find something that works some of the time. “What
70.
▲
by
murkt
2y ago
The world is much smaller than it was 200+ years ago.
71.
▲
by
murkt
2y ago
Whenever we do recursive, or really long queries (not often), we’re dropping to basically raw SQL with sqlalchemy.text(). It’s really a lot to keep it wholly in SQLAlchemy: write a complex query in SQL, convert to SQLA, and remember how all
72.
▲
by
murkt
2y ago
Yeah! With SQLAlchemy as a query builder I can easily find all usages of a particular column with Find Usages action in PyCharm. With strings it’s not as easy, and some columns are not really greppable (id, author_id, user_id, etc). Also, h
73.
▲
by
murkt
2y ago
Haven’t seen a mention in readme, but I’ve found in the sources some nicety for INSERT/VALUES too!
74.
▲
by
murkt
2y ago
That is a really neat library! Can see myself using it quite a lot.
75.
▲
by
murkt
2y ago
No, you’re not naive. If it’s done by one-two people that know what they’re doing, it should be done much faster. If it’s a big new team that doesn’t know what they’re doing, working separately from existing codebase, with lots of meetings…
76.
▲
by
murkt
2y ago
In my experience it doesn't matter if templates are pretty simple, or the database access is not optimized. Can matter if you're not careful.
77.
▲
by
murkt
2y ago
Would love to see some benchmarks for all these libraries that compare them to Jinja2.
78.
▲
by
murkt
2y ago
Yes, Starship needs legs to land on the Moon or Mars. They will be lighter than legs for Earth landings, as Moon/Mars have lower gravity. Not sure about the amount of fuel needed to land, as there is much less atmosphere on Mars, and n
79.
▲
by
murkt
2y ago
Yes, when goal isn’t to support 100% of all the weird stuff, then it’s orders of magnitude easier!
80.
▲
by
murkt
2y ago
Author hasn’t tried to highlight TeX. Which is good for their mental health, I suppose, as it’s generally impossible to fully highlight TeX without interpreting it. Even parsing is not enough, as it’s possible to redefine what each characte
81.
▲
by
murkt
2y ago
155mm shells are $3k-10k per piece. So it’s more like 5-20x than FPV drone.
82.
▲
by
murkt
2y ago
Python missed the race pretty heavily with 2to3 transition and still came out on top.
83.
▲
by
murkt
2y ago
Imagine how different the Python ecosystem could be, if this was done 20 years ago.
84.
▲
by
murkt
2y ago
Wow, hearing about “tea mushroom” (that’s how it’s called in Ukraine) for my whole life, and it’s not a mushroom! Fascinating.
85.
▲
by
murkt
2y ago
That's not too HTMX-friendly technology, is it?
86.
▲
by
murkt
2y ago
I guess you're right and "impossible" was too strong of a statement. I just didn't feel like debugging those CSS things, especially when adding any new Leaflet plugins, or any other things. So I just switched to a style
87.
▲
by
murkt
2y ago
Yes, map styles are affected by the classless CSS.
88.
▲
by
murkt
2y ago
HTMX, Unpoly and Twinspark are great, can't say anything about Raku. I also really liked an idea about class-less CSS frameworks, as I was frustrated with all the `<table class="table">` and so on. Then I've tried
89.
▲
by
murkt
2y ago
Agree, Facebook can be easily done with HTMX and similar things. How would you do that with Figma, YouTube, etc?
90.
▲
by
murkt
2y ago
I'm using twinspark.js: https://twinspark.js.org/ It has "actions" that bridge a need for some client-side interactivity, without resorting to write lots and lots of JS. I have some interactive stuff that don
More ›