Better HN
topnewbestaskshowjobs
Log inSign up

shevy-java

2,067 karma · joined Mar 7, 2023 (3y ago) · 2,930 submissions

Submissions

comment 11mo ago · link · parent

I'd like mruby as some kind of fail-save boot system. Ruby powering the operating system as much as possible (ultimately ruby is just syntactic sugar over C, though, so I am fine using C of course).

The lack of documentation means that I'd just waste my time though. Not going to do that.

Also, I think mruby and MRI should not be separate. It doesn't do the project any good. It should be as modular as possible but one code base only.

comment 11mo ago · link · parent

Agreed. Lua is older though. It was created in 1993.

mruby was created in 2012.

I have only two gripes with regard to mruby.

1) The primary users are C hackers. That's ok, but it means it also leaves out many other people. (Lua has the same problem of course.)

2) Documentation. This is something that really plagues about 90% of ruby projects. And it's not getting any better. It is as if in ruby, only 10% care about documentation - at best. Look at rack, opal, wasm for ruby - the documentation is TOTAL TRASH. Non-existing; look at rack. What a joke.

Now that ruby is following perl in its extinction path (sorry, the numbers are hard and real, there is no way to deny it), the ruby community should instead try to reverse that trend. Instead you see mega-corporations such as shopify pwning the remaining ecosystem and cannibalizing on it or people such as DHH rant about how Europe is collapsing (what the actual ... https://world.hey.com/dhh/europe-is-weak-and-delusional-but-... - we need an alternative to rails, how can anyone still work with DHH? Lo and behold, another shopify guy. The message is so clear for everyone to see now). None of this will of course revitalize ruby. Without an active AND actively growing community, ruby is set to die. I say this as someone who still uses ruby daily; I am tired of the "rumours of ruby dying are exaggerated". Yes, the rumours are exaggerated - but they are not rumours. The numbers are solid. TIOBE alone, with its 10000 faults, shows this trend clearly.

comment 11mo ago · link · parent

Soon uv will deliver results without you even thinking about them beforehand!

comment 11mo ago · link · parent

I agree on the first part. This is valid for all programming languages though.

I disagree that you get the same safety as C# anywhere though. But even more importantly - I don't think people should write C#-like code in ruby. It does not really work that well. It is better to write ruby like ruby; and even in ruby there are many different styles. See zverok using functional programming a lot. I stick to oldschool boring OOP; my code is very boring. But usually well-documented. I want to have to think as little as possible because my brain is very inefficient and lazy; zverok has a good brain so he can write more complex code. It is very alien code to me though, but he also documents his code a lot. You can find his code or some of his code here, it is a quite interesting ruby style, but also alien to me: https://zverok.space/projects/

(Ruby also adopted some habits from perl. I also don't think writing perl-like ruby makes a lot of sense. See also the old global variables inspired by perl; I can not recall most of them off-hand, so I avoid using them. My brain really needs structure - it is such a poor thinking machine really. And slow. My fingers are much faster than my brain really.)

comment 11mo ago · link · parent

I agree somewhat, but I'd rather call it their brain adjustment than a religion though.

I think about 99% of people who suggest to slap down types onto dynamic languages have already been using types since decades, or many years, in another language. Now they switch to a new language and want to have types because their brain is used to.

comment 11mo ago · link · parent

> the best point for developer productivity IMO.

That is a fair opinion. My opinion is different, but that's totally fine - we have different views here.

What I completely disagree with, though, is this statement:

> Without any types in a dynamic language, you often end up with code that can be quite difficult to understand what kinds of objects are represented by a given variable.

I have been writing ruby code since about 22 years (almost) now. I never needed types as such. My code does not depend on types or assumptions about variables per se, although I do, of course, use .is_a? and .respond_to? quite a lot, to determine some sanitizing or logic steps (e. g. if an Array is given to a method, I may iterate over that array as such, and pass it recursively into the method back).

Your argument seems to be more related to naming variables. People could name a variable in a certain way if they need this, e. g. array_all_people = []. This may not be super-elegant; and it does not have as strong as support as types would, but it invalidates the argument that people don't know what variables are or do in complex programs as such. I simply don't think you need types to manage this part at all.

> Especially in older poorly factored codebases where there are often many variations of classes with similar names and often closely related functions it can feel almost impossible until you're really familiar with the codebase.

Note that this is intrinsic complexity that is valid for ANY codebase. I highly doubt just by using types, people automatically understand 50.000 lines of code written by other people. That just doesn't make sense to me.

> With an actual fully typed language you're much more constrained in terms of what idioms you can use

I already don't want the type restrictions.

> A gradual type system on top of a dynamic language gets you some of the best of both worlds.

I reason it combines the worst of both worlds, since rather than committing, people add more complexity into the system.

comment 11mo ago · link · parent

That still has not really explained why they (those who propose that) need types in ruby specifically. Whether python has it or not is not relevant because it is another language. The argument that "language xyz has it, so ruby needs it", can be compelling, but does not necessarily have to be compelling. It needs to have a use case for ruby in and by itself. I don't see that intrinsic use case.

comment 11mo ago · link · parent

Yeah. I have the same question and none of the type addicted folks could answer that. The explanations usually boil down to "I used C, so now I need types in other languages too". That's like 90% of the explanations you can see.

comment 11mo ago · link · parent

    def greet(name: String): String
      "Hello, #{name}!"
    end
Yep - looks like utter s...

I understand that many programmers come from languages where their brain has been adjusted to necessitate and depend on types. And they get help from the compiler in capturing some errors. But it is the wrong way to think about programs and logic. I'd wish these guys would stop trying to ruin existing languages. Go add types somewhere else please.

Note: I also use java, so I am not against types per se. I am against a want-on need to slap down types onto everything and your Grandma, merely because your brain (of type afficionados) needs them for survival.

comment 11mo ago · link · parent

Hmm. Although I am not the biggest fan of Rust, I am a huge fan of LFS/BLFS (https://www.linuxfromscratch.org/), so I am all in favour of more high quality information here, including the learnix-os website.

Google search has become so useless in the last years that we all need to counter this evil force by improving existing documentation, as well as adding new high quality information - so from that point of view I am all in favour of such projects, even if the language is not my favourite one. Ideally we could have something like learnix for ALL languages, even the old ones, and even the slow ones. Rust is at the least fast, so it can be compared to C or C++, but I think we also need this top-down approach for, let's say something crazy ... python. (I get the "it is too slow" but this is more about education; plus, computers will become faster in the future too anyway.)

The name learnix may not be ideal though if it focuses on just one programming language. It should be a bit more like LFS/BLFS, and even LFS focuses mostly on shell scripts; I'd prefer an agnostic instruction set, but then they can on top of that use shell scripts of course, with additional scripts in other languages (I adapted all of that stuff into ruby, for instance, although not in a high quality way such as LFS/BLFS e. g. some of those scripts and deployments I wrote lack documentation for other people to adjust and adapt, simply due to lack of time - but I try to improve the documentation whenever time permits, it just has a lower priority compared to other obligations or work-related things).

comment 11mo ago · link · parent

"I was at SF Ruby, in San Francisco, a few weeks ago. Most of the tracks were, of course, heavily focused on AI"

It may be the current "Zeitgeist", but I find the addiction to AI annoying. I am not denying that there are use cases to be had that can be net-positive, but there are also numerous bad examples of AI use. And these, IMO, are more prevalent than the positive ones overall.

comment 11mo ago · link · parent

I don't evaluate it in this way.

What I think should instead be evaluated is how effective that investment into the FSF can be.

I think we also need to think more strategically here. For instance, LibreOffice should really receive a lot more funding and support by states all across this planet. I am tired of the US monopoly (almost a monopoly) here (Microsoft).

comment 11mo ago · link · parent

Force of Good!

comment 11mo ago · link · parent

Right now it is just the foundation I guess. That is, more work to be put on top of it. byroot kind of pointed that out that the proposal reminds him of containers and I think this is the long-term goal eventually, e. g. namespaced isolated containers. At a later time, I think, the syntax for refinements may be simplified and also be integrated into Ruby::Box, since Ruby::Box is kind of a stronger refinement in the long run. But that's my take; ultimately one has to ask matz about the changes. What he did say on the bugtracker was that this is to be considered a low-level API e. g. a foundation work. So things will be put on top of that eventually.

comment 11mo ago · link · parent

To me it seems very few people use ractors. A bit more use fibers though.

It's a bit of a mess IMO. I'd much prefer everything be simplified aggressively in regards to threads + GIL; and Ractors integrated on top of Ruby::Box to provide not only namespaced container-like entities but also thread-support as a first-class citizen at all times. The API of ractors is weird and really not fun to use.

comment 11mo ago · link · parent

Youtube is getting problematic. I write this as someone who basically has some videos running in the background all the time, mostly just DJ music in the background.

First, searching for videos sucks. Yes, the first few results can be useful, then more and more crap shows up. This just wastes my time. But, more importantly - more and more AI videos means I am being bombarded with more time wasters. I have about zero interest in AI videos; I am not saying 100% of it is crap, but I am getting more and more tired wasting any time in this regard here. Then the addiction by Google to have us watch ads - they killed ublock origin too on chrome. Even aside from this, I am noticing a drop of quality lately; many of the channels seem much more boring. I guess this kind of fatigue kicks in over time in general, but it seems to me as if some youtube "content creators" are running out of real ideas. They seem to be desperately addicted to "get the likes" and "get subscribers". I stopped being logged in to youtube years ago already and I also, oddly enough, want to completely decouple myself from Google too (too much Evil in this company now) - youtube is unfortunately something I still need and use right now, but many things suck more and more. Also that "swipe shorts down" - that activity is IMO a mental problem. After some 30 swipe downs, I ask myself why I am doing this. Google tries to want to commit me to this swipe action. It is like psychological manipulation. Click click drag drag click click click.

comment 11mo ago · link · parent

With his recent release of MicroQuickJS, and also prior work, he kind of has to do epic things. People expect that of him.

comment 11mo ago · link · parent

Why? People complain that the YAML specification/protocol is too complex. This may be, but I found using YAML much, much easier and nicer than XML. So to me these two things are not necessarily interconnected. You can have a great implementation and a crappy protocol; but also a great protocol and a crappy implementation.

comment 11mo ago · link · parent

> This definitely doesn't match my memory, and I was there :) Most of the good reasons remain unavailable in X11 to this day.

You two here don't mention any of the reasons. It is hard to discuss this when there are no specifics, so what was needed, and what was not added?

comment 11mo ago · link · parent

> by itself it looks like a fairly reasonable set of choices.

I have not tried this myself, so I can not speak from experience, but if they have removed features that people used, then they are in a similar situation as wayland. So I don't see what the difference then would be. Perhaps your analysis was also incomplete?

comment 11mo ago · link · parent

I have no idea how well this one works, but I am all up for more projects that can compete against the singularization that corporations currently try (see paid developers for wayland, GNOME and now also KDE). I wonder how much money would be needed to make the xorg server adapt to the modern era; I don't even know the featureset that is missing for this either. But I also know that wayland, after 20 years (!!!), will never cover those requests users had over tohse 20 years, simply because it tries to cater to a narrow specification wanted by corporations rather than the people - so much is now clear (wayland protocol was released in 2008, so it is soon 20 years actually; in a few days we have 2026, so it will be 18 years).

comment 11mo ago · link · parent

The issue is more that the current US government is not very bright. Nor very open. Kind of rogue-like.

I think governments should not be able to hide information from citizens in general. I don't trust those who hide stuff while being fed money from the taxpayers - that is a modern form of slavery.

comment 11mo ago · link · parent

This seems more about Apple though?

Let Safari die already.

comment 11mo ago · link · parent

Get outta my terminal!

comment 11mo ago · link · parent

> Lai is a victim of this miscalculation.

I don't think it was a miscalculation. Greed always ran deep in the West too.

> If a country's people could either violently (Romania) or peacefully (almost everywhere else) remove such totalitarian systems of politics

It's not always possible. It works in some countries but not in others. For instance, it seems not possible in Russia.

> China, on the other hand, had not moved away from command economics at the time. Instead, the result was state capitalism. People were free to try new things that could create economic expansion, but only in a way that served the needs of the state.

I somewhat agree, as the sinomarxist theorem and strategem is about that (and the sinomarxists also managed to bring out many people out of poverty too), but your analysis is not entirely correct either as China has many superrich now, which is a perversion in the system. So Xi also lies here. Because how can there be so many super-superrich? This is a master-slave situation, just like in other capitalistic countries. So why then the lie about sinomarxism? They just sell it like an ideology now, not unlike the Juche crap in North Korea.

comment 11mo ago · link · parent

The sinomarxist mono-party is kind of doing their powerplay here.

The interesting thing is that the "two systems, one state" claim was revealed to have been a lie. I can kind of understand the position of China too, mind you - after all there was a war against the UK empire and they forced ceding territory (e. g. Hong Kong). But that still does not nullify the local's people preferences, and Beijing simply bulldozered through by force here. That's the total antithesis to freedom. Xi will focus on Taiwan next - that is also clear. It is in the "DNA" of the sinomarxistic philosophy (though one can wonder how much marxism with chinese focus is still left; it's kind of capitalistic led by a dictatorship. Oddly enough the USA is also transitioning to this by the tech-bros oligarchs.)

We kind of see that freedoms are being eroded. I don't know if that was always the case, or whether it just happens now more rapidly so; or is reported more often, but in the late 1990s I would say we had more freedoms, globally, than right now. Somehow the trend is going towards less freedom. Putin invading Ukraine, occupying land and killing people there is also highly similar to the pretext of the second world war, with the invasion of the Sudetenland by Germany, and then the Gleiwitz lie to sell the invasion of Poland. I think the only real difference here is that more countries have nukes. And smaller countries are kind of put in a dilemma now, since they can not offset bigger countries without nukes.

comment 11mo ago · link · parent

Debian is kind of slow in adapting to the modern world.

I kind of appreciate that debian put FOSS at a core value very early on; in fact, it was the first distribution I used that forced me to learn the commandline. The xorg-server or rather X11 server back then was not working so I only had the commandline, and a lean debian handbook. I typed in the commands and learned from that. Before this I had SUSE and it had a much thicker book, with a fancypants GUI - and it was utterly useless. But that was in 2005 or so.

Now, in 2025, I have not used debian or any debian based distribution in a long time. I either compile from source loosely inspired by LFS/BLFS; or I may use Manjaro typically these days, simply because it is the closest to a modern slackware variant (despite systemd; slackware I used for a long time, but sadly it slowed down too much in the last 10 years, even with modern variants such as alienbob's slackware variant - manjaro moves forward like 100x faster and it also works at the same time, including when I want to compile from source; for some reason, many older distributions failed to adapt to the modern era. Systemd may be one barrier here, but the issue is much more fundamental than that. For instance, you have many more packages now, and many things take longer to compile, e. g. LLVM and what not, which in turn is needed for mesa, then we have cmake, meson/ninja and so forth. A lot more software to handle nowadays).

comment 11mo ago · link · parent

The problem I see is: people are not going to use a project that is AI generated for long really, unless they do it just for a one-off task. I'd like to constantly generate new music. I also have ideas based on existing music so I want to adjust this, but do so programmatically, and that seems ... hard.

comment 11mo ago · link · parent

I kind of want to create music programmatically but so far it has been way too difficult. I also can barely find anything useful via oldschool google search anymore. I am almost stuck like with MIDI here ...

comment 11mo ago · link · parent

> The only sustainable solution is enshrining privacy rights into constitutional law with penalties for repeated attempts to circumvent them.

Yeah I also thought about this. Democracy needs some basic rules. Lobbyists try to not only get their laws into effect but undermine the democratic process.

1
848586
98