HNHacker News
TopNewBestAskShowJobs

hota_mazi

2,724 karma · joined May 30, 2016

submissionscomments
hota_mazi··on Java 20 / JDK 20: General Availability
This is 2023 and you are saying that Microsoft is less ethical than Oracle.

A lot of things have happened since the 90s, you know?

hota_mazi··on The Oberon+ Programming Language
> For me, "begin" and "end" are actually much more comfortable to type,

Type, maybe, but they are visual noise when you read code.

BEGIN and END are also not as easy to match with editors/IDE's as pairs of symbols.

hota_mazi··on Objects Have Failed (2002)
This article gets reposted about every year and every year, it's demonstrated to be completely wrong :-)
hota_mazi··on Zig's multi-sequence for loops
Question for Zig experts:

    for (elems) |x| {
       std.debug.print("{} ", .{x});
    }
Why is the .{x} necessary here? What happens if I just write "x"?
hota_mazi··on How to Start Your Blog in 2023
I would love to get a similar article describing the options for developer-oriented blogs.

Some requirements:

- Code snippets are pretty and colored, and cover multiple languages

- Posting images is easy

- There's a tool to convert my existing Wordpress articles into it (I have 20+ years of that)

- Ideally, Markdown, but I'd consider similarly intuitive mark ups (I can do HTML but would rather not)

hota_mazi··on Fully documented source code for Elite on the BBC Micro
It's hard to understate how groundbreaking Elite was when it came out, let alone on the kind of processor and processor speed it came out on.

Dave Braben is a god on the same level as Carmack.

He created a new game generation for decades, which we're still living in.

hota_mazi··on Clojure Turns 15 panel discussion video
> Clojure is really good at self-selecting for people that really care about innovation in programming languages.

This is a very pompous, pretentious, self-serving, statement.

How about Rust? C++? Kotlin? F#?

You find people interested in these things in all languages, and people not interested in these things in all languages.

hota_mazi··on Clojure Turns 15 panel discussion video
Java is almost 30 years old.

How does it compare in your mind with, say, Rust and Kotlin?

hota_mazi··on Clojure Turns 15 panel discussion video
> Java has more build tools then Clojure

First of all, than*, not then.

Second... no, it doesn't. Gradle and Maven are the standards, and they both use the very well documented, incredibly successful, Maven Central repository. They are just two different implementations using the same, reliable, battle proven approach to dependencies. You need a library? Add it to your build file, with its version, and you're done.

And yes, whether you spell it "wat" or "what", both these words are a dumb way of participating into a discussion that do nothing but expose your ignorance of the topic you are trying to debate. Voice your concern, question, challenge, in plain English, or you'll just come out as childish, combative, and not educated enough to take part in the discussion.

hota_mazi··on Clojure Turns 15 panel discussion video
Clojure users fighting against static typing are on the wrong side of history. They are fighting a side for all the wrong reasons, and they will lose.

There is a reason why all dynamically typed languages today are scrambling to add some form of static typing to their language, but never the other way around.

Static typing does everything dynamic typing does, but better, faster, allow automatic refactoring, faster programs, better navigation, better documentation, better maintenance.

hota_mazi··on Google stores billions of lines of code in a single repository (2016) [pdf]
> The single version dependencies are asinine. We are migrating to a monorepo at work, and someone bumped the version of an open source JS package that introduced a regression. The next deploy took our service down

You're doing it wrong.

The point of monorepo is that if someone breaks something, it breaks right away, at build time, not at deployment time.

You're not really using a monorepo.

hota_mazi··on An old Amiga with ‘Titanic’ miniature shoot ‘video taps’
If you actually read the article, it has nothing to do with the Titanic.

One person who worked on Titanic explains where these shots came from and how they landed there (they were for True Lies, and he and a bunch of friends were Amiga fans who convinced the team to use Amigas instead of the $60k equipment they were using).

hota_mazi··on Meilisearch 1.0 – Open-source search engine built in Rust
"Built in Rust" carries with it a few positive connotations:

- It's fast. - It's safe. Or more specifically, memory safe, which implies that it will be harder to compromise than similar products written in a different language.

Also, these two points are not hype.

hota_mazi··on A 50-year quest: My personal journey with the second law of thermodynamics
There is no question that Wolfram is gifted for math and physics but his reputation for exaggerating claims is well known by now, and hearing him casually say that he was mulling over the second law of thermodynamics at age 12 makes me go "Yeah, right".
hota_mazi··on Google exec fired after female boss groped him at drunken bash, suit says
You have it backward.

