skysight-inc/HackerNews huggingface dataset:
java virtually has only 2 integer types int and long, or 4 and 8 bytes one. So all operations are converted to int (or long) 1st, even when they involve byte/short, etc.

Imagine you try to combine a 4bytes (from an array) into a single int. If you just bitwise OR and shift left, e.g.
something like

(b[0] << 24) | (b[1] << 16) | (b[2] << 8) | b[3]

it won't work, you need ((b[1] & 0ff) << 16), etc. The byte values greater than 127 would have the sign bit set (and all other higher bits to make the 2complimentary form)

That part is somewhat alleviated by wrapping byte arrays into ByteBuffers that would the right thing, or even better using only ByteBuffers (preferably the direct version of them when reading from input/output)
Enums are almost certainly the way to go here. Something like

enum Expr {
Literal(Literal),
Binary(Op, Box<Expr>, Box<Expr>),
//...
}

A value with type of Expr could be a literal or a binary expression. Binary expressions contain an operator and two other expressions (boxed to prevent infinite sized types).

This is the building block for your tree
I think this is yet another area where large budgets and low accountability creates "innovation" primarily in how to spend public money. Large police and military budgets create incentives for manufacturers to innovate away from the standard and introduce "high performance" proprietary form factors.

In some cases a new round size/weight does actually produce better performance for the desired application. In many cases, IMO, those advantages are academic and achieved in highly controlled environments, i.e. they are nullified by the high variability of other factors, in real world situations. I am just an enthusiast and not any kind of professional though.
We are recreating the entire planet in Minecraft
just tossing this out there, myocarditis is also a known side effect of the flu vaccine and something we've known about for decades when it comes to vaccines like this. 99% of what's in the covid vaccine afaik about Pfizer was patented in 2006. (You can literally look up the patents)

I am vaccinated, still not sure if it was the right decision... but I most definitely did not do it because of the mandates. That shit is dangerous, and the people are dumb for allowing their politicans to just rape their freedom.
Apart from Javascript. Ruby, Rust, Go, Kotlin and Scheme combined wouldn't equal to half the market Java has to offer.
From the Ballista README:

> How does this compare to Apache Spark? Ballista implements a similar design to Apache Spark, but there are some key differences.

> - The choice of Rust as the main execution language means that memory usage is deterministic and avoids the overhead of GC pauses.

> - Ballista is designed from the ground up to use columnar data, enabling a number of efficiencies such as vectorized processing (SIMD and GPU) and efficient compression. Although Spark does have some columnar support, it is still largely row-based today.

> - The combination of Rust and Arrow provides excellent memory efficiency and memory usage can be 5x - 10x lower than Apache Spark in some cases, which means that more processing can fit on a single node, reducing the overhead of distributed compute.

> - The use of Apache Arrow as the memory model and network protocol means that data can be exchanged between executors in any programming language with minimal serialization overhead.
Anyone who values static typing will never be in awe of Clojure. Or any dynamically typed language, for that matter.

And Java developers care a lot about static typing.
This one was sent to me, but in a similar situation when someone said a 404 page from a particular site was fun, I simply mutated an existing genuine page until I had a URL that 404'd.
Individuals not paying taxes, yes.

Oh wait, we all do, in one way or another...
If you don't, you could consider posting some of your art to reddit.com/r/generative or to instagram. It's a really popular concept right now, although a bit plagued with people jumping on the NFT train trying to make money with generative "drops".
Many got sold on the idea that they adopted OpenJDK, but that is quite far from the truth, so in reality they cherry pick the features and standard library classes/methods that are somehow relevant to port key Java libraries into Android.

Currently they support a Java 11 subset.

You can track them on AOSP Gerrit commits.

Apparently starting with Android 12 , ART can be updated via Play Store and they should provide better updates.

