HNHacker News
TopNewBestAskShowJobs

msgilligan

659 karma · joined January 27, 2012

submissionscomments
msgilligan··on Show HN: Minum – A minimal Java web framework
This is really cool to see. Congratulations!

The existence of a project like this can lead to feedback that can improve other web frameworks and the JDK itself.

msgilligan··on F-35 can’t be found after pilot ejected
Found it: https://babylonbee.com/news/bad-luck-military-announces-lost...
msgilligan··on Java 21 makes me like Java again
... and I agree that there is a need for a Java 21+ book which includes discussion of algebraic data types, pattern matching etc.
msgilligan··on Java 21 makes me like Java again
And I would recommend "The Well-Grounded Java Developer" (2nd edition) to those who have mastered the functional-style Java of "Modern Java in Action". It covers JDK 17 (and beyond) and also has a a polyglot JVM focus with coverage of Kotlin and Clojure.

https://www.manning.com/books/the-well-grounded-java-develop...

msgilligan··on Java 21 makes me like Java again
Modern Java in Action (the 2nd edition of Java 9 in Action) covers Java 11 and contains a final chapter that talks about "future Java" features -- many of which are now implemented.

It's a great book for Java programmers who want to make the jump to functional-style programming. If that's the transition one is hoping to make, then I would definitely recommend the book.

msgilligan··on Java 21 makes me like Java again
Well hopefully it won't be mixed in _randomly_.

I have some use cases in mind and think it will be very helpful. I have been converting a 10+ year-old code base to modern, functional-style Java and believe that sealed types and pattern matching will help us further simplify our code and eliminate more usages of nullable values.

A challenge for us will be that we need the core library to stay on JDK 8 for a while. But, in general, I am finding that you can implement a JDK 8 library that works well with newer JDKs if you are careful (and willing to write more verbose code using the older syntax/libraries to support the newer paradigms)

msgilligan··on Java 21 makes me like Java again
It's a great post. Thank you for writing it!
msgilligan··on Java 21 makes me like Java again
The title of the blog post is IMO a poor choice. The (hidden) subtitle of the post is "Algebraic data types in Java" which is much more descriptive of the content. A better title would have been "Algebraic data types in Java 21".

Perhaps because of the title, many/most of the comments here are off-topic. I was hoping to see more discussion about algebraic data types, strengths and weaknesses of the Java implementation, technical comparisons to other languages, etc.

