HNHacker News
TopNewBestAskShowJobs

frfl

1,144 karma · joined March 29, 2017

hn (at) rmrf (dot) ca
submissionscomments
frfl··on Release: OLED Mode extension for Chrome
This all feels very off. Part of the readme, and I hate to say it as it's almost become a trope at this point, feels like it was AI generated.

Plus the commits are "file uploads". Plus the minified multi-MB source files.

My spidey senses are tingling.

frfl··on Show HN: Lux – A luxurious package manager for Lua
Know your tools. If you're writing a script you run once in a while, 60-70ms is meaningless. If you're running it 10x a minute or more, sure reach for that fast startup language.

As comments here suggest, lua isn't much of a bash replacement. Happy to hear your alternatives and suggestions for bash.

frfl··on Show HN: Lux – A luxurious package manager for Lua
Dependency problems are mainly resolved with uv - try it.

1 way to do things - not sure what you mean. It's a general purpose language, if you dont like something there's probably a different library that may do it the way you like (eg, don't like exceptions, use a library that mimics rust style Result values; don't like oop, don't do oop, functional programming is certainly possible in python), or easy enough to start creating your own private utility libraries that do things your way.

Xonsh was okay. Idk if I'd use it again. I'd probably just use python to invoke external cli programs using subprocess. I used xonsh for scripting before. I recall it having a slightly slow start up - I launch shell frequently so that's a no-go for me to use as my default shell.

---

And I looked at alternative scripting languages. Racket, D (has a single file script mode), ocaml, etc. Honestly python seemed good enough, even with its warts, especially with uv to manage deps without a whole formal project needing to be setup for a script. Stwp up from bash. Most of my use cases are fine with argparse + subprocesses + a unix shebang at the top + "chmod +x", with uv handy if I need a external library.

frfl··on Show HN: Lux – A luxurious package manager for Lua
Idk about lua, but uv single file python scripts (search the phrase) may be highly relevant for you. Or pure python, if you don't need to pull in any dependencies.
frfl··on Android Isn't the Anti-iPhone Anymore
Not quite on par with a proper programming environment like desktop Linux, you can still do some useful things with Termux on a non rooted device. Only recently got into it, but it's quite cool to be able to ssh in and write scripts, use Termux API plugin and other things Worth checking out.

I wish Android dev wasn't such a pia and tied to Android SDK. I just want to "make" and "./main" without 10gigs of Android crap to get a hello world app.

frfl··on I maintain a 17 year old ThinkPad
Where does one find a replacement battery for a thinkpad that doesn't die after 6 months?

I spent $100 on what I thought was a legit and reputable local middleman for laptop batteries (of course they just buy from China), but even then first battery was half dead on arrival, and second free replacement was dead in around just under a year with rapid capacity decline after 6 months.

frfl··on Using uv and PEP 723 for Self-Contained Python Scripts
Seems like you're dismissing the uv single file setup approach without fully understanding it. I'd recommend giving it a try. It's indeed simpler and snappier than any other package manager to date.
frfl··on Using uv and PEP 723 for Self-Contained Python Scripts
Anyone use PEP 723 + uv with an LSP based editor? What's your workflow? I looked into it briefly, the only thing I saw after a lot of digging around was to use `uv sync --script <script file>` and get the venv from the output of this command, activate that venv or specify it in your editor. Is there any other way, what I describe above seems a bit hacky since `sync` isn't meant to provide the venv path specifically, it just happens to display it.

Edit: I posted this comment before reading the article. Just read it now and I see that the author also kinda had a similar question. But I guess the author didn't happen to find the same workaround as I mention using the `sync` output. If the author sees this, maybe they can update the article if it's helpful to mention what I wrote above.

frfl··on Republican Congressman Introduces Bill Seeking Abolishment of OSHA
Seems like the opposite of what's being discussed in Canada now as a result of the recent tariff stuff: inter-provincial trade is hampered by different rules and regulations, and now there's incentive and a real push to harmonize them across the country to reduce the difference in order to increase flow of trade within the country. One news article mentioned something like 600 licensing/professional regulatory bodies in the country, each with different rules which hamper both trade and professionals seeking to work in another part of the country.

I know it's not a direct comparison, but feels similar in a way.

This proposal (haven't read it to be fair, only read comment here) seems to go in the opposite direction and at first glance would be a race to the bottom in some places at least (as mentioned by another commenter here) than improve the situation overall.

frfl··on Employment increases by 206K in June; unemployment rate changes little at 4.1%
I have yet to see any source that proves 174 is the sole or major reason for the downturn. If you have something that suggests otherwise that, please do share.

As far as I was able to surmise, after becoming interested in the topic last year, it was a combination of factors: interest rates, 174, over hiring during 2020-2022, over estimating future demand for digital goods/services during the covid, lack of cheap money for funding unprofitable businesses, AI hype, and probably other factors.

The most logical answer is multiple events/factors all within a short span of time, rather than one single thing being the sole reason for the downturn.

frfl··on Ontario Science Centre to close immediately due to risk of roof collapse
Was one of those 250,000 kids. The only real vivid memory I have left of that unfortunately was seeing a Tour de France documentary in the IMAX screen they have. That was really incredible.

Haven't really followed the story closely, but quite sad to see it getting (forcefully?) shutdown like this.

frfl··on Why is Android Development so difficult/complex? (compared to Web and Desktop)
Intellij, which Android IDE is base on, as well as other Jetbrains' editors I'm assuming, all support a Vim plugin. https://www.jetbrains.com/help/idea/using-product-as-the-vim...

It was decent enough when I used an Jetbrains editors a few years back, at least for 80-90% of normal/insert mode vanilla vim editing behavior.

frfl··on Show HN: Quickly scan HN for new articles
I've defaulted to this https://hckrnews.com/ intead of HN homepage. This is ordered by time rather than rank.
frfl··on Ask HN: What are your favourite websites that display a lot of data / tables?
I don't use it, but I know of it: https://www.mcmaster.com/products/pipe-hangers/id~1-1-4/
frfl··on Ask HN: Disillusioned after AI?
There's a certain serenity in it. Maybe its akin to making furniture in a way, working with you hands. Certainly at some point in the future writing C and raycasters may be closer to woodworking than to the status quo of software development.

Sadly raycasters and fiddling with bits is a difficult way to pay for food and rent/mortage. Slinging yaml and json pays better.

Maybe one day I can retire from professional programming and become a hobby programmer...

frfl··on Most of Europe is glowing pink under the aurora
grafelic's image looks totally black on my crappy laptop monitor unless I turn brightness up to 100%, even then it's barely noticeable.

Here's a color enhanced version of grafelic's photo that shows the color bands more easily,

https://i.imgur.com/IS8JWD8.jpeg

Added some blur after color adjustments to remove pixelation artifacts.

frfl··on Neal Stephenson – Announcing Polostan
The first half is pretty good hard-ish sci-fi, might be worth checking out.
frfl··on Neal Stephenson – Announcing Polostan
That effectively sums it up for me as well. I enjoyed the hard-ish sci-fi of the first half, then it turn into some speculative future storyline and I lost interest 5 mins in.
frfl··on Neal Stephenson – Announcing Polostan
Have you looked at Seveneves? I really enjoyed the first half, never finished the second half. Never really liked Diamond Age, but really liked Snow Crash and Cryptonomicon. I have Termination Shock queued up, will see how that goes. The description of this one didn't sound interesting to me.
frfl··on Ask HN: What is the most useless project you have worked on?
But that is useful. You use it everyday, that counts.
frfl··on Your database skills are not 'good to have' (2023)
That's somewhat surprising, but then again, maybe not. Thanks, I'll take note of that.

For anyone else, I also remember PostgresSQL manual/docs being very high quality, so that might be worth reading just to better grok SQL/relational DB topics.

frfl··on Your database skills are not 'good to have' (2023)
I understand that. I was asking more about if anyone knows any open source codebases that are high quality, non-trivial and well designed, that one should read and study to better see how others have written good code and systems.
frfl··on Your database skills are not 'good to have' (2023)
Can anyone share good resources or codebases that have high quality web backend with optimized queries and data structures (db schema, backend internal data structures, overall backend architecture)?

I feel like a lot of code you see in articles or modern companies if often just following the popular architecture/paradigm du jour. As opposed to what this article highlights in terms of making backends return all the data you need in the minimal number of queries. I feel like I understand what's being described here, but I've never actually had the chance to work on anything non-trivial that does it like this, most places I've worked have gone no-SQL or used an orm or were not more than very thin wrappers around some CRUD queries.

frfl··on Modern Git Commands and Features You Should Be Using
For longer lived, bigger projects, absolutely. For smaller stuff, not as much. I use it everyday for $work, but rarely/if at all for any small personal stuff.

I and others wrote a number of things on a thread a few weeks ago: https://news.ycombinator.com/item?id=39594164

frfl··on Intel One Mono
You're right. Didn't consider that.
frfl··on Intel One Mono
> A legible monospace font… the very typeface you’ve been trained to recognize since childhood

I'm guessing very very few kids today have or will see Comic Sans. 98/XP golden years, clippy/wizard/dog, minesweeper, space cadet pinball, winamp, classic MS paint

frfl··on Intel One Mono
Check here https://www.programmingfonts.org/#ubuntu
frfl··on Intel One Mono
Source Code Pro Semibold 9px is my default

Looks better than anything else to my eyes on the terminal

frfl··on Ask HN: Has Reddit Turned into Facebook?
The redesign formerly known as the new design which became the old design after the new new redesign not to confuse this with the old old design.
frfl··on Ask HN: Has Reddit Turned into Facebook?
Bootstrapping is one option that many still choose over external funding. In the lean startup sense, ie a slow burn, low burn rate.

Others may opt for non-VC financing (bank, personal loan, friends, family) or using their own savings as capital, where low burn rate isn't possible.

There's no silver bullet unless you're already rich.

← PreviousPage 2 of 13Next →