skysight-inc/HackerNews huggingface dataset:
> Virtual threads offer a more efficient alternative to platform threads, allowing developers to handle a large number of tasks with significantly lower overhead.

they should have just called them "Tasks" leaving the already overloaded term "virtual" out of the conversation.
The examples are weird in this article. Paint isn't applied to most structures to give the structure a colour, but to achieve some other effect, such as weatherproofing, or to make the surface more uniform. It just so happens that putting pigment into the paint achieves an aesthetic effect.

It's cool tech though, but i'm not imagining how distracting driving along a street of iridescent houses will be!
Every time something show up about anything related to Java, the discussions turn to this flame war about what language are better or worse than Java. Why can’t we just discuss the article at hand?

In this case, I’d love to hear more from experienced Java developers, with existing code-bases, who have tested these new virtual threads out.
Are you kidding me? If it wasn't for large enterprise corporations Java would be long dead by now. Ever since Oracle took over Java has seen almost no improvements. The logical comparison is Java to C#, and C# has seen _a lot_ of improvement over the last 7 years or so. It just so happens that Java is sometimes unavoidable for Android development were Kotlin is not (yet) possible.

Java is, like its large corporate users, stuck in the past.
What people?!? That is a very special bubble over there.
I was going to say, Java is fine, it's the architectures and mountains of code spread across loosely coupled architectures that does it for me. I wouldn't mind a modern day Java project, as long as it's free of the 20+ year old dogmatic practices. I'd have to unlearn a lot of those myself, probably.
Emacs has it built-in: M-x enriched-mode

https://www.gnu.org/software/emacs/manual/html_node/emacs/En...
I don't think this is the kind of tool used by people who collaborate and or share the working documents in a business setting anyway.

I think it mostly exist for the challenge of making it run reliably, work locally and to publish documents in pdf or printed form. If you are only using it for your own document, don't include images randomly downloaded from the internet, there is not much risk.
I swear, many years ago, there were papers published that showed print-style handwriting was quicker. Up until then I would have agreed with you; now I'm not so sure, and the sources have drifted into the mists of memory.

Worth a check.
This reads like a rather gratuitously anti-Chinese article, which detracts from any interesting points.
"It started about 2-3 years ago, weeks after my first COVID shots."

After experiencing hearing loss and tinnitus following my last COVID booster, I have seen two of the top specialists in the country, who were quite vehement in assuring me that this is a "true agent" and that information on it has been suppressed.

https://www.nationalgeographic.com/magazine/article/covid-va...

https://www.abc15.com/news/local-news/investigations/can-the...

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8443418/

https://www.news-medical.net/news/20220523/Pfizer-COVID-19-v...

https://www.nbcnews.com/health/health-news/tinnitus-rare-sid...

Facebook group for victims, with several thousand members: https://www.facebook.com/groups/265035901879921/
My experience is that some developers can write code but most memorize patterns and follow trends. If your questions require some solution different from a memorized pattern they will fail.

Another way to approach this: can the candidate communicate? If they cannot write original code odds are they probably cannot clearly write steps of simple instructions explaining a problem or solution as they do not have experience thinking through the problem without a lot of help.

Most places I interviewed at last year claimed to be looking for senior developers but in practice were only looking for trend chasers doing things in a very limited way that appeals primarily to beginners memorizing patterns.
>... an area of about 11,000 hectares, around the size of 16 Manhattan blocks.

As a side-side note I welcome the use of a new unit of measure, besides schoolbuses and football fields.

But:

https://en.wikipedia.org/wiki/City_block

>The standard block in Manhattan is about 264 by 900 feet (80 m × 274 m).

So a block is 80x274=21,920 sqm or around 2.2 hectares:

https://en.wikipedia.org/wiki/Hectare

Somthing is way off, another source talks of 114 hectares:

https://www.abc.net.au/news/2021-06-15/bradfield-city-gets-1...

