HNHacker News
TopNewBestAskShowJobs

kagakuninja

497 karma · joined July 24, 2022

submissionscomments
kagakuninja··on Rob Pike’s Rules of Programming (1989)
IMO binary search is not a fancy algorithm. Modern sort functions are fancy, and can have subtle bugs, which is why ordinary devs should not write their own. Even quicksort has foot guns.

Rob Pike's response would probably be to profile the code first, then see if your fancy code or alternate data structure makes it faster.

kagakuninja··on Reasons Our Civilization Will Soon Collapse
What it does is explain why society didn't collapse in the 70s / 80s like some predicted. We have been living on borrowed time, relying on over consumption of finite resources.

Unless we invent miracle tech, we are fucked. And then there is the climate crisis, which will require massive geoengineering because we waited too long. No one knows if we can avert that crisis or how bad it will get.

kagakuninja··on Google Brain founder says big tech is lying about AI danger
Most of you will die, but that is a sacrifice I am willing to make.
kagakuninja··on Google Brain founder says big tech is lying about AI danger
The sci-fi scenarios are a long-term risk, which no one really knows about. I'm terrified of the technologies we have now, today, used by all the big tech companies to boost profits. We will see weaponized mass disinformation combined with near perfect deep fakes. It will become impossible to know what is true or false. America is already on the brink of fascist takeover due to deluded MAGA extremists. 10 years of advancements in the field, and we are screwed.

Then of course there is the risk to human jobs. We don't need AGI to put vast amounts of people out of work, it is already happening and will accelerate in the near term.

kagakuninja··on An aborted experiment with server Swift
Scala has lost its hype status, and hype chasers will more likely use Go or Rust. Kotlin has encroached on the "better Java" category (and of course Java is now better). One of the great Scala success stories was Twitter, which has been eviscerated by an impulsive man-child, and their commitment to Scala is in doubt.

The community is a bit worried over these developments, and there has been some sniping over the disruption caused by Scala 3 (mainly to projects that relied on macros, even though macros were marked as an experimental feature).

IMO Scala is still the best language on the JVM, and last I checked there were plenty of jobs for experienced Scala devs. The foot guns weren't that severe, or at least I am used to them (in my opinion, Java coding has more foot guns due to nulls and mutable state everywhere, YMMV).

Scala 3 was more incremental, than radical, and was massively less disruptive than you see with other attempts to clean up a language (Python 3, Perl 6, anything involving PHP) due to good design, careful planning and backwards compatibility options.

kagakuninja··on An aborted experiment with server Swift
If you work in Java and like the syntax of Swift, then you should consider using Scala. Of course convincing coworkers and managers to use it can be a problem.
kagakuninja··on Sergey Brin's airship gets FAA clearance
Why do billionaires have cramped yachts?

Living on a giant airship would be like having the highest penthouse apartment in the world, and the most amazing views. And you can move it when you get bored.

kagakuninja··on Apple Announces October Event for Macs: 'Scary Fast'
Exact opposite of my experience. I have a M1 MacBook Pro which has had no issues at all, and I am using an M2 MacBook Pro at work, also great with no problems.
kagakuninja··on How does macOS manage virtual cores on Apple Silicon?
I can't even imagine trying to locate that "useful tab" amongst 1500 open tabs. My bookmarks by contrast are nicely organized into folders. I can also open an entire folder of links at once, for example, my favorite blogs.
kagakuninja··on Human microbiome myths and misconceptions
Imagine learning that the estimated age of the universe was off by 1 order of magnitude. Astronomers will freak out; 99.9% of the world will shrug and get on with their lives, since the number is unimaginably huge and irrelevant to their lives.
kagakuninja··on Leaving Twitter
Elon gets his posts artificially boosted by The Algorithm, and he plans to remove the block feature, because "It doesn't make sense". Also, Xitter apparently puts more hateful shit onto people's "For You" feeds now.
kagakuninja··on Leaving Twitter
I don't even use Xitter, but I hate what Musk is doing to a once great company. But maybe you are OK with more hate speech and disinformation.
kagakuninja··on Software disenchantment
Yes, DONKEY.BAS was legendary... /s
kagakuninja··on Don't use DISTINCT as a "join-fixer"
255 is the maximum array size representable with an unsigned byte. It is possible that old relational DBs could optimize arrays with sizes < 256.

I remember that the ancient Pascal dialect I used in college had max array sizes of 255 because they used a single byte for the size.

kagakuninja··on We have used too many levels of abstractions
Even worse, he ultimately replaced clojurescript with typescript. Both are just JS transpilers.
kagakuninja··on They can and will ruin everything you love
It actually echoes my feelings as both a musician and consumer. Just give me the music, I'll find it on my own through other channels.