Although there is also the question how they were naive to think Java would never require updates, or possibly related to the Oracle dispute, which anyway proves the point that they behave just like Microsoft did with J++.
So, any end justifies every means ?
Being verbose is one of the biggest negatives a programming language can have. When you’re working on a team with other programmers and reading someone else’s code, verbose code takes much longer to read and grok because you have more boilerplate code to read.
These days you can personalize things with photographs of people's faces. Not just t-shirts and coffee mugs but also things like jigsaw puzzles and even etchings on wooden boxes. So maybe do a search on custom/personalized photo gifts?

Also, GitHub did this thing where they used a 3D printer to print out replicas of someone's contribution history graph. I wonder if there's any way you could work with a 3D-printing artist to create custom replicas of the employee -- if not a realistic bust then maybe more like a bobblehead, or a Star Wars action figure where the head is customized to look like their own face?

I always thought a fun gift would be to have somebody's blog or Flickr stream converted into a hard-copy book. Not saying you should do that for employees -- but a fun precedent might be to come up with something super-personalized like that.
>What an outrageously toxic and arrogant comment. There are many reasons to dislike Firefox. Just because you're not personally affected by those reasons, doesn't make people who are affected by them somehow mentally ill or lesser humans than you, your majesty.

Saying someone is uninformed or irrational isn't the same as saying they're mentally ill or unintelligent. Your comment, however, does well to lend credence to their anecdote.
Agreed. Like Henry Ford is quoted as saying:

"If I had asked people what they wanted, they would have told me 'A faster horse!'."
> but you're asking them to strike (refuse to work) in response to unethical demands, without the collective backing of their peers,

We are not talking about some poor sod blue collar worker here. We are talking about techworkers with 6 figure salaries who can get a job anywhere. No one is asking them to start some movement. They can simply think: "I don't want to be a part of this", leave the job and get a new job that same day.

> don't judge the people who are doing what they have to in order to survive. they were compelled by people who had leverage over them and our ire should be for those people.

Tech workers with 6 figure salaries who can get a job pretty much anywhere they like are doing these things to survive? Seriously...? Google had leverage over these people? How?
There’s a decent cargo cult following for some level of magazine/tube-based escalation of force, where you have some sort of lower-impact ammunition loaded first, followed by higher-impact ammunition. In this case, the pitch is for birdshot at the front, followed by a slug.

The issue is that in practice, once you pull out a gun you’ve fundamentally altered the state of the world between yourself and your assailant, and they have no way to know that you’ve stacked your magazine/tube like some kind of Dragon Ball Z power escalation where you’ll take 5 episodes to get to your Full Ultimate Potential.

In practice, you’re better off just making a choice between wanting lower or higher impact projectiles. Increasing complexity in a high-stress / fast-paced scenario isn’t a great plan.
I have an idea that is very similar to what you have described here, but I lack the coding skills to bring it to life. I'd like to try yours out!
Ask HN: Are there any websites that act as survival guides?
I thought it would be cool to build a website that acts as a survival guide for people that are trapped in a rough situation and don't have any way out. If they can somehow reach the site then it will train them and teach them and help them escape their plight.

Do you know of a site like this?

I am trying to think of what the site should do when the user first visits. Seems like it should give options:

a) I'm in danger now, help!

b) I'm safe now, what should I learn?
> But yeah a 9mm handgun is significantly less bad for these reasons.

9mm handgun is usually louder than a shotgun: https://earinc.com/gunfire-noise-level-reference-chart/

> Thank the feds though, it's damn hard to get suppressors without tons of paperwork which would otherwise make this less of a problem.

Paperwork isn't that bad and online retailers help a lot. It's annoying, expensive, and you have to wait a long time after purchase to get it, but it's not really "hard" IMO.
Until your LTS OS gets to end of life and you need to switch to the next one which conveniently deprecates old python versions so you have to rewrite everything.
Curation is not, has not, and will never be, the bar for determining what is and isn't a platform or a publisher. Curation is an expression of free speech, which is different from the role a publisher plays in works it publishes.

Your entire argument hinges on people not realizing there's a specific legal definition of the word "publisher", which means that no matter what politicians you convince to do what you want, it will never function as expected in the judiciary.
This has been said countless times before, but it's a real shame we don't have yet have good solutions for separating content and presentation of code.
> the very sweet business owner was concerned about the modem getting too cold with the winter weather and had wrapped it in a blanket