Eng managers, directors, and VP's make tons more money than engineers.

hota_mazi··on Why should you use Tokio vs. threads in Rust?
Am I wrong for following the general rule of thumb:

"If your tasks spend most of their time waiting, use async. If they spend most of their time running, use threads"

?

hota_mazi··on Kotlin Data Classes 101: Understanding Syntax, Usage and Inheritance
> What's serialised is not identity but state.

These are not mutually exclusive and they describe actually two very different concepts.

If your objects will end up in a hashing container, you absolutely need to serialize what makes their identity. If not, you can serialize whatever you need from the object. It can be more fields than its identity, or fewer.

I'm not sure what your following point about serialization vulnerability (however correct) has to do with the current discussion.

hota_mazi··on Kotlin Data Classes 101: Understanding Syntax, Usage and Inheritance
All you're saying is that records are more limited than data classes.

You see that as a strength, I see it as a restriction because sometimes, I do like the extra flexibility of adding mutable state to my value objects.

And I know better than altering the value of hashcode after creation, although this only matters if you've put these objects in a hashing container, so it's not even a universal risk.

hota_mazi··on Kotlin Data Classes 101: Understanding Syntax, Usage and Inheritance
Your characterization of "hidden state" doesn't make a lot of sense.

Either a state is part of the object's identity, and it's serialized, or it's not, and it's not. This observation has nothing to do with data classes, records, Java, or Kotlin.

> The result will be equal in the `equals` sense, but the resulting object will not be substitutable for the original.

This doesn't make sense either. You are describing someone who implemented flawed serialization. It's a programmer error, not a language or semantic one.

I see very little difference of practical importance between Java's records and Kotlin's value classe, and as much as I value your technical writings, I am concerned that your employer is tainting your objectivity when trying to compare Java and Kotlin. You can do better.

hota_mazi··on Alan Kay on web browsers, document viewers, Smalltalk, NeWS and HyperCard (2021)
> No one really thinks? Well I doubt you never opened a page and sick of it downloading megabytes of JS and breaking navigation because instead of links,

There will always be poor examples, but they don't invalidate the concept.

Smart web pages, when done right, are an incredible time saver, and if you're not convinced, go visit, for example, the web page of your bank from 15 years ago on the Wayback machine.

hota_mazi··on Alan Kay on web browsers, document viewers, Smalltalk, NeWS and HyperCard (2021)
There is actually no evidence he remembers any of this accurately, just like most of us.

The difference between you and him is that you (rightfully) doubt your memory while he doesn't doubt his.

I think you are more likely to be correct than him.

hota_mazi··on Sergey Brin: Irate Call from Steve Jobs
It's pretty amazing to me that one of the richest people on the planet (at the time anyway) and arguably one of the most successful tech people ever (Sergey Brin) not only did not see anything wrong with putting all of this illegal stuff down in writing, but he's actually unable to use proper capitalization.
hota_mazi··on The strangest computer manual ever written
FYI, hit ESC as soon as the page loads and you can read the full article without the annoying "Please log in to keep reading" modal dialog.
hota_mazi··on Windows 11 update added 'Search' label to taskbar search button – how to remove?
You're being called out for offering unsubstantiated criticism and you respond by offering more handwavy criticism.
hota_mazi··on New in Go 1.20: wrapping multiple errors
And there are 1.5M lines of code of Rust in Android [1].

[1] https://www.theregister.com/2022/12/02/android_google_rust/

hota_mazi··on The road to Dart 3: A fully sound, null safe language
As long as hardly anyone is using Dart outside of Google, it will remain a niche language.

And based on Google's track record, Dart is at risk of being cancelled any day without any notice.

hota_mazi··on The road to Dart 3: A fully sound, null safe language
Not a very meaningful metric.

Take a look at job boards and see how many job postings you find for React compared to Flutter.

hota_mazi··on The road to Dart 3: A fully sound, null safe language
It's used in Flutter exclusively, and since Flutter is hardly used at all, it's a pretty unknown language, and will probably always remain so.

It doesn't help Dart that Kotlin and Swift have been null safe languages for a decade now.

hota_mazi··on The road to Dart 3: A fully sound, null safe language
You are correct.

The billion dollar mistake was not null, it's languages that have a null value but don't support nullability in their type system.

Kotlin and Swift get this right.

hota_mazi··on Fast midpoint between two integers without overflow
Rust has a collection of wrapping functions to cover this case, e.g.

    a = b.wrapping_add(c);
← PreviousPage 3 of 34Next →