HN user

LessDmesg

45 karma
Posts0
Comments185
View on HN
No posts found.

Rust is not a C++ replacement, nor a C replacement. It targets its own niche (embedded, realtime, correctness-oriented). It's a totally different development culture. Zig, OTOH, is absolutely a C replacement.

There are whole different ways of life. For example, before the abundance of oxygen on Earth, the first bacteria lived on sulphur-based biochemistry. It was slow and inefficient, but better than being poisoned by that oxygen plague! Remember that it's an extremely destructive oxidizing agent (even in us it causes aging etc). It actually took millions of years for living organisms to start breathing oxygen (which was the real new and exciting breakthrough of the time).

Both of those things were hoaxes by the Democrats. Pathetic power struggles to distract the public's eye from the real problems that ordinary people face. Who cares if some Russian hackers got some access to the DNC servers? That didn't affect the actual election results, not one whit.

LBYL can easily be enforced by Maybe types, leaving exceptions for really exceptional things (which a nonexisting file definitely isn't). So we see how not having a real type system hurts and deforms a language in ways unrelated to types.

Yet millions of people love what Trump does. And the celebrities that pledged to leave USA if he got elected somehow didn't follow on their promises. The real problem is that the country is polarized now, and neither side will accept the result of election - any result. And who is responsible for this polarization? Democrats and their affiliated media are. They are the ones who couldn't respect Trump's presidency and preferred to destroy the social fabric to get the power back.

K Language (2011) 6 years ago

I think it's the dreams of possible job heaven. With an esoteric language that can be used for finance, you can not only grow your mental gonads ("it's even smarter than Haskell!!") but also possibly get a six-figure job that will be very secure.

Sorry, I don't need your permission. And I'm not being mean, I'm calling out a crappy idea for what it is. If more people did it, the authors of that language and people like them would stop wasting their time making stuff that is a bad idea from the get-go. I'm only providing valuable feedback.

I think we need to separate inheritance trees (arbitrary depth of inheritance) from mixin/trait inheritance which has height = 2. The latter is a lot more useful in eg. games where objects are assembled from mixins like Legos. The former leads to fragility, class bloat and other problems (remember MFC...).

Basically, GUI frameworks are the only area I know where OOP - real, authentic long inheritance chains with encapsulation and extensibility - has worked well.

Ok, good to know. I was afraid that actual full-scale OOP was what saved the day, but it was unnecessary yet again.

Nope, that's not a class, that's a struct and a module with functions. Any method called as obj.foo(5) is really just a function foo with a hidden argument foo(obj, 5). Rust makes this architecture explicit with its structs and trait impls separated - and no OOP in sight.

Classes, on the other hand, are not structs with functions. More like black boxes whose contents can be swapped out at any moment. OOP is about hiding implementation and infinite extensibility.

By "I separated things out into classes", do you mean that you used the whole triad of inheritance + polymorphism + encapsulation?

Let them have it, they certainly have fun reinventing wheels and dealing with dependency issues etc. That won't prevent a new WASM ecosystem from springing up. Not in the least because, as the article says, WASM is a sandbox not jusy for browser use.

I really like this JS-free future we have ahead of us. I mean, I needed to format a date as text recently, and JS can't even do that without downloading some library... The sooner we'll be able to use real languages on the front-end, the better.

Sorry, but I'm not the one trolling. Reading up on "Canon Cat", I find

It had a text-based interface without a mouse, icons, or menus

sigh

The Forth in space thing is just some drivers/firmware for spaceships. I.e. once again nothing that an ordinary user would care about. The APL part is devoid of links to real contemporary software. Not even something of Notepad++ quality...

Please don't waste your time as you don't seem to want to understand my question. Thank you.

I have the same question for K aficionados as I have for Forth ones: what real-world, human-usable, important software has been written in it? A GUI framework, a web browser, a window manager, a text editor, etc. Anything?

I'm asking because the article is poking at C-like languages, i.e. implying that K is good for general-purpose use. Yet all I hear about is that K is good at multiplying numbers and matrices, which is a pretty limited playground.

They should debunk and ban traditional medicine as unscientific paleolithic drivel. Then there won't be a market for those components, and lots of animals, from pangolin to the rhinoceros, will feel better. As well as decreasing diseases. Don't forget that the coronavirus pandemic started because of Chinese appetites for consumption of exotic animals.

I was using it as an example. The fact that they pay poachers to supposedly heal their livers or joints or whatnot doesn't change anything: Chinese traditional medicine is still cruel, pointless and frankly based on primitive animistic beliefs from the stone age. How it can co-exist with modern-day industry in China is beyond me, but it's an important factor in the decline of lots of animals. And you don't see any greenies protest Chinese medicine, they care only about carbon dioxide nowadays.

Apt 2.0 6 years ago

After using Ubuntu then Debian, and briefly trying Arch, it is so much easier to manage packages on Gentoo than the alternatives. USE flags, package.mask and the slots system are indispensable. And you get freedom from systemd.