Readit News logoReadit News
ii41 commented on Open Source is one person   opensourcesecurity.io/202... · Posted by u/LawnGnome
blueflow · 10 hours ago
Maybe we need a Linux distro based on "inactive" software and look how reliably it performs.
ii41 · 9 hours ago
I was once forced to use older (but not deprecated) LTS Ubuntu and I hated it. New software come out and you're gonna want to use them (often forced to use them), and they of course use newer dependencies. I had to do the distribution maintainer job and package a bunch of software myself.
ii41 commented on Open Source is one person   opensourcesecurity.io/202... · Posted by u/LawnGnome
ChrisMarshallNY · 10 hours ago
I don't think Russia (or China, either) has been truly communist, in a long time.

Not sure there are any real communist nations left. It's one of those ideologies that looks good on paper, but falls apart, as soon as humans get added to the soup.

Idealists never seem to account for base human nature.

ii41 · 9 hours ago
Your parent comment labeled themselves off-topic but I'd say they were still pretty on it, but you're like way too off-topic. The point isn't whether some country or some people are real communists or not, but that an individual shouldn't be harassed for maintaining open source software and can somehow be linked to some rival of the West.
ii41 commented on Mozilla to shut down Pocket and Fakespot   support.mozilla.org/en-US... · Posted by u/phantomathkg
0xEF · 3 months ago
What's even more wild is that many users, even on HN, don't seem to pick up on the fact that the alternatives to Firefox are either Chrome or Chrome in different colored trenchcoats. Firefox is like the last bastion of user choice when it comes to deciding how we interact with the Internet, a choice that has been subtly but steadily stripped from us for years.

My question to the FOSS community is why Firefox is not used to build more independent browsers the way Chrome is? While I stand fast on the ground that Google wants to monopolize our web experience, it really seems like the community at large is just...letting it happen. The only strong contender that I've seen built from FF is Iceweasel/cat which works fine for my needs, but is definitely not winning any popularity contests despite actively knocking out those non-free parts of FF.

ii41 · 3 months ago
> My question to the FOSS community is why Firefox is not used to build more independent browsers the way Chrome is?

I actually looked into this. Say you consider yourself as part of the FOSS community, and want to build a new browser, and you start to look for your options. The only things readily available as libraries are webkit (currently owned and open sourced by Apple) and webkit-gtk (based on the former). Apple is like Apple and doesn't really want you to use their open source lib, so even though webkit-gtk team made it happen anyway, good luck if you want to do it yourself. If you decide to just use webkit-gtk, you've made a decision similar to lots of other members of the FOSS community in this area (luakit, the Rust webview crate, etc.). Another option is Qt WebEngine. It's based on Chromium. It's part of the Qt ecosystem and though I think you can use it as a standalone library, carving it out still requires some engineering. So these are the options that are available as libraries. And where are the Firefox ones? Servo makes it clear at the beginning of The Servo Book that it isn't available as a library yet. And Gecko? Firefox source doesn't even include a directory named gecko. It's so tightly coupled with the other parts that you'll need a lot of engineering to carve it out. And this is in contrast to Blink, the engine of Chromium, which is nicely placed in its own directory, having its own webpage with some learning resources.

ii41 commented on Writing into Uninitialized Buffers in Rust   blog.sunfishcode.online/w... · Posted by u/luu
90s_dev · 3 months ago
Write into uninit'd buffers was one of the pain points of Rust for the creator of the new open source "edit" program for Windows[1]. I wonder what he thinks of this article.

> Another thing is the difficulty of using uninitialized data in Rust. I do understand that this involves an attribute in clang which can then perform quite drastic optimizations based on it, but this makes my life as a programmer kind of difficult at times. When it comes to `MaybeUninit`, or the previous `mem::uninit()`, I feel like the complexity of compiler engineering is leaking into the programming language itself and I'd like to be shielded from that if possible. At the end of the day, what I'd love to do is declare an array in Rust, assign it no value, `read()` into it, and magically reading from said array is safe. That's roughly how it works in C, and I know that it's also UB there if you do it wrong, but one thing is different: It doesn't really ever occupy my mind as a problem. In Rust it does. [https://news.ycombinator.com/item?id=44036021]

ii41 · 3 months ago
I think this solves his problem. He said he wants a read function that turns the unsafe buffer into a safe buffer, and this API does that.

IIRC it's not that hard to convince the compiler to give you a safe buffer from a MaybeUninit. However, this type has really lengthy docs and makes you question everything you do with it. Thinking through all this is painful but it's not like you don't have to it with C.

ii41 commented on Buffett to step down following six-decade run atop Berkshire   bloomberg.com/news/articl... · Posted by u/mfiguiere
WalterBright · 4 months ago
China didn't industrialize until after 1978, when they gave up on communism and began a transition to capitalism. Over 30 years after WW2 concluded.

