Hacker News new | past | comments | ask | show | jobs | submit | dxxvi's comments login

> why is there no in-memory kafka server that I can use for simple testing purposes https://github.com/embeddedkafka/embedded-kafka It's for scala. I'm trying to do something similar in Java but haven't got time yet.


I was working on a node.js project, I saw that one, but it's only for JVM.


Wow, the author seems to have a lot of knowledge of what he's talking about. I know almost nothing about writing desktop apps and only a bit of Rust. So, I guess that if we need to choose a Rust gui library, we'll go with something that has "Yes" in all columns?


Or don't use Rust. There are better and more supported options if you don't try to force a language where it clearly doesn't belong.


Why would you say that?


If a college replaces Java with Python, I wonder what their reasons are. Java's type system is ok (definitely not very good) but still much better than Python's which is almost empty (e.g. in Python we cannot declare an array of students, a dictionary of (ID, Student) pairs).


From my experience, in the early programming classes that have switched from Java to Python, one of the reasons is the verbosity of Java. When you're trying to teach the basics of programming -- variables, some simple text IO, loops, functions, the structure imposed by Java can be a little overwhelming. I recall a lot of other students struggling with getting past all the little things you had to do just to get a "Hello World" written. Python is simpler to gradually introduce those concepts with, especially with very those who are just starting out. And especially when you're dealing with a quarter system, which many schools use, as a teacher you had a very limited amount of time to get through that sort of material.


Python is a great language for the non-professional programmer who wants to put their other skills on wheels. Even if other languages have more pedagogical value, Python is easy to learn and not a waste of time of time for anybody. (At work I code Java/Javascript but wrote a “maintainance droid” in Python that merges changes from git, installs database migrations, runs tests and all that so I don’t have to.)


You are right IMHO. Java 24 introduces a much shorter "hello world" experience with: - no class déclaration - no void, static, public statements - no System.out

Hopefully teachers noticed...


Algorithms as well. Python is close to pseudocode, which makes it a perfect fit.


In Python isn’t that either this, for the first part of your sentence:

    students: list[tuple[int, Student]]
Or the second half and a more idiomatic structure:

    students: dict[int, Student]


IMO - verbosity, typing and compilation all get in the way of teaching a lot of the basics (logic, control flow, scope, functions, objects). With JS/Python, I think students can make small wins faster which helps them stay motivated. I say this as someone who watched 3 people decide CS wasn't for them after taking intro classes that focused on Java.


https://docs.python.org/3/library/typing.html

I don't think its first class support but its something. It might even be better for teaching since its not strictly enforced depending on your runtime.


I agree. I think he meant Rc/Arc.


Have you ever tried https://ohmyposh.dev/docs/installation/prompt with fish?


I have 250GB on S3. To get them out and store in R2, AWS will charge me 9 cents * 250 ~ $24: ouch.


Thanks to the EU AWS now offers "Free data transfer out to internet when moving out of AWS" [1]

[1] https://aws.amazon.com/blogs/aws/free-data-transfer-out-to-i...


Long time ago, spotify allowed us to create, modify our playlists through end points. Now, it's impossible.


When did this stop being supported by Spotify?

https://developer.spotify.com/documentation/web-api/referenc...

https://developer.spotify.com/documentation/web-api/referenc...

https://developer.spotify.com/documentation/web-api/referenc...

I think you are talking about "Get Featured Playlists", which is more geared towards Spotify created playlists, which is under the 'Browse' tab in Spotify.


> has many docker containers and vms running Is it true that in MacOS you have to specify how much memory to be reserved for the Docker Desktop app (or colima or ...)? That means it doesn't matter how many docker containers you run, they can use only that amount of memory.


How did you find that link?


>How did you find that link?

If you install the Archive Page addon Firefox[0]/Chrome[1] (I don't use Chrome, but the FF version works nicely) you can right-click on any link and select 'search link', or you can click 'archive link' which will queue the link for archival if it has not already been archived.

[0] https://addons.mozilla.org/en-US/firefox/addon/archive-page/

[1] https://chromewebstore.google.com/detail/archive-page/gcaimh...


Go to archive.is and search for existing archives and/or make one if it doesn’t exist or you just want to make another one.

Or just put any full url path including http(s) after archive.is/ to skip to the search for that url.


More info is available at their FAQ:

https://archive.is/faq


Does your issue (which can be solved with JDBC creating executeAsync that returns a CompletableFuture) go away with virtual threads?


Probably for someone competent, though I had trouble getting the performance I wanted out of that as well when I tried it.

I’m not sure if my issues come from the use of blocking APIs at the lower level, or if I’m just doing something dumb. Neither would surprise me.


Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: