Better HN
topnewbestaskshowjobs
Log inSign up

shevy-java

2,068 karma · joined Mar 7, 2023 (3y ago) · 2,932 submissions

Submissions

comment 6mo ago · link · parent

> So I had to take a look around to remind myself what Ruby and Ruby on Rails are doing nowadays. They’re doing quite well.

Ah really?

Well ... let's look at TIOBE. Now I am aware that TIOBE sucks, it makes little sense, but even with that in mind, the claim that ruby is doing that well is simply factually WRONG, at the least right now:

https://www.tiobe.com/tiobe-index/

Ruby is ranked 23.

Rust is ranked 15.

Again, TIOBE has tons of issues, people pointed that out, but I am pointing here more at a trend. If you look at the graph:

https://www.tiobe.com/tiobe-index/ruby/

It is more obvious.

Now, I think ruby is a great language, I use it daily as the primary glue language to do literally everything. I call it the ultimate wrapper over C, which ruby ultimately is. But the claim "ruby is doing great" is just simply INCORRECT. And we haven't even gotten to RubyCentral mass-purging developers or adding random new corporate-driven rules to rubygems.org and what not. I never understood why I would be under 100k download restrictions when on github I have full control over my own (!!!) code. I call that an illegal hijacking attempt by RubyCentral (this was about a year before they mass-purged developers anyway, so I could nod my head wisely when that happened lateron, even though I had no advance knowledge, but it did not surprise me once the shopify corporate overlord pulled rank; and DHH sitting on the sidelines making joyful comments at the chaotic situation here on his blog. At that time I noticed that DHH indeed became a problem too).

> There are some typing initiatives (Sorbet), and the language itself is terse as ever.

No sane rubyist uses that typing crap, sorry. And matz isn't the biggest fan of slapping down mandatory types onto everything either. People whose brain is addicted to types, want them; I understand that problem. There is no way you can reason with them because they really WANT types. It's like someone starving for food; that person wants food. There is no way around that. Same with types for these people. And they want to change a language to that too. This is the annoying part. Many years ago I was surprised to hear haskell folks not wanting everyone. After that type addiction, I realise the haskell point of view: some people want to ruin languages. (You may debate whether types ruin ruby or not, but the main point here is that some people want to change a language into something that fits their brain more easily. Now I understand the haskell point of view, despite still thinking this is a snobbish elitist view of exclusion. But language integrity is also indeed important, so I understand that point of view these days.)

> while (obviously) stability would drop (no types in Ruby)

Absolute rubbish nonsense. Absolute. Totally incorrect claim made, from A to Z. But again, you can not reason with these type addiction people. Can't they go to PHP or some other language?

Let's reword it more neutrally then. Which claims and proof support the claim that stability drops because of "no types in Ruby"? Because I never ever had that happen in any code I wrote in ruby in the last +20 years. Yes, you need to be able to query what is possible; often you may have to do .is_a? or .respond_to?. Yes, this is not the same as "advance" type checks. I am not saying types are useless either. What I am saying is that the claim of "you lose stability without types" is ABSOLUTELY RUBBISH NONSENSE. But the brain of type-addicted folks is already set towards "types everywhere". This is the problem. They are trapped in their world of assumptions.

> So in the end it seems I have (licks finger and turns to the wind) 1.47x better outcomes if the app were a Ruby on Rails app instead.

Now he is pulling numbers out of ...

> I have a local LLM running on my (bought it for gaming pre-AI craze) 4090 Ti1 - I’m a free man with unlimited tokens2. So I thought: BRING IT ON!

Ah - and AI already deadlocked his brain on top of that. So not even writing any ruby code but just using AI. And using Rails either. Well, you can write web-applications without rails too. And that works extremely well. That also was the first thing I did when I switched from PHP to ruby back then. And I still don't need or use rails either.

> Since it is a relatively small project the conversion took ~30 minutes. I have no idea if it works or not because I haven’t yet tried running it. But there is one thing I checked, and stared at in horror

So he used AI and still has absolutely no idea about anything. These people don't see a problem with that. Oldschool people didn't go that way.

> That’s right folks! 77% decrease in line count; 4.49 lines of Rust code for each line of Ruby.

Well, using python would also have led to a significant decrease, so that is not surprising. C and C++ and Java also require a lot more information. Types in particular require more syntax and words in general, so really - nothing surprising here. That ruby is succinct and still elegant (except for this type crap) is one reason why people often stick to ruby.

> but I must say it’s looking clean and idiomatic for my dated eye.