msgilligan··on Java 21 makes me like Java again
One thing about "gradually gaining features" is that the Java language architects do a very good job with backward-compatibility. This means that your application/library will be easier to migrate to newer versions of the language and you will continue to have a large number of 3rd-party libraries available. The Scala community is currently migrating to Scala 3 and many libraries have not been ported (Scala experts correct me if I'm wrong.) Kotlin also seems to be less stable at the API level than Java (but I may be wrong here, Kotlin experts please correct me.)

This backward-compatibility does comes with costs (e.g. non-reified generics)

Also, if you're a library developer and you want to create a JVM library that can be used by Scala, Kotlin, etc. developing in Java is often the best choice. For one thing it avoids any dependencies on the standard libraries of those other languages.

Disclaimer: I like Kotlin and Scala, but mostly use Java.

msgilligan··on Java 21 makes me like Java again
Manning's Modern Java in Action is outstanding. It assumes you already know basic Java.

https://www.manning.com/books/modern-java-in-action

msgilligan··on Why Socialism? (1949)
I'm pretty sure this is not a valid Hayek quote. Hayek was not known for being unnecessarily confrontational (or pithy), so it doesn't sound like something Hayek would write or say to me.

I've searched for proper attribution and been unable to find it.

msgilligan··on The feds asked TikTok for lots of domestic spying features
They can't do that to our pledges. Only we can do that to our pledges.
msgilligan··on StarLite 12.5-inch Linux tablet
I had to double-check that, I thought it was 512 MB. Yeah, that's not very much.

I also recall that the final iOS version for that device (iOS 5.x or 5.1.1) left less memory for apps and I regretted agreeing to that upgrade.

I really wish I could install a minimal Linux and the best minimal browser available. That would at least be an improvement over the doorstop that I have.

msgilligan··on StarLite 12.5-inch Linux tablet
Yeah, it’s really a shame. I have the original iPad and the hardware remains solid. If I could have an updated browser that could display modern websites without crashing, I would still use it.
msgilligan··on Bankman-Fried used $100M in stolen FTX funds for political donations, US says
They got him far. But eventually he flew too close to the sun.
msgilligan··on Remembering Bob Lee
I remember having beers with Bob at the Tied House in Mountain View (maybe 10-15 years ago) after some conference or meetup (perhaps at Google.) A friendly, humble guy who was a great human being and great developer.
msgilligan··on JDK 20 and JDK 21: What we know so far
Well, you do most of your compilation, test, and debug under the JVM and only do final test (and possibly debug) with native compilation.
msgilligan··on And Just Like That, America Becomes More Rural
The "And just like that" strongly hints that the change is "at the stroke of a pen" and not something real.
msgilligan··on Why all the NixOS hype? Did we all forget about Guix?
Guix is also both a package manager and a Linux distro:

> You can install GNU Guix on top of an existing GNU/Linux system where it complements the available tools without interference (see Installation), or you can use it as a standalone operating system distribution, Guix System2.

https://guix.gnu.org/en/manual/en/html_node/Introduction.htm...

msgilligan··on BundesMessenger, a secure messenger for Germany’s public administration
Signal is (as far as I know) single-vendor, which they are confusingly calling “closed proprietary”
msgilligan··on NSA urges orgs to use memory-safe programming languages
My understanding is that Rust provides memory safety with less overhead than languages that provide memory-safety via garbage collection. This comes at the price of some extra cognitive load for developers, but is appropriate for many applications where the added performance is needed.

(Not necessarily "better" overall, but a better choice for certain applications.)

msgilligan··on C Minus Minus
C—- was the joking name for the subset of C we had to implement for my Compilers course in college (1990s, UCSC). I’ve assumed that other courses at other colleges did this, too.

When I clicked on the link this is what I expected the article to be about.

msgilligan··on The lighthouse in economics (1974) [pdf]
Somewhat related: There was an Open Source, Bitcoin-based, crowdfunding project (now defunct, I believe) created by Mike Hearn named "Lighthouse": https://news.bitcoin.com/an-old-mike-hearn-crowdfunding-proj...

Note: The link I provided above is for a later relaunch of the project on Bitcoin Cash.

msgilligan··on LSD-like molecules counter depession without the trip
Further thought: Maybe insurance companies could pay, reimburse, or reduce rates for those who can reliably prove they are exercising.
msgilligan··on LSD-like molecules counter depession without the trip
I’m not in the insurance industry and have no idea what the actual reason is.

And I don’t know what the statistics are, but a significant percentage of people with gym memberships rarely go to the gym. I suspect the percentage of people with free (i.e. payed for by insurance) insurance who rarely go would be much higher.

msgilligan··on IFixit: Self Repair Program makes M1 MacBooks less repairable
The iFixIt headline is actually "Apple’s Self-Repair Program Manages to Make MacBooks Seem Less Repairable".

The word _seem_ is important here. 9to5Mac should change their headline accordingly and so Hacker News should maybe change the link.

msgilligan··on 10BASE-T using Raspberry Pi Pico with 2 GPIO pins
I’d you haven’t used a drill to attach a computer to a network, you can’t appreciate how easy things are these days…
msgilligan··on Don’t call it a comeback: Java is still champ
It is now 11 and 17+4n
msgilligan··on Academe is a hotbed of craven snitches
If the rules are regularly applied to persecute people over nonexistent offenses, they will very soon cease to matter.
msgilligan··on Java 18 / JDK 18: General Availability
Actually Project Valhalla is going to fix (well at least improve) this:

https://openjdk.java.net/projects/valhalla/

← PreviousPage 3 of 7Next →