HNHacker News
TopNewBestAskShowJobs

murkt

1,342 karma · joined February 7, 2008

submissionscomments
murkt··on Popular gut probiotic craps out in randomized controlled trial
Wow, hearing about “tea mushroom” (that’s how it’s called in Ukraine) for my whole life, and it’s not a mushroom!

Fascinating.

murkt··on Htmx, Raku and Pico CSS
That's not too HTMX-friendly technology, is it?
murkt··on Htmx, Raku and Pico CSS
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 that I knew will work robustly.
murkt··on Htmx, Raku and Pico CSS
Yes, map styles are affected by the classless CSS.
murkt··on Htmx, Raku and Pico CSS
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 it for one project where I had to integrate Leaflet map on a page. And it's just not possible to do with class-less CSS frameworks.

Since then I write `<table class="table">` and have zero problems with that.

murkt··on Htmx, Raku and Pico CSS
Agree, Facebook can be easily done with HTMX and similar things.

How would you do that with Figma, YouTube, etc?

murkt··on Htmx, Raku and Pico CSS
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't touch server. Also it's pretty easy to add more actions when needed.

And if I need to do something really complex, I can just go and read its source code. Which is really hard to do with unpoly and its really complicated OOP style.

murkt··on Taming the beast that is the Django ORM – An introduction
In 15+ years I’ve only used two orms: Django ORM and SQLAlchemy. I’ve also skimmed docs for many others (some JS orms, etc), and those often look completely unusable.

SQLAlchemy is leagues above and beyond Django ORM. I can’t say I have nightmares from dealing with it, but it certainly was not pleasure. A bit too much magic here and there, not flexible enough and provokes too much bad practices. Re-defining save() methods to do a lot of work, anyone?

The best “orm” that I’ve ever used was not an ORM but a query builder — HoneySQL from Clojure. That one is fantastic. No ORM bullshit, no extra data loaded from DB, no accidental N+1 queries. Not reading docs on how to do a GROUP BY, everything’s just easy to write.

Frankly, we often use SQLAlchemy as just a query builder too. Makes life so much easier.

murkt··on Can solar costs keep shrinking?
> LEO agency

I know you didn’t mean Low Earth Orbit agency, but the thought is funny.

If you’re not more than 1000+ km from the nearest satellite, you’re not in a remote area!

murkt··on MiniJinja: Learnings from Building a Template Engine in Rust
Not sharing the same namespace is a benefit, I agree. Not a huge one, as I don’t name my variables “map”, “string” and similar anyway. And would not look favorably if any of my employees did that.
murkt··on MiniJinja: Learnings from Building a Template Engine in Rust
I got used to React components, and after that templates feel a bit cumbersome and un-ergonomic in places.

I’ve been using Django templates since 2006. Jinja was designed after Django templates of that era, fixing their most glaring problems. Don’t remember the exact year when I started using Jinja a lot. Maybe 2013.

For example, a pure existence of an {% include %} tag. People use it, implicitly passing many arguments to some other template. Which makes it very hard to understand and change later.

Macros are not that pleasant to use, there are less features in macros then in Python functions, and tools support is much worse too (static analysis, formatting, etc).

Filters… why do I need to write `value|string` instead of `str(value)`?

Etc.

murkt··on MiniJinja: Learnings from Building a Template Engine in Rust
> JinjaX components are simple Jinja templates. You use them as if they were HTML tags without having to import them: easy to use and easy to read.

…and impossible to understand and keep track of what goes where.

No, thanks. Components are a good idea, and no imports is a horrible idea.

murkt··on MiniJinja: Learnings from Building a Template Engine in Rust
I’ve been using Jinja2 for years and years, probably around a decade now. I don’t remember any other docs?
murkt··on FastHTML – Modern web applications in pure Python
This is fantastic and exactly what I wanted! A very neat idea about how you separate attributes and children.

How does the performance side of this thing look like?

murkt··on FastHTML – Modern web applications in pure Python
I’ve switched back to writing server-based code from writing React SPA. Text-based templates (I use jinja2) is my least favorite part of that.

It’s modeled after Django templates circa 2005, and that was designed with an idea that designers will write those templates, that they are not code.

I’m doing all this for 18 years, it was always programmers who wrote template code.

Why then we have such things as filters, in addition to functions? Untyped macros. Formatting template code is a struggle. Include tags are the worst.

The only thing I fear with regard to all these component libraries is performance. I actually wrote a PoC myself for such a library, but didn’t bring it to production quality.

murkt··on FastHTML – Modern web applications in pure Python
yes you can
murkt··on What happened to BERT and T5?
What would you say are the better models nowadays that are practical?
murkt··on Batteries: How cheap can they get?
I have a 3.5 kWh battery backup in my apartment, since December 2022. Which is proving to be immensely helpful right now. I’m living in Kyiv, Ukraine and we have <10 hours of electricity daily these weeks, because lots of power stations are destroyed by Russians, and nuclear power stations are undergoing repairs and fuel recharge.
murkt··on Optical PCIe 7.0 connection hits 128 GT/s
What’s an electronic wavelength in this context? What’s its size? Photonic ones I assume are in near-IR, on the order of a micrometer.
murkt··on Nemotron-4 340B open weights model
Dupe of https://news.ycombinator.com/item?id=40682000
murkt··on Features I wish PostgreSQL had as a developer
> Partitioned tables works pretty well for this.

Pretty interesting idea. Do you have any stories or experience to share when going with this approach?

murkt··on Features I wish PostgreSQL had as a developer
Have you passed a string into Postgres and then hashed it into bigint with another function? If yes, what function did you use?

I assume that if you do it this way, then you see a string key in logs, views of current/locked queries, etc. Which should immensely help when debugging any kind of problems.

murkt··on Features I wish PostgreSQL had as a developer
It's not exactly string-based as it accepts bigint key, but I guess it's possible to hash a string when you pass it to the function.
murkt··on Why is the LinkedIn app almost half a gig?
You’re definitely not the only one. I expected a rambling about how some not very sane person spends half of their working hours on LinkedIn, constantly updating their profile and whatnot.
murkt··on Jupiter's ocean moon Europa, thought to be habitable, may be oxygen-starved
For more confusion, let’s call some star “Vegetary”.
murkt··on Please make your table headings sticky
Ohh, thank you very much. I was avoiding sticky headers exactly because of this problem
murkt··on Show HN: PRQL in PostgreSQL
PRQL is not an ORM in any kind of way, it’s the less quirky SQL, basically.
murkt··on Implementing Weight-Decomposed Low-Rank Adaptation (DoRA) from Scratch
Hooray, no more confusion with LoRa the radio!
murkt··on Uv: Python packaging in Rust
An ability to override dependencies, finally!
murkt··on YC: Requests for Startups
It’s not like you can hear a drone approaching, while driving APC/BMP, though. For bomber-type quads, sure, it probably can make a difference.
← PreviousPage 4 of 9Next →