But he is using AI here. How does he know that it is clean and idiomatic? The ruby code I write is (to me) very simple and straightforward, typical OOP but simple and practical at all times (whenever possible). AI does not generate such code. And a ton of ruby code on the world wide web, written by humans, looks as if someone beat you silly with a club on the head, before you started to write anything. Even well-used projects such as rack - anyone looked at the source code? Or of sinatra? It looks as if someone was drunk when writing the code. I am biased myself though; for instance, I find Jeremy Evans typically writes elegant ruby code. zverok writes fascinating projects, but his writing style is totally alien to me - your mileage may vary. The point is that there is not really a unified "idiomatic" ruby code. Look at this for instance:

https://github.com/ruby/ruby/blob/trunk/test/ruby/test_threa...

The code was as follows (the link no longer worked, I bookmarked it some years ago and now I can not find the new code but I assure everyone that this was that way, because I stored it locally):

    t1&.kill&.join
The safe navigation syntax has use cases, I am not denying that either. You can shorten some code significantly. But I find this syntax utterly horrible and decided that my code base will be protected against safe navigation horror.

Of course this is a subjective opinion. But ruby syntax is not automatically great merely because it is ruby. You need to think what you want and even more importantly what you don't want. And why.

> I can add types using Agents, so probably type safety can be alleviated

Yikes. And the worst part is: type-addicted people can not modify their brain. I've never seen a type-loving person abandon this love for types.

> Ruby/Rails is pretty much batteries+kitchen sink included, which beats 3GiB of compiled deps.

Ok. Not disputing that. But that more says a lot about Rust than Ruby really. Because the main question should be why you need so much code in Rust for that.

> Testing will be SO MUCH EASIER

Not disputing that either.

This is probably one of the strangest blog statements I have ever read. I think ruby is a great programming language, but this AI-powered transition is just ... strange. Basically he is not really using ruby. But praises ruby. While having AI generate the code. Am I the only one to find this extremely awkward?

comment 6mo ago · link · parent

I think this can only happen if there are viable alternatives.

For instance, the UI at setups such as https://git.devuan.org/Daemonratte/gtk2-ng is quite ok-ish, in my opinion. Granted, it is mostly copy/paste from github but that still is about 1000000x better than sourceforge's interface - and gitlab's UI too (I just hate gitlab's UI, they seem to love complexity and a billion features only 0.000001% ever need; GitHub, with all its faults, is for the most part really simple - not everywhere, e. g. GitHub wiki setup sucks, but by and large I think it is simple overall).

comment 6mo ago · link · parent

Microsoft is really working hard to kill off GitHub now. That's quite amazing.

We have already seen this in the last some weeks, but now this has become a meme that keeps on giving. GitHub down! GitHub up again. GitHub Down! GitHub ... ...

comment 6mo ago · link · parent

Flatpak is quite old, even before 2016. Didn't we have klick on KDE too? And even before that ... what was the name, not guix, but like versioned app-dirs everywhere (not GoboLinux, but some other name ... not stow either; I forgot the name, but their idea was basically how each installed program is not only versioned but viewable via a GUI too; I think this must have been around 2006 or something like that).

comment 6mo ago · link · parent

They said that in the past about many things too - including KDE.

I remember the old discussions from a few years, aka KDE will not depend on systemd. Back then I predicted it will happen.

Lo and behold - it happened.

Isn't it fascinating how naysayers ended up being right, later down the road? This happens often because they tend to be more critical in their thinking than the three seconds memory folks.

comment 6mo ago · link · parent

Those not liking systemd here already moved from debian to devuan.

comment 6mo ago · link · parent

But why would they do so? That makes no objective sense.

Systemd never was "merely" only an init system. And it makes no sense for init systems to grow to systemd-size either, in order to solve non-init related issues.

> In the case of GNOME, KDE etc depending on it, the reason mainly boils down to "we could implement our own manager for handling desktop daemons etc or just get systemd to do it for us"

That's not quite true. GNOME always was close to systemd devs due to funding. KDE was less close, but even within KDE some people lobbied for it such as dave edmunson or however you spell the name, and "me-needs-a-donate-daemon" Nate, who you are not allowed to critisize on #kde reddit. But I agree that they could simplify some code by depending on systemd. Of course this now means that KDE is sold in a dead-lock with systemd. I wonder if I can still use konsole without systemd. I tend to use iceWM since it is so much faster than KDE or GNOME, but when konsole depends on systemd I may indeed need to switch to another terminal. That will be painful though, but there is no stopping systemd - it infects and taints.

comment 6mo ago · link · parent

A gentoo dev actually showed that GNOME can work without systemd. The gentoo wiki explained it.

I never tested this myself, as I also dislike GNOME3 from a UI view (I am fine with mate-desktop though), but I found this to be epic from the Gentoo folks - a single man flipping a finger to the systemd devs. The underdog winning the fight.

A shame gentoo kind of went into its own hole for years ...

comment 6mo ago · link · parent

> Systemd is not an init system: it's a full cohesive management system for Linux distros.

Exactly. If you look back at the old discussions, you see how people tried to claim systemd is merely an init system, but it never was. So all comparisons to e. g. sysinit and what not, were unfair. Dishonest. The systemd devs were not interested in fair discussions. They wanted more control. And they very ruthlessly went forward with it - also thanks to corporate support. Just look at Poettering censoring discussions and stopping them whenever he could.

> But moving away from that also breaks with the Unix tradition.

Systemd never cared about UNIX. Poettering does not even understand UNIX on top of that.

> Systemd as the system management layer is becoming a centerpoint for moving Linux forward

Forward to ...? I don't really see it as moving "forward". I see it as more top-down control singularized into one crew that manages the software here.

> on servers but especially so on the desktop, and it does so at the cost of breaking with traditional views

Well, I would not call it "traditional", as the name is loaded. I see it more as a way to gain more control over the whole ecosystem. We see the same happen with wayland, but on a smaller scale, as wayland does not try to integrate a billion features and functionality.

> It's kind of hard to watch: I want Linux to move forward, and there's just a lot of good ideas there. But it will be painful for a large Linux community to break with traditions.

I don't like systemd, but I view this more realistic. I saw how the non-systemd distributions struggled and eventually most went extinct or were converted into systemd. Only few remain strong, and those few are often also dead - like slackware. And yes I know the spin-offs, but seriously, slackware is a dead man walking. Void is not dead, but yikes, it's not moving forward either.

It is not only systemd though. The whole linux stack got a lot bigger and more complicated. Nowadays you often need python, meson, llvm, mesa and so forth to compile things. Everything got bigger too. A lot of software was abandoned downstream, such as fluxbox - may be irrelevant to most folks, but this is one example of sooo many more. At the base of this problem sits the funding issue. Corporations have a lot more net-control over the ecosystem nowadays. Due to the funding. I think we need to solve this issue of funding, because otherwise we'll end up with systemd-like projects sitting at the key areas.

comment 6mo ago · link · parent

> Systemd-appd gives applications an identifier and stores their permissions

Soon systemd will sniff more data - such as the age:

https://github.com/systemd/systemd/pull/40954#issuecomment-4...

And the usual copium aka this is very harmless, nothing evil is done, nothing bad can happen. That'll cover the age.

In the future systemd will sniff for more private data. For those who think this is a conspiracy theory, well - look at the last some decade or so, and query which claims made early on, about systemd, suddenly become true at a later point in time.

The systemd folks are kind of smart, though, because they provide "merely an init system" (right? Or was the comparison always unfair, because e. g. sysinit never was about adding layer of layer on top of layers) and they build on top of it, for other applications to tap into systemd - at the cost of adding a dependency.

Even LFS/BLFS succumbed recently and now only offers systemd-builds. Personally I think this is kind of betrayal to the spirit of LFS, but Bruce gave an objective argument, which is the time investment for maintaining non-systemd and systemd, and on this particular point he is quite correct. Time is a finite ressource.

What we kind of see here is that systemd keeps on growing and growing. It is the ultimate virus. You can't get rid of it. Now flatpak fell for it too, though objectively speaking I fail to see why flatpaks should have a dependency on systemd to begin with. Thankfully I use versioned AppDirs (similar to GoboLinux) so I could not care any less about flatpaks (don't need them, I already use any version of a program I want to), but flatpak also betrayed its original vision. For some reason those grand visions always become worse over time.

But no worries folks - we know one thing is true, and that is that systemd will grow even bigger. It will not stop until it has swallowed EVERYTHING.

comment 6mo ago · link · parent

I am optimising this: I try to do this while sleeping.

Still too early to showcase what kind of progress I have made here ...

comment 6mo ago · link · parent

> But the thing is, LLMs are very flexible. And you can use them just as effectively to write high-quality code more slowly.

There is a reason it is called slop. On first sight it is often not noticeable but when you dig deeper, you realise that it is often spam-slop. Of course this can be improved upon, but often there is no real improvement and you waste your own time in hope that things get better. Which high quality projects exist that are AI slop generated? Can people name something that is used by many people? The linux kernel? Something in that range? Including documentation? To me it seems people are chasing a dream here: skynet should write the code and they can sit on the beach, enjoying sunshine and fruits.