Russia did not industrialize in the 1920s. They did collectivize agriculture, famine ensued. They turned back to free market farming, famine went away. They turned again to collectivization, and farming collapsed again. Eventually, the Soviets allowed farmers to farm small plots and sell what they could raise. These small free market plots kept the country from starving.

Russia did work hard at industrializing during WW2, but it was propped up by the US, who heavily supplied the Soviets. The US actually built factories in the US, dismantled them, and shipped them to the Soviet Union during the war. US engineers and craftsmen taught them.

When WW2 ended, the Soviets looted everything industrial they could find from the Soviet sector. Whole factories were moved east. Soviet industrial output grew during the war.

British industry was also untouched, because the German bomber fleet did not have the range to cover much of Britain, and because Hitler stupidly decided to bomb houses instead of factories. Britain had a pretty anemic recovery from the war - despite getting far more Marshall Plan money than Germany.

Japan did not have a free market before the war, and not much of an industrial economy. Curtis LeMay had a hard time finding industrial targets to bomb, as Japanese industry was characterized as "a drill press in every home". Japan turned to free markets after the war, and we know what happened next. Recall that Japan was burned into ash in WW2. They went from utter defeat to economic superpower, despite not having any natural resources, in just 30 years.

How much more of an "unequal" starting point could there possibly be?

The only common characteristic of prosperity is free markets. And the more free market an economy is, the more prosperous it is. Over and over. It goes back to the middle ages.

The other common characteristic is when countries turn towards socialism, things just get worse and worse for them.

ii41 · 4 months ago
Before opening up in 70s, China had acquired the ability to build by itself: huge numbers of machine guns and grenades, tanks, fighter planes, rockets and satellites (aka missiles), nukes.

These minus nukes and missiles plus battleships is pre-WWII Japan.

This may be helpful if you're curious why so many countries that choose free market instead of Communism after WWII are still not industrialized today.

ii41 commented on Xiaomi MiMo Reasoning Model   github.com/XiaomiMiMo/MiM... · Posted by u/thm
hnfong · 4 months ago
There's only ONE* Chinese speaking country, at least if you only count those that have a Chinese speaking majority population, or uses Chinese as the official language.

* for various interpretations of one.

ii41 · 4 months ago
Chinese is one of the offical languages of Singapore.
ii41 commented on Office is too slow, so Microsoft is making it load at Windows startup   pcworld.com/article/26517... · Posted by u/airstrike
vjk800 · 4 months ago
I use Office software at work daily and I don't understand how that piece of shit can be so fucking slow. It's a serious productivity sink too; I often procrastinate small tasks just because I know half of the time doing it is spent waiting for various part of the office to load and that is somehow very stressful. I realise it is not a huge amount of time per se, but the psychological effect of the piece of crap stopping at any random time to load some bullshit becomes unbearable after some time. A bit like the chinese torture method where they would drop single drops of water on your head and over time it becomes painful.
ii41 · 4 months ago
Wait, I have the impression that water torturing is either US or Soviet invention?

Dead Comment

ii41 commented on PEP 750 – Template Strings   peps.python.org/pep-0750/... · Posted by u/grep_it
patrec · 5 months ago
Thanks!

> they are better for most use cases of string templating where what you really want, is just a string.

I think use cases where you want to unconditionally bash a string together are rare. I'd bet that in > 80% of cases the "just a string" really is just a terrible representation for what really is either some tree (html, sql, python, ...) structure or at least requires lazy processing (logging, where you only want to pay for the expensive string formatting and generation if you run at the log level or higher that the relevant logging line is meant to operate).

ii41 · 4 months ago
If the "just a string" is html, sql, python, etc., the programmer is making a mistake as string interpolation shouldn't be used for those things in the first place, and I really hope < 80% cases of "just a string" are among those.

"just a string" where the string really is just a string is really, really common though. Python is the go-to language for a lot of people (including me) if they just want to bash together a one-time-use script that will never see input from other people, and f-strings are incredibly useful in such cases for generating filenames, debugging messages, etc.

ii41 commented on The Jakt Programming Language   github.com/SerenityOS/jak... · Posted by u/gw2
ii41 · 5 months ago
I'm shocked by that they took the class/struct differentiation from swift. I HATED it when I had to deal with it in the past when working with swift. What's wrong with letting the programmer take the reference whenever they want to? Why do I have to change the whole class when I find something that makes me think it's better to have it passed by value? Why do I have to deal with the complexity of 2 kinds of custom types, with all the existing delicacies of a modern type system? Why on the earth would someone think this is a good idea that is worth taking? Can someone educate me on this?

u/ii41

KarmaCake day69May 18, 2022View Original