That's adorable. Thanks for sharing it :)
It does require discipline, or at least one person on the team who can set a style guide for the newcomers to follow, this is true.
These chickenhawks are about the least exotic birds imaginable in this part of the world FWIW.

Hobbies like this typically result from spending absurd amounts of time outdoors in the first place, that some of those most attuned to their local environments have turned themselves symbiont with the neighborhood apex predators is quite beautiful, and closer to where we should be headed imo.
Getting Paid in Cryptocurrency: Pros and Cons
Metallic taste - adjuvant? (just a guess...)
Null Call: Advice for the vestigial shamans among us
https://www.ready.gov
In support for your first sentence, Macs were very unusual for techs in the valley until OSX. I ran a linux laptop for a long time until I gave in and stopped doing my own IT and got a Macbook.
Pity that Kotlin builds on Java ecosystem and uses that as selling point for adoption.

Kotlin libraries on the JVM cannot take advantage of JVM ecosystem, and require KMM to be portable across runtimes, or be constrained to the Android Java flavour.

It is like having a flavour of Typescript that only works on Edge.
For the bullets themselves, in addition to the diameter and length you've got mass, material and shape (round nose, hollow point, ballistic tipped, etc.).

For the cartridge as a whole you're also going to be concerned with powder capacity, shape (necked?, rimmed?), and to a lesser extent material.

These are just a few examples and all are significant.
What I'm trying to say that at some point in piling up abstraction layers, abstractions stop being helpful and start getting in the way.
Yes, you can easily import it to Fastmail.

https://www.fastmail.help/hc/en-us/articles/360058753594-Imp...
Scala 3 somewhat simplies implicits by the way. Especially w.r.t to extension methods, which are now a first class construct in the language: https://docs.scala-lang.org/scala3/reference/contextual/exte...
Because there's a ton of organic growth over more than a century and a shitton of holdovers. Think of it like really old legacy systems in computing.

Like look just at naming: old stuff was often named based on caliber and the number of grains of powder back in black powder days. Like the .45-70 is a .45 bullet and had 70 grains of black powder in a standard load. But then this carried over when they named the .30-06, which had a .30 bullet and 6 grains smokeless. Some handgun rounds are "ACP" because they were developed for new (at the time) auto-loaders instead of revolvers. Now cartridges are mostly named by caliber.

Then there's stuff where cartridges were slightly tweaked, like for NATO. .223 is mostly the same as 5.56 and .308 is mostly the same as 7.62, but the latter are both NATO rounds re-named and changed a bit from their predecessors. Oh and by the way, .308 rifles can typically fire .308 or 7.62, it's not safe to fire .308 from a 7.62 rifle though. Oh but for .223/5.56 it's the other way: You can fire .223 from a 5.56 chamber but not vice versa.

Every country developed its own rounds for a long time, just look at the number of 9mm cartridges there are. Different bullets, different nomenclature, etc.

There's a ton of variety in how you make a bullet, even beyond "broad" varieties like hollow point vs jacketed vs semi-jacketed vs wadcutter vs semi-wadcutter... or the actual metal composition of the bullet, jacket, etc.

Different rounds are also loaded differently, you can have some under-pressured for subsonic if you're running suppressed, there's usually some variation in what's "standard" and bodies like SAAMI and CIP are voluntary and typically define max pressure only. Plus there are overpressure (+p) and over-overpressure (+p+) rounds...

Lots of complexity from over 100 years of a lot of people developing their own ideas than merging them only sort of.
Other than enums, there is another way to achieve a sort of polymorphism in Rust similar to how it's used in that compiler book.

You can use Traits to encapsulate an idea and implement them on Structs. You can then use `dyn Trait` to represent a type erased dynamic instance of that trait (similar to how abstract class instances are represented).

This has some benefits in libraries, allowing external parties ability to implement their own instances of traits, but in a compiler where you will implement all possibilities, its not as useful. You also lose the ability to match on variants (instead having to resort to downcasting)
> You can also just turn off Telemetry in VSCode in the settings.

