Better HN
topnewbestaskshowjobs
Log inSign up

fiedzia

594 karma · joined Jan 21, 2013 (13y ago) · 476 submissions

Submissions

comment 3d ago · link · parent

> Typically, doing things like changing algorithms, data structures, careful use of caching, reusing calculations, etc. are more important to performance than the choice of language.

The choice of language determines the extent to which those things are possible. In case of Python using C libraries sometimes means that you pull data from somewhere, hold them in Python memory in very inefficient way, pay for transformation to another form that C library uses and then do the same in reverse at the end. Perhaps even more times if C doesn't handle everything. "Use C libraries" often works, but is not universal solution.

comment 3d ago · link · parent

Hell no. Rust is easier to read, write, maintain and reason about. Way more people know Rust than Python/Python internals/Numba interactions. Numba will either get you relatively low gains with little effort, or push into territory very you write code few people will understand, because reasoning about its performance requires deep knowledge of Numba and Python internals. Rust gives a lot more ROI and looks more like Python.

comment 3d ago · link · parent

Mostly because anything that needed to be fast already was written in a language that allows that and most of web/app development focuses on shuffling small amounts of data around. Also pure Python is worse than node in this aspect. Still, there many non-trivial cases. There is a reason most of infrastructure moves to Rust. I've seen poetry spending 30min (!) on dependency resolution once. Test runners and some background/nightly data processing if often first place where you realize you may want to rewrite.

comment 3w ago · link · parent

I was playing with graph tools and to showcase some data, I created a graph of all Rust crates. Anyone interested can use generated data with https://run.cosmograph.app/ to make own analysis.

There is about 330k crates (excluding those no other crates depends on) and 3mln links between them.

Scripts and data (as of today): https://github.com/Fiedzia/rust-crates-graph-analysis

5.

Graph of all Rust crates dependencies(github.com ↗)

4 points · by fiedzia · 3w ago · 1 comment

comment 5mo ago · link · parent

I almost suspect Ubuntu paid for this blog. I imagine it showing this in an ad, adding "or use Linux, which just works" at the end.

comment 5mo ago · link · parent

There is a reason we use React today - if you want dynamic and complex site, HTML is PITA to work with. Either you reload everything on any change (not good), or end up with a maze of partial reloads in event handlers (not good either). It was done, it was bad, React (and similar frameworks) was the solution. If you don't need complexity of React, fine, use HTML. But if you do, who can guarantee that 5 min later someone will not start requesting site not to reload here and there, but update this bit here. So I don't blame people for just using React. And in this case the issue wasn't that react was used, but that it was used poorly.

comment 5mo ago · link · parent

Also Eddie Izzard shows how it really looks like: https://youtu.be/TKQzqwn-jIM?si=Ad_ZMhFr4As6H0lr

comment 5mo ago · link · parent

I guess there might be Bobby 'insert into EMPLOYEES...' tables somewhere.

comment 5mo ago · link · parent

I like to pause movies when some code is shown and see what it is. Apparently you can break into pentagon by knowing basic sql and high-level employees have alternate life writing tcp implementations and graphics libraries.

11.

The case for memory safe desktop Linux distribution(fiedzia.blogspot.com ↗)

3 points · by fiedzia · 5mo ago · discuss

comment 6mo ago · link · parent

I am not sure RAM/fuel prices have much impact here. I have a phone that's about to get 3 generations behind latest one and comparing them side by side, I have 0 reasons to upgrade. Some specs are better, but not enough to notice in daily use.

comment 6mo ago · link · parent

> A good piece of software would make it hard to do this by accident, and probably should default to having the same behaviour with or without trailing slash.

Django redirects one version to another by default, which achieves that.

comment 6mo ago · link · parent

> At least Google/Bing/Yahoo scraping would then be used to provide links back

That doesn't work anymore. Google provides AI generated summary, nobody looks at the original site.

comment 6mo ago · link · parent

Those employees cannot (and are not expected to) code, so dynamic elements are not an option. So what you'll get are mostly either reports or messages. Reports could be created by software (which is how an engineer would do that), messages (like responding to client or manager requests) require more human-facing skills.

comment 6mo ago · link · parent