but, for the masses, it clears that "The size of the city once completed will be about 60 per cent of Sydney CBD".
We are at Java 20, when Sun died we were stuck in Java 6.

No improvements, what a joke.
No, it doesn't work. If you let VC invest then you cease to be a worker co-op, you become a regular business.

Worker co-ops have only one class of member: worker-owners. People who do both the day-to-day work and are part owners of the business. Unless the VC people are willing to show up and start punching the clock like everybody else, they are a different class: owners who don't work. Worker co-ops disallow that class of membership by definition.
You don't have to but this baby sitting of what Indians can read or watch is just copying what China does
> Will they provide automatic M:N multiplexing on OS threads

Yes, you can set the number of OS threads they can use.

Channels and alia have been implemented in Java’s standard library for many many years, it doesn’t need additional language features.
Great advice. The most critical attribute of a successful project manager is to have a backbone and to be able to say NO.

In corporate settings I have found it most effective to ask for a business case with every request. Funny how quickly "important" features are no longer critical when they proposer has to provide funding and accept responsibility for slippage to other parts of a project.
Yeah, sounds exactly like Amazon affiliate program, with better revenue share. The only moat seems to be “fuck Amazon, support local businesses”.
This is a problem in every social/political organization which is not ruled by interested minorities. So, co-operatives, voluntary social activity clubs, democratic NGOs/associations, professional societies, etc. Democratic states suffer from this also, although it's arguable whether they're not ruled by interested minorities to begin with. In fact, the unfortunate public-opinion manipulations we see in national and international politics are also often present in smaller, local organizations, albeit in less-well-funded and less-spectacular form.

I'm always reminded of the Anarchist Peasants:

https://www.youtube.com/watch?v=t2c-X8HiBng
Going theory is that he was a former director or CEO. I think figuring out who he is and how he got the shares is going to be the more interesting story that's going to cause some drama. Your average player couldn't have pulled this off because of how shares work.
This reminds me of the infamous Cameron Todd Willingham case which also happened in Texas around the same time: https://en.wikipedia.org/wiki/Cameron_Todd_Willingham

> During the penalty phase of the trial, a prosecutor said that Willingham's tattoo of a skull and serpent fit the profile of a sociopath. Two medical experts confirmed the theory. A psychologist was asked to interpret Willingham's Iron Maiden poster. He said that a picture of a fist punching through a skull signified violence and death. He added that Willingham's Led Zeppelin poster of a fallen angel was "many times" an indicator of "cultive-type" activities.

The difference is that it is too late to exonerate Willingham since he was executed in 2004.
> Jetty server guys tested this and they were not that happy

This was in 2021. Hopefully things have and will improve in the final version. We have to start somewhere.

> No silver bullet, again.

More like progressive improvement. If you always need things to be a 100% better we'll never have new toys :)
This is a bigger problem than people realise.

Think about it, how many millions of articles are posted online produced by OpenAI's GPTs to date... Good luck clearing out the training data for GPT-5.

True human content will get gradually scarce. We steer it for sure for our posts, but it is still GPTs that do the heavy lifting.

OpenAI's own classifier fails to detect GPT-4 generated text at the moment.
Honestly, I'm not scared.
Alternate link (with the same text – I believe FT licensed the article to Ars),

https://arstechnica.com/information-technology/2023/04/china...
I guess articles like these are why everything seems bland, flat and unfinished.

I disagree on the aesthetics. Borders make it look nice and good. When in doubt, add another border.

I think it's an interesting perspective, I've heard it before "you're a developer, so what you think looks good does not look good: Your sense of beauty does not count. It does not matter what you prefer, because you're a developer, and your sense of, your preferred aesthetics are to be disregarded-"
In my experience, yes.

A large part of playing nice with other JS libraries is that HTMX works with the DOM in the browser, instead of creating a Virtual DOM (VDOM) like React and Vue (and others, eg. Solid.js) do, which leads to a lot of libraries only working with those platforms they're made for. Which is a great tragedy IMO.
I think you can with 3rd party tools, as with Python, but why would you? If your app is literally a single executable with no additional resources, maybe it makes sense, but otherwise, just bundle the JVM like jetbrains does.

And as you mostly use Java on the backend, you're probably running Linux where a free and open jre is packaged, so just target that and not worry about it ever.
I have this opinion for any private school, be it in Australia, USA or anywhere else.

In Europe, anyone who studied private school of any sort is considered as somebody who has bought his degree, but ultimately knows nothing. CVs with private schools degrees are going into a bin automatically. Only reason why private universities exists in Europe is when your employee (usually government) really demands a Bc. or Ing/Mgr in front of your name from bureaucratic reasons.

Sometimes it is better to have high school diploma from public school, than having university degree from private school.
> when I use other search engines I have the nagging feeling I’m missing better information on Google.

Are you though?

I've been using DDG for years now as my primary search engine.

When I started, I used !g quite often precisely because of that feeling. These days I have a hard time even remembering to try it when a search is unfruitful.

The reason being that it became less and less useful, and these days even when I do remember trying it, it generally doesn't add anything useful to my results.
touching the 4 kings sequentially triggers it
> The most popular one is Spring, and it's a pain, with abuse of reflection and magic, bad docs, and other issues

How is it any different from something like RoR or Django, both of which are well-liked?
Company SDG Rating
Our demo sustainability & impact B2B - SaaS for companies
At least it's long enough for us to recognize it and use it as a source of ambition to make the most of it. I've recently turned 40 and I have a mild panic that I haven't done anything worthy, but there's still time ahead.
Nowadays you don't deploy a global JRE on machines anymore. Each application has its own JRE bundled.
A first class citzen would have support for MAUI, and something better than VSCode like macOS gets VS4Mac.
Writing everyday code, Go compiled binaries are on average more performant than C#.
Archimedes Palimpsest
It's hilarious watching Americans discuss curry spices.

I expect a few of you have got beyond beige goop with raisins in.
Our employer actively tracks runtime usage and makes sure we have no O in it.

> The quantity of licenses is determined by the total number of employees, not the number of employees using the programs https://www.infoworld.com/article/3686611/oracle-per-employe...

> Employee for Java SE Universal Subscription: is defined as (i) all of Your full-time, part-time, temporary employees, and (ii) all of the full-time employees, part-time employees and temporary employees of
Your agents, contractors, outsourcers, and consultants that support Your internal business operations. The quantity of the licenses required is determined by the number of Employees and not just the actual
number of employees that use the Programs.
https://www.oracle.com/us/corporate/pricing/price-lists/java...

Excuse me, but isn't that a minefield?

Another point I don't want to use java: Now I have to understand what is Java SE and if the runtime falls under it or the development tools or how my users use the software, whether we now how to license every user that won't even use that program and even any people that interacts with our business. Pure maddness.
"AI Accountability Policy Request for Comment" - https://ntia.gov/issues/artificial-intelligence/request-for-...
The architectural error was to have messages acknowledged at end of long processing, probably to avoid to handle messages produced from the worker, instead of having two messages with quick ack, one message at start, one message at end from worker.

RabbitMQ jobs is to handle message transfert, if you tie business logics (jobs completion) to its state, you have a problem.

So basically, producer and consumer MUST have their own storage for tracking processes, typically by ID, RabbitMQ jobs being the message handler for synchin' states.
Show HN: Good, fast, cheap – editable iron triangle
If you ever needed to visualise the 3 things that you can’t have all at once, like GOOD, FAST, CHEAP, I made a little tool for you! You can use it whenever you are having a project deadline discussion at work or just for fun. Enjoy.
If that was true, I think adoption would be way higher by this point.
A lot of work still needs to be done on the libraries and other tools before it's useful for end users. We've spent years migrating to "reactive frameworks" or being stuck in "legacy".

Virtual threads isn't just something to "enable". You do need to adapt existing codebases somewhat e.g. use of synchronization.

The upcoming future is likely a mix of reactive and virtual threads where appropriate. Virtual threads is still very good for short lived tasks.
> Are you saying most employees would prefer losing their job or living without job security over a pay cut with job security?

Pay cuts don’t come with job security. You can get laid off after a pay cut as easily as without one.

Employees prefer not having their pay cut. The ones that are dismissed aren’t employees any more, so from the narrow perspective of the organization dismissing them, their morale doesn’t matter. Pay cuts impact the morale of the people still working more than lay offs do.

Now, where pay cuts – especially explicitly and enforceably temporary ones – come with some real measure of job security as a way of avoiding layoffs, that can be different, but that usually only happens where there is a specific contractual arrangement, usually via a preexisting union and labor-management negotiation (and even there its tricky, especially in the private sector, because firm guarantees are hard.)
Go Da Vinci style and write from right-to-left?
> They should have used RabbitMQ just to kick off the job, immediately ACKing the request, and job tracking/completion handled inside... a database.

That's what I think too. Use the message queue for communication and potentially work distribution and the database for the rest like internal state.
I protect my hearing and do a lot of audio work. My symptoms definitely coincided with COVID shots. Furthermore, my girlfriend developed them as well at the same time (we got our shots at the same), but we didn't mention them to each other until after mine became severe after my last booster.

Two hearing specialists confirmed that this is a true relationship, which is being suppressed in the media and in public. People, even experts in the field, are afraid of being "cancelled" for decrying this serious vaccine risk. And rightfully so. I've been reported and shadow-banned for simply making these statements and posting the links I provided above (which go to a research paper and mainstream news sources).

The initial symptom after the COVID shots was occasional sudden attenuation of hearing in one ear, accompanied by a high-frequency tone. These both diminish over the next minute or two.

After my second booster (which she did not get), my symptoms became severe and continuous.
Citation needed; first off, verbosity is not the problem, verbosity is NEVER the problem; any significant codebase will end up with millions of LOC (and tokens) regardless of language choice.

Second, Java's infamous for having VeryLongClassNameFactoryBeans on the one hand, and deep class hierarchies on the other, with new classes being declared for everything.

Third, it depends. You can set up a HTTP server in two or three lines in Go without 3rd party dependencies. This [1] is the shortest Java versions I've found, and it contains a lot more magic.

I'm biased in favor of Go, but verbosity is not the issue there.

[1] https://stackoverflow.com/questions/3732109/simple-http-serv...
OpenAI intentionally slow down the API – why?
After writing in Openai forum, we decided to make an extensive test to confirm with ourselves that OpenAI is intentionally making the API slow, and it is not our imagination.

Our prompt produce code only.
We took 20 similar prompts, and for each one of them, we tried it via the API and the website in the same time.
Not only that, we tried the same 20, in different times of the day.
When trying online we counted also the time for the typing effect since it is not clear if its artificial yet.
We setup the API to run from a server close to OpenAI both in the West Coast and US Central.

The result is not surprising:

On average (average over the 20 prompts) the API respond time was x4.5 slower.

Here are some of the results:

38s API 7.8s online,
18s API 6.3s online,
9.8s API 5.2s online,
45s API 8s online,

Some things to also wonder :
1. If the API is slow due to "network load", then why it is not linear during the day? it is constantly slower 24/7.
2. Why do i get an API message "we are fully loaded and can't serve you" during an hour, but online the service is fast ?

So ok, we know it is intentional OpenAI, I understand that you don't want developers to go too fast before you figure out your business.
I understand the competition matter.
I understand you just want to learn about your machine from the developers, using them, and have no intention that some of us build something big.

This is all ok, but why don't you, Sam, go out and declare this honestly, to the thousands of devs that live in a dream they will be able to build something with a 25s latency service ?

Just declare the API as your research tool, do not use us.

You talked a lot about honestly in the past..
.net has had this feature for a decade++
You can use jlink to create a custom runtime you can distribute with your application, so that your users don't need to download a JRE/JDK. You'll still need to run this with the java command.

You can use also jpackage to create an executable file you can just double-click (.exe on Windows, whatever on mac and linux).
I don't know! ^^ Basically collect all the cute and quirky things I can find.
I use `window.someVar = "blah"` instead of `var someVar = "blah"`. It's a dirty hack, but it works around the re-binding issue.
I found very good metric somewhere: part count in all of the season sets vs. price. I don’t remember where, but there was writing, that while part count was decreasing, price increasing. And the best deal was too look for ~decade old used sets. They were bigger and feature rich. But I am not into buying anymore, I have hundreds pounds of it from last 3 decades.

And it’s hard to compare Lego bricks and semiconductors. Lego is not that hard, they only use special, a bit more expensive injection molding machines with pressure sensors. While even cheapest Padauk chip needs very very expensive foundry.
> Ever since Oracle took over Java has seen almost no improvements.

Is this supposed to be sarcasm? Because the literal opposite is true.
What the President of France Said about America and China
Still laughing
I find it interesting that when we say terminal emulator these days, we are very explicitly referring to an informal standard that is (more or less) VT100 + color + mouse + Unicode.
The fact that bureaucrats err on side of minimizing deaths caused by experiments is just a consequence of deaths being caused by experiments being unequivocally trivial to prove.

Meanwhile finding out the number of deaths caused by extra caution and delaying the experiment requires a calculation, and then a very lengthy blog post to be communicated.

Bureaucrats don't care about the second kind of deaths because they can hardly be linked to their actions. Now the first kind of deaths are directly their responsibility. And guess what, they can be avoided with a flick of a pen.
I also worked with subsea companies for a long time, and can concur - they'd do anything to get new engineering and manufacturing contracts, then make the margins later on aftermarket service. It wasn't a secret either, people were quite open about it.
Yea, that seems reasonable, when I _need_ to charge my phone, I plug it in.. When it's just on my table, I lay it on the wireless charger.. I'm also using the 85% charge limit to try and reduce wear, don't know if it works to be honest, but I figured I'll use it until I feel that the battery capacity is insufficient, then I will disable it.
Using nulls in Java is mostly a choice on the part of developers; even if you can't migrate to a JVM-targeted language like Scala, you can still adopt practices like null objects [0].

[0] https://en.wikipedia.org/wiki/Null_object_pattern
> I think it was Hermann Hesse who wrote that "If you hate a person, you hate something in him that is part of yourself. What isn't part of ourselves doesn't disturb us."

Funny coincidence that some of the most outspoken ANTI-LGBT people get caught doing the very things they claim to despise.
Permanently Burn Subtitles to a Video Using Python and Moviepy
Hi folks,
If you are looking for an easy way to add subtitles permanently into a video using Python, I have written an easy to use Google Colab Notebook that you can check out!
> Go is very simple language that is just as powerful as Java

I don’t think so, Go is very low on expressivity. Generics help, but I don’t see anything like JOOQ for go, just as an example. Also, no real alternative to Java’s stream api, which can at times make code much more readable than the 4 nested for loops with 4 different exits.
New Minecraft launcher not working, update or installation problem surfaces
Filippo describes how evolutions in the source code and hidden assumptions caused a bug in a special case implementation he kept for performance reasons. This is a great example of how the incompleteness of the old Weierstrass curves multiplication formulas still bites us and how he uses the opportunity to get valuable lessons from this accident. It also shows again how optimizing for performance can cost security and hurt maintainability.
I get "Sorry, something went wrong." on that oculus URL.

Probably a temporary thing, but still I need to upload it with adb because that is how you develop for this thing.

Android is horrible now, I remember making something for the HTC Hero back in 2009, that was nice... now you have to install many GB of junk to even get started.