Such a feature should be disabled by default.
As somebody who has spent a fair amount of time in elder care facilities around these times of the year (mandatory Civilian service in my country), boy do I have some depressive anecdotes for you.

Flu shots can be just this side of too strong for some frail and fragile elders, and cause nearly as many victims as the flu a month later, when the vaccine turn's out to be not good enough.
I don't think the comment you're replying to is talking about justification or justice, just rationality.

If I say "Your bike lock doesn't have to be unbreakable, it just has to be strong enough that a rational thief will look for another target," that doesn't mean I think the thief is justified in stealing other people's bikes instead of yours.
I found the photography on the Guardian article not so great; thankfully the manufacturer has better pictures:

https://berliner-seilfabrik.com/en/product/triitopia-02/

I'm a little envious. On my german playground in the 80s we had a simply pyramid-like structure like this. A little bit more risky, but in its pure geometry a little bit boring after you conquered the top.

https://berliner-seilfabrik.com/en/productgroup/polygodes/

(Another vivid memory of my playground in the eighties in Germany was that time when the sandpit was first closed and then the sand was replaced: slight fallout from Chernobyl. Possibly an overreaction in retrospect, southern Bavaria was more hit than we in western Germany. But still one of my first memories about world happenings.)
Previously on HN: https://news.ycombinator.com/item?id=28946392
university is not meant to teach what the market is offering, rather hopefully shape and dictate it
But reading terse code requires a lot more prior knowledge, which you might not have. You learn to recognize patterns in the boilerplate and just glance over it, taking no additional time.
I'm glad you appreciate that you can install ack anywhere. It's exactly for that use case that I have kept ack able to be a single text file download. Also, it only requires Perl 5.10.1, so it's OK if you're using an old Perl.
Amnesty International is a mouthpiece for the UK/US governments on so many subjects including Syria and Chevron.
They even famously withdrew their "support" for Steven DOnzinger who was prosecuted by Chevron for exposing their environmental damages in Latin America.

It is a tainted and biased source. Use it as a source at your own peril.
because many corps look at Canada as a just another smaller less profitable part of the US market and simply swap Spanish print for French.
On Youth
I'll take that argument on - he was charged by the Swedish Prosecution Authority, extradition was agreed by the UK authorities and he sought sanctuary in the Ecudorian embassy which granted him sanctury.

So which of these imprisoned him? Presumably not Ecuador. The UK for agreeing to extradict him? Sweden? Similarly - what who was the perpetrator of the torture? Ecuador for not offering sufficiently spacious accomodation in the embassy?
Alessandro Cruto, Alexander Nikolayevich Lodygin, James Bowman Lindsay, Nikola Tesla, and many others have different opinion on said quote.
It's particularly sad to see local residents trying to cross several lanes of busy traffic just to get to the other side of a street. Sometimes it's like watching a game of Frogger.

When the pandemic began, our city closed off a section of downtown street and turned it into an outdoor eating area. It looks much better and makes shopping easier. I don't see the city ever changing it back, because the new area is getting a ton of use.
From "Post-surgical deaths in Scotland drop by a third, attributed to a checklist" https://westurner.github.io/hnlog/#comment-19684376 https://news.ycombinator.com/item?id=19686470 :

> GitHub and GitLab support task checklists in Markdown and also project boards [...]

> GitHub and GitLab support (multiple) Issue and Pull Request templates:

> Default: /.github/ISSUE_TEMPLATE.md || Configure in web interface

> /.github/ISSUE_TEMPLATE/Name.md || /.gitlab/issue_templates/Name.md

> Default: /.github/PULL_REQUEST_TEMPLATE.md || Configure in web interface

> /.github/PULL_REQUEST_TEMPLATE/Name.md || /.gitlab/merge_request_templates/Name.md

> There are template templates in awesome-github-templates [1] and checklist template templates in github-issue-templates [2].

> [1] https://github.com/devspace/awesome-github-templates