comment 6mo ago · link · parent

> I personally think this current version of the legislation is a good compromise.

I don't think it is a good compromise. It seems to cover the wrong use cases.

My use cases have nothing to do with children on any level. Why would I want to submit to government restrictions? That makes zero sense.

It's as if the right-to-repair-movement would suddenly be undermined by a lobbyist advocating how restrictions are great. Or Jackie Chan suddenly praising the sinomarxist mono-party.

comment 6mo ago · link · parent

You describe a use case for you. That's fine.

Here we talk about use cases for EVERYONE. I don't see how your use case is fine for me, because I personally do not agree with it on any level at all whatsoever. You believe in restriction. I don't. There is no common ground here.

> It's not realistic for me to be watching over their shoulders 24/7

Is this your job? At which age will you stop monitoring them?

> what can I do to keep them away from stuff 99% of people agree isn't for children to see

99%? Where do you get those numbers from?

Besides, what stuff anyway? Even then the issue isn't about your kids. It is about laws for EVERYONE.

comment 6mo ago · link · parent

We are not past the point at all. Any democracy can ultimately decide on laws and regulation. Why would you wish to insinuate otherwise here? California could easily decide to not implement such laws, for instance.

That data leaks out is always a given. So, gather less data. Ideally none. But this is not a discussion about data. This is a discussion as to what state actors think they are allowed to do. It is an attack on private life of people. See the combined strike against VPNs.

comment 6mo ago · link · parent

I don't trust this one bit.

The reason is simple: the pattern I see hints that there is:

a) money spent, to push through age-sniffing, and b) it is happening almost globally.

I am not necessarily saying that all this can be singularized down to one bribe-using company, be it Meta, Google or what not, or state actors becoming beyond Evil. But just as the butterfly effect is used as analogy how a strong wind can be created further downstream, I see the situation here VERY similar. To me it is not confined to age-sniffing. Remember the sudden declaration of war by the UK against VPN. This is in my opinion connected here. The goal is not "protect the children" but instead spy more on people than before. A gradual extension of this. And some companies and private interests will benefit. See also the recent Palantir claim made against London aka "the major is responsible for more robberies when he refused to obey to our rule". These companies are greedy - and insolent.

comment 6mo ago · link · parent

Some years ago Go was all the hype rage.

Now Rust is the new Go.

I find that very confusing.

comment 6mo ago · link · parent

I would not know, but I also do not think that an event xyz in one place at time, reflects all of a community either. So I could not tell you what the people there do; probably they want to socialize. I think creating and maintaining high quality project would be much more important but maybe that's just me. All the main drivers in ruby, have been written ages ago really - rails, _why the lucky stiff, even the old "Learn to program" tutorial from Chris Pine and so forth. That is not to say that no innovation has happened since then, of course, but it seems the peak days are really far, far behind now ...

Ruby is still a great programming language, but it really needs to intensify the effort to get out of the pit-of-decline.

comment 6mo ago · link · parent

> an annual event happening this year in the Washington DC area where programmers from all over the globe get together over a long weekend to build and contribute to projects that help our communities

Or, just write code for a project - and add useful documentation to it. This is probably more relevant than overpriced hackathons.

comment 6mo ago · link · parent

My main computer has 64GB. I bought that one in late 2022 or so.

Looking at the current prices, even of the same RAM, is just insane. Those companies really need to pay us compensation damage here. The whole "free market" notion does not work when you have de-facto monopolies and mega-corporations abuse average Joe and average Jane.

comment 6mo ago · link · parent

> a path to a ~3x hardware cost reduction

Really?

How long do we have to wait until that ... cost reduction hits us?

comment 6mo ago · link · parent

I think the companies that drive up the prices here, need to pay an extra-tax to all of us. I fail to see why I now have to pay more due to the AI monster companies ruining the economy.

comment 6mo ago · link · parent

> Answering the actual question seems not a high priority

This is a clear sign of propaganda and bullshitting by them. Because answering the actual question would be easy, unless you deliberately want to harass linux users. Perhaps a Barbara Streisand effect kicks in, because people are now sharpening their ears and eyes as to why they harass linux users specifically.

I also have to admit that while my main operating system is linux, on my left side I have a windows computer too. I found this approach more practical, even though I think Linux is far superior to windows. This abuse by private entities to try to force everyone to use winows, is anonying to no ends though.

comment 6mo ago · link · parent

Trump is still trying to distract from the magnitude of the Epstein network.

Not long ago, new accusations came about, involving more superrich - see here https://wsvn.com/news/us-world/former-miami-beach-mayor-accu... and elsewhere, really just a few hours ago; and from the last few days. So here I am wondering ... how can there be an investigation in the USA, but even many weeks afterwards, they keep on finding more and more people that MAY have been involved here? Of course it is guilty-unless-proven-otherwise-in-court, but the key question here is why the investigation "reveals" more and more victims? Should this not already be revealed? Or is the investigation deliberately crippled?

Something no longer works in the USA here. The "we are against immigration" is just the carrot on the stick before the donkey. Or the "let's bomb Iran ... oh wait, inflation now goes up". This is literally an administration that worships chaos and executes pillaging while implementing chaos.

comment 6mo ago · link · parent

Yeah - the mass casualties with regards to Max, changed things a lot. Boeing used to be about enginering; that quality dropped indeed decades ago. Not sure why or how.

comment 6mo ago · link · parent

As long as a mad king is ruling over the USA, no US product or service should taint european markets. I fail to see why money should go into companies that are hostile to europeans. Canadians already made that decision months ago (granted, due to the tight coupling of their own market to the USA, this is mega-difficult; most Canadians live on the southern area, aka close to the USA - realistically Canadians can only reduce dependencies, but will never be able to decouple completely, but they had those discussions before, in particular with regards to security. Why invest into a country that became hostile to other countries? Makes indeed no sense. The USA burned all bridges here.)

comment 6mo ago · link · parent

We can not trust any government here.

comment 6mo ago · link · parent

> Modern PHP is great. Many powerful language features, excellent performance, great community and package ecosystem

I heard this a long time ago about perl. CPAN is great.

Well ... perl entered the fossilized era. I think people do not really observe things correctly. I am noticing the same with ruby right now - everyone sees that ruby is in decline, very strongly so, in the last 3 years. Yet you have blog posts such as "ruby is not dying - it is aging like fine wine". And these are all NOT BASED ON FACTUAL ANALYSIS. I still think ruby is a great language, but if people are not realistic in their assessment of a situation, what does this tell us about people's evaluation in general? People seem to shy away from criticism. You can see this on reddit too, where moderators ban and censor willy-nilly, or even on github, where you can also quickly get eliminated for not conforming to xyz. It's as if some people are very afraid of strong opinions. I don't understand why - an opinion that is objectively false, can be shown to be false.

comment 6mo ago · link · parent

All of PHP is an oddity. It is a practical oddity, but also ugly to no ends. I am glad to have abandoned it many years ago.

Surprisingly enough, I was more productive in PHP than I was in perl. Perhaps perl is even stranger than PHP.

comment 6mo ago · link · parent

Your comparison is not quite optimised as you use () which is not necessary. But I understand the comparison you make.

But, you can write an optimised pipe in ruby too. I actually did that, because I could not want to be bothered to be restricted via ruby's syntax for pipe-like operations.

Even aside from that, the original claim was about pipes versus method chaining. To me these are not orthogonal to one another; they are very similar. Just with the pipe focusing on tying together different programs and focusing on input-output functionality. Method chaining in ruby is a bit more flexible, we have blocks, and usually the methods chained occur in one class/object or the toplevel namespace (less frequently though, usually). Even the pipe comparison is not ideal, because traditional UNIX pipes don't support e. g. data manipulation via an object-oriented focus. And I want that (see avisynth, but extend the idea there via a) nicer syntax and b) data manipulation for EVERYTHING).

I don't see pipe as being exclusive over method chaining or reverse.

One interesting idea was to add |> elixir's pipe-like operator to ruby. I like that, but indeed, the net-gain in ruby is quite minimal since method-chaining + blocks already offer a ton of flexibility, so I am not sure how |> would fit into ruby 1:1. Still I like the idea, but anyone proposing |> needs to come up with really convincing ideas to matz here. Because people WILL ask what the real difference is to method chaining. Even fail-safe method chaining in ruby though I absolutely hate the syntax via ? there ... it reads like garbage to me. Example:

https://github.com/ruby/ruby/blob/trunk/test/ruby/test_threa...

    t1&.kill&.join
(It has moved since then, so the above link no longer works, been some years since I first saw it. Upon seeing it my brain instantly cancelled any use of "&.", even though I understand the rationale. It is just ugly to no ends. I still like the |> syntax in Elixir though, even though I can not really see what this should do in ruby.)
1
464748
98