To put it another way, there are plenty of ways to find music, what underground musicians need is a an easy to use tool to put their music online, as we are not big enough for Spotify.

kagakuninja··on Ask HN: Did any of you first encounter programming through Scratch?
My first programming book, in 5th grade:

https://archive.org/details/My_Computer_Likes_Me_When_I_Spea...

kagakuninja··on Meta is banning people from advertising after running ads for Python and Pandas
He wanted to whip the llamas ass.
kagakuninja··on Expecting return to office will boost worker productivity is 'magical thinking'
You guys get raises?
kagakuninja··on Trying out C++20's modules with Clang and Make
Header files were an obvious and easy hack for the compiler writers. We don't want to duplicate these declarations in every file. Just put them in a file, and use the magic "#include foo.h" to read the file in at compile time.
kagakuninja··on Comcast squeezing 2Gbps internet speeds through decades-old coaxial cables
AT&T will offer me "Basic 5", Speeds "up to" 5MB/s. This is a great improvement over the shitty ADSL I used to have from AT&T, but I switched to Comcast and now have 800MB/s, and could upgrade to 1GB/s.
kagakuninja··on Multifault earthquake threat for Seattle region revealed by mass tree mortality
Been in the Bay Area since I was 2, 58 years...

I never remember having heat waves in October or February. We also never needed AC, although maybe I'm just growing soft in my old age.

"Indian Summer" meant things might get a bit warm in September, then cool down. Weather stayed cool until the spring.

This summer has been oddly cool (at least in Berkeley), but got up to 92 2 weeks ago, which is not normal.

kagakuninja··on Modern Pascal is still in the race (2022)
My friend told me that functional languages didn't like IO, and that they used recursion instead of loops. I thought "that is fucking nuts" and stuck with C. I basically had Dunning-Kruger in my youth.

Now I am a Scala programmer, often doing pure-FP with Cats...

kagakuninja··on Modern Pascal is still in the race (2022)
Yes, a typo. My friends referred to it as Modula-screw.
kagakuninja··on The Twelve-Factor App (2011)
They also say every server should be a separate process, which is debatable. When using languages that lack real threads (Ruby, Python, etc) you have no choice.
kagakuninja··on The Twelve-Factor App (2011)
I don't use kubernates. We have JVM servers running on AWS. We load secrets from Secrets Manager. Configs are mostly HOCON files stored in S3. The knowledge of where to find them is configured via env vars.

We use a custom setup in which the config values are loaded from multiple sources actually, so we could put everything into secrets manager, or load them all from env vars or HOCON files.

If we had to set every config value in ECS / lambda using env vars, it would be a major pain in the ass, and error prone.

kagakuninja··on Modern Pascal is still in the race (2022)
Lol, I added corporation because I assumed the youngsters didn't know about it. After googling, I see they called themselves Zilog, Inc.
kagakuninja··on Modern Pascal is still in the race (2022)
OK, how about "cumbersome" or "unnecessarily verbose". I haven't used modern Pascal, but the ancient version I used was also very limited.

I am 60, have used many languages, and used to love C and C++. I consider C and C++ archaic and Java is border-line. I thought Java was cool 10-20 years ago, but I've moved on to Scala.

kagakuninja··on Modern Pascal is still in the race (2022)
Mutexes aren't OK even if you only use one. They are error prone, you can forget to unlock. And of course, there is a temptation to avoid using it for efficiency reasons, because you "know" this part of the code is safe.

These days I develop servers on the JVM. We almost never think about mutexes or related things, libraries take care of that. I use Scala, and our entire data model is immutable, eliminating most race conditions. I think I had to declare something as volatile once or twice.

kagakuninja··on Modern Pascal is still in the race (2022)
I have lingering distain for Pascal, unlike other people here...

In 1980 I was a freshman at UCSC, and the professors did not like C. So most classes used UCSD Pascal. While it apparently pioneered some cool ideas, it was not at all ready for industry use. The free function was just a suggestion, it didn't deallocate anything. Arrays were fixed size, and an array of size 80 was a different type than size 255 (and 255 was the maximum).

I remember the compiler class where we built a compiler-compiler using Pascal. It was pretty cool that the professor came up with a design that worked, but also quite dumb as we had to pass around a bunch of 255 char arrays. And also insane that we couldn't use the industrial strength tools like C and yacc available on the VAX / UNIX computers...

But what about Modulo-2? Well one professor would torture the class, making them use various not-C languages. One year it was PLZ (A PL/I based language created by Zilog Corporation). When I took the class, it was Modulo-2, using a compiler developed at CMU I think. It also implemented free() as a suggestion that did nothing, and had other warts. I was not impressed...

I realize that it is unfair complaining about shitty academic implementations, but that's what I lived through.

← PreviousPage 6 of 9Next →