> it likely can also identify if the thing it's found is similar to something that is already found in the security mailing list?

It can not because this mailing list is not public.

comment 6mo ago · link · parent

> If more than a few percent of execution time is spent in Python you are probably doing it wrong.

Every program that starts with 1% of Python writes more Python and gets to 20,40, 60 and than 99% of it.

comment 6mo ago · link · parent

They claim you can easily mix them so there is some degree of compatibility.

comment 6mo ago · link · parent

I assume other platforms will prioritize paying customers over agents (of not paying ones) because they do not have resources to attempt anything else.

comment 6mo ago · link · parent

Github ignored platform issues (not just performance) because it was busy migrating to Azure, and it wants to bear the cost of ai using its infrastructure now to benefit from that somehow later. Other providers do not have this problem and live mostly from paying customers whose priority is to have stable platform. So yes, it is easy to find someone else whose priorities align with mine and doesn't have GH issues.

> AI gets tossed around as excuse for things, but it really is finding some obscure vulnerabilities humans wouldn't have.

Which is fine, as long those using it do not do so at expense of others. As a paying Github customer, I do not wish to pay for a service that doesn't work because someone else is throwing agents at it. This is largely GH issue, not general problem.

comment 6mo ago · link · parent

> threat actors are going to start heading that way as well

bad actors are not the problem, Github priorities and attitude are, so switching solves that. Will other providers have outages? Sure, sometimes. But you'll be able to find one that manages that better.

comment 6mo ago · link · parent

> Ever seen most high profile apps in the last 10-15 years?

No, but the ones I am paying for are few and with rather solid development record. Looking at top android apps, we have some that have very high bar of engineering (firefox, google translate), some just useful dataset (cooking recipes), but again, even the simple ones outcompeted tons of alternatives.

> most enterprise software

I am not saying enterprise software is super complex, but it is very competitive domain.

comment 6mo ago · link · parent

> software development becomes a commodity and the job becomes something like a fast food job where practically any adult who wants it can do it

That will never happen. Sure, anyone can program something, but to make it professionally there is bar of quality and competition will push most people out. Similarly anyone can write, draw or sing but only a few do it well enough to be paid for it.

And I am old enough to see many tools that allow "anyone to program". They pop up whenever certain standards (like web) become popular, then programming goes in different direction and they vanish in irrelevance. Soon there will be a large set of skill on top of "using AI" and "chat, make me an app" will go out of the window as viable way to make something others want to use and pay for.

comment 7mo ago · link · parent

> What if we built things that are meant to last? Would the world be better for it?

You'd have a better bridge, at the expense of other things, like hospitals or roads. If people choose good-enough bridges, that shows there is something else they value more.

comment 8mo ago · link · parent

> If true parallelism becomes common, it might actually reduce the number of containers/services needed for some workloads

Not by much. The cases where you can replace processes with threads and save memory are rather limited.

comment 8mo ago · link · parent

> Being able to upgrade/repair RAM

Most upcoming laptops now have soldered RAM and soldered wifi becomes common too.

comment 10mo ago · link · parent

> ORMs—built specifically to fix this—still fail at 88%

How so? The only way to do anything dangerous using any orm I've used was when I needed to do something orm doesn't support and I had to extend it, operating at a text layer (custom db syntax or non-standard sql extension). 99% of sql users wouldn't event know how to get there.

comment 1y ago · link · parent

Yes, by deciding on when, where and how you pass it. You know when it is created and destroyed because you wrote the code that either does that directly, or follows the convention (destroy when out of scope, or use of arc - it is programmer's decision).

comment 1y ago · link · parent

> Much of the business world, especially those things that must be done properly, still rely on having physical records and manual process.

Can you name one business that is using physical records where this is not mandated by law? All accounting around me, including banks, is done digitally. The only one I can think of are businesses run by people born before computers where a thing (some still exist). Note that governments and regulated industries can change very slowly, but that's almost always result of not needing to compete, not an intentional choice.

comment 1y ago · link · parent

> Why would you need to treat a web browser like a virtual machine?

There are many reasons. Performance, ability to bring concepts from other domains, ability to do things browser has no api for, ability to provide controlled experience and behaviour that goes beyond common browser usage.

12345
16