> [2] https://github.com/stevemao/github-issue-templates
That’s a misrepresentation of the situation. Developing EU countries are not currently and can’t compete for foreign investments with the block heavy weights. They have neither the infrastructure nor the human capital to do that. The bigger European countries are the one heavily investing in the developing countries for manufacturing.

Also obviously the EU can put in place any kind of controls it deems necessary on the common market. It’s sovereign in this matter after all and tax dumping is mostly helping foreign-based multinational corporations.
Looks really nice. A+
Cars cause traffic jams.
There are a ton of articles out there about it:

https://duckduckgo.com/?q=ripgrep+%2B+fzf
What's missing or subpar? I'm not a webdev but is firefox developer edition any good?
> Both Microsoft and Apple happily collaborates with CCP, that is a big one that Google still doesn't do.

Google has offices in China.
You have to go one layer deeper and think beyond the projectile (bullet) and include the cartridge (bullet, accelerant, primer, case).

Basically how fast some thing shoots (how much accelerant) is just as important as what you are shooting (bullet characteristics).

Each of those variables also have weight and dimension penalties which determine how much you can reasonably carry.

An interesting relatively recent example is the development of small caliber armor piercing rounds. NATO needed something to deal with the rise of body armor. Same requirements, two different solutions to get there in the fn 5.7 and hk 4.6x30 (simplifying enormously here). Basically these are engineering and manufacturing challenges.
This depends on your threat model (what is illegal, who chooses to prosecute, etc)

I was driving home today and the satnav warned us about driving over speed limit (74 mph on UK motorway). Ok. But the solution to that is technology - and organisation. There are speed cameras on this road. But most of the time they don't take images or don't trigger an action. If every road camera triggered a warning / fine on every violation then speeding would stop in a few months.

Is that something socially beneficial ? Probably. Would it be disruptive and cause great anger and political resentment? Yes.

That is one tiny example but I think that pretty much every criminal act can be detected with technology - it's going to become which one we care enough about to prosecute and which we give up and decriminialise?
Not sure about the person above but the following are my opinion on why I don't like Java:

1. no unsigned integers

2. no freestanding functions

3. pom files are a huge pain

4. the com.blah.blah.blah ridiculously long package path precedent makes it awful to work with if you don't have an ide

5. you can't actually use javac to compile your code. everything is so big and complicated you have to use ant, gradle, maven, etc.

6. too much boilerplate. "public static void main" etc.

There's a few more, but they'd take more than a sentence to explain.
> The real problem is that Google/Chrome basically run the internet.

Only because we let them. We gave them web domination, we the nerds told everyone and their mother to install Chrome so they do out of habit now.

We sit and watch while Google bend the web to their will with AMP and dozens of non standard specs everyone hurriedly tries to support while we come up with excuses like "it faster", "the dev tools in chrome are better".

Without a monopolistic marketshsre we give them they can't do this as easily.

Go install Firefox and make it your default browser. Or just carry on using Chrome and wonder why Google keep getting away with doing antisocial, anti consumer shit.
thats the status quo fallacy.

You can get work in those other languages, nor is an understanding of Java a prerequisite for understanding how to use those other langs, etc.
Or maybe I just need to move it up in my priority stack.
But terrorists! Pedophiles!
Allergy is defined as an anomalous auto-immune reaction to an introduced substance. Indigestion from a common foodstuff is a good candidate. You would of course need a medical examination to reliably determine that your particular intolerance is allergy. But that's the way to bet.
Java sucking could be a good reason to teach it, no? It's instructive to know what bad choices have been made. Much like your first job, it can be unfortunate to work in a place where everything functions properly, because you won't know what makes it work.

Java is also a good base for looking at other JVM languages, and for looking at the JVM itself. That's gotta be part of a good curriculum too, doesn't it?
If there are things you think are confusing or inaccurate, please do make GitHub issues for them. Thanks.
The article says they took spinal taps from the patients and found no evidence of CJD. Presumably that means it can be detected that way, but how? And is it close to 100% reliable?