skysight-inc/HackerNews huggingface dataset:
I'm interested in old game programming books. I put in three that I have, and I got a couple modern programming book recommendations. Is there a way to add consideration for age of material?
If you were using append, then yes. Minor nit: when allocating with length (make(type, len)), you’ll get a slice with zero values for n elements.

If you use make(type, len, capacity), then it would only reallocate if your estimated size was under the actual size.

Also I believe that re-slicing would still use the same underlying array, so it would set the length but still keep the capacity.

You’d have to create a new slice of actual capacity and copy to it.
Indeed and the issue with the web is that 90%, instead of being buried in the pile of broken software, it is only a click away.
Microsoft in general has consistently had a problem with dropping blocking network IO "stuff" into it's applications - i.e. it's always been absurd that Explorer will just lock right up if it hits network lag when doing SMB browsing.
Great. More e-waste as I toss it in the trash.
> Hybrids at this point serve the purpose of […]

… who have neither have a garage, nor even a parking pad, at home and have to park on the street, and may not have convenient charging infrastructure.
The ultimate usefulness of swearing before a God (if you believe in one) isn't that relevant. The psychological reason we tend to request it is because of something far simpler: it reminds us of our convictions. There was a study about a decade ago about this by some social scientists.

They made 10 people swear on the ten commandments before making a test intended to check for their honesty, they made another group of people take the same test while taking an oath on a general document stating they'd be truthful, and finally they did the same test with a control group who wasn't asked to swear on anything.

All participants were checked to be atheists (so not caring much for the words of any God) beforehand as well.

The outcome was that generally speaking, just being asked to swear on something tended to remind people of their own convictions, which in turn tended to result in them answering the subsequent test questions more honestly.

That's all swearing over a document really does - it reminds someone of their morals (usually with the intent of guilt tripping them into not lying afterwards). I don't know about any other social reasons why we do it, but that's the psychological effect it has. (This is presumably why you can do it on any document that you have a sufficient conviction of being important to you as well.)
> Literally nobody has done this

Not entirely true.

Diesel-Electric Locomotives though colloquially called 'Diesel trains' but they do what you are proposing. And this tech is from 1930s-40s.

https://www.up.com/aboutup/special_trains/diesel-electric/in...
Based on what? A Kiro Niro PHEV is cheaper than a Kiro Niro BEV.

Based on the simple fact that battery costs are rapidly trending downward as production ramps up --- while ICE components are not following a similar trend.
The physical world has peaked, in every metric.

That makes software harder. Just wait until you can't buy a new computer just like that.

Stick to vanilla Java/C+/HTML(5)/JSON/OpenGL/AL and make something great and you'll be fine.

Note + is NOT a typo: it means C++ compiler with mostly C syntax. I only use string, stream and namespaces. Classes very rarely.

Don't download things that are >1GB.
IMHO virtual is the perfect word. The JVM's entire schtick is abstracting (virtual) hardware (machine). A simple API pertaining to intent, that can be materialized depending on OS and hardware.

Calls are virtual, though under the hood the compiler may inline them.

Memory is managed, though through analysis some allocations will go on the stack.

Threads are now (no full grandfathering, but they tried) virtual, and the runtime may now optimize them differently on different OSes and hardware.
Well, i dont percieve that whole thing that much and just project my own gender upon everything. I assume everyone is just like me and thats the default of the universe. No special treatment for anyone, not even myself.
Oh yeah, that's indeed a step back when you compare it like this.
Especially today, automation should be possible everywhere. There is no real reason for that. SaaS apps could just stop blocking that and everyone would be happy. Some just need to start...
you can't see a trend and extrapolate it indefinitely, smh. not to mention any magical battery price reduction would also apply to PHEV.
I guess a time is near when we want our washing machines and dryers to operate at peak solar power. So some kind of (very, very preferably local) api would be nice.
I think the boost to the economy was orthogonal to them being democracies or no - and has more to do with the industrial revolution and other technological advances (most of which happened before democracy or with "democracy" with voting confined to rich land-owning men - no women, and no poor/middle class folks allowed, no POC either of course).

And in many ways we're in a more police-heavy system today than over a century ago.
In what way would they benefit?
This seems pretty uncontroversial in the Java space.

I think most Java developers will wince at clean code. Clean Code made sense in contrast to the pervading gang-of-four norms that preceded it, but I don't think many people would recommend the style today.
Show HN: LambdaPi – Serverless Runtime Environment for LLM-Generated Code
> For example there's nothing inherent to token prediction to make it capable of doing arithmetic

...aren't we just witnessing proof that this is wrong? Apparently those abilities are inherent to token prediction models with sufficient parameter size.
> Parentheses allow you to leave out the commas between arguments.

You compared the wrong things. The parentheses associated with myfunction aren't doing that.

The reason Lisp is better at passing arguments to functions is that it requires you to add parentheses to every function call. The C-style syntax in your first example is trying to let you do this:

myfunction(a, a+b, c)

In Lisp, you'd do this:

(myfunction a (+ a b) c)

C has "saved" you the work of putting parentheses around (a+b) at the cost of making you add commas to everything. Here that's a wash because you needed two commas. But C really did save you three spaces that are necessary in the Lisp. (They separate a from myfunction and + from a/b.)

You could save two spaces while getting the same benefit of losing the commas if you went with

myfunction(a +(a b) c)
At this point, taking a livecamera werever you go, to be fully transparent, would be way more significant then an oath.
Lick your finger and rub it over the pins of the joystick port
A tractor manufacturer's customers are the dealers, not the end users. Just like the auto industry, most of the margin of dealers is made in service and repairs.
For example, having some Django or RoR render forms and handle submit with a full reload, or another case where client would query some endpoints via JS fetch API and handle the responses that way.
There are better alternatives UX-wise for both of the examples you gave.

Visual Studio -> Jetbrains.

Windows 11 -> Linux (or Mac)

While VS and Windows have gotten worse in recent years, other software like Jetbrains IDEs and Linux UX have gotten better.
The point was that other Apple products than Mac sales not change out of global trends, also not much. Hence the root comment about people going away from Apple products is factually wrong.

(I can agree with several other of your auxiliary topic comments)
If it had a significant customer base, lots. There are lots of 'turn around' experts out there.

Most of the tech companies people on this site work for are making a loss, but they still find buyers.
Irrational fear of Oracle is actually a perfectly valid factor in my opinion.
Yes! Here's a real life example: https://en.wikipedia.org/wiki/Chatley_Heath
In fairness, the act of it could equally be held superstitious even if one is religious.
In my experience the zero to something stage lasts way longer than people think and the cost of using immature and badly suited stacks like Typescript/etc bites way sooner than people think. They just keep pushing through it and telling themselves this is faster and everyone else is doing it so it can't be wrong.

Case and point I built a new service recently in Kotlin on JVM. It's a SQL translation gateway that maps an internal representation of simplified relational query model onto other databases so you can connect your own MySQL, PostgreSQL, Oracle, SQL Server, etc. Because Java has such a deep ecosystem in this area I was able to leverage JDBC and jOOQ to deliver support for all the require database types in only a few days of work with very clean code and full test coverage that tests compatibility with all the target databases.

Imagine trying to do that in Typescript. You don't have a standardised interface to database drivers so you would need to first choose that abstraction and implement it yourself + adapters for each driver you need to support (i.e re-inventing JDBC). Then you need to handle the different SQL dialects as they all have different quoting rules, different LIMIT/OFFSET syntax, different supported LIKE/ILIKE/etc, there is no library for handling this in Typescript, especially not with support for commercial DBs like Oracle, SQL Server and -definitely- not for more esoteric stuff like HANA and Informix, etc. Just writing a dialect agnostic query builder abstraction is weeks of work, actually handling all the dialects and emulating anything that isn't native for your targets is much longer.

So you might say, "but that is just libraries"... however that -is- the entire point. When you buy JVM you are buying the ecosystem of libraries primarily. The very nice runtime/GC/languages is really just icing. Same way that when you buy Python you are really buying numpy/pandas/PyTorch/etc, the language itself isn't the important part.

Or you could say this is just a problem uniquely suited for JVM and you wouldn't be wrong but isn't that also the point? Use the right tool for the job. JVM is to business logic and solving business problems what Python is to data science and machine learning.

The big epiphany I had recently was that when I build on JVM I don't write much code. I make a design, assemble some libraries in the correct way, iterate on it by refactoring until the abstraction is clean and then turning it on. There is very little mechanical coding involved because everything fits together very cleanly with only business logic being surfaced in actual "code".
I feel more like an architect, less like a code monkey and I can ship results way faster because I don't have to work on code that doesn't directly solve the problem. i.e there are much less yaks to shave.
If you don't believe in God, there is no difference between the Bible and any other book. You then choose whatever you value.
> I remember working with it in Quinn on Mac OS X like 10 or 15 years ago.

God, I still miss Quinn. For years after its official demise I still had a copy, which I kept playing, until the 32bitocalypse made that impossible.
> you mean to say that tech field and our startups didn't bring worth to society? Seriously?

Wanna talk about surveillance capitalism? Ultra consumerism? The biggest startups in the world have created a world where the goal is to win people's attention to sell ads. The goal of startups today is not to make good and useful products, but to sell stuff. Usually it means that time to market is more important than quality. Remember fitbit? "Doesn't matter if the product is crap, as long as it is cheap".

Not everything is bad, but I think we can definitely wonder if the world wouldn't have been better off without those startups.
selected three books that I love, two out of three recommended books are childrens books. Weird.. My selected books obviously were not childrens books. Maybe because I selected Dutch books?
Go doesn't have exceptions. That makes it infinitely better than Java could ever be.
Discovered this the hard way while diagnosing heavy Teams latency in the UI while Pihole was blocking MS telemetry.
Caveman here. I put the washing in and then set a countdown timer on my watch.
Eh, backend devs don't want to do the whole job. They want to provide a single excessively complicated API which all client-side (web, Android, iOS, TV, IoT, etc) devs can consume without disturbing them (at the cost of 10 requests to render a single page). They definitely do not want to be involved in generating specific HTML fragments and subsequently fiddling with them whenever a designer decides something needs a minor alteration.

I've looked a bit for examples of HTMX in the wild, and the only times I've found it it's been so slow I would have preferred a full page refresh which at least lets me bookmark/navigate properly and involves no JS at all. Not enough data to really form a strong opinion though, I freely admit.
Constant time.
JVM was originally designed to run as a single thread because of bunch of factors that were relevant at that time:

It was originally designed to run on embedded-ish platforms without any real OS. And in such an environment it makes perfect sense to do threading at a VM level (also implementing it that way is not that hard for bytecode interpreter, as additional bonus you don't have to think about issues like concurrent accesses to internal structures of the VM and stopping the world for GC).

The time when Java was designed more or less overlaps the time when first "mainstream" operating systems with OS-level threads (ie. Windows NT and Solaris) were also designed, so it could not exactly assume that underlying target supports OS-level threads. For client platforms you had Classic MacOS and 16bit windows both with multitasking models where the concept of thread does not really make sense and Windows 95 with NT-derived Win32 API with real threads. In server space you had various Unix flavors that migh or might not have OS-level threads but these that had threads had mutually incompatible APIs and then you have "Network Operating Systems" (eg. Netware) that were marketed in a way that presented absence of real multitasking as an "performance benefit".

In this 90's environment typical large application that was intended to be portable included somewhat extensive platform abstraction library that more often than not included implementation of something similar to green threads (with POSIX standartizing ucontext_t and friends as an portable-ish API to built such a thing on). You can probably find remnants of such an layer in Firefox code to this day (and probably in other large originally proprietary software packages that were then opensourced).
Oh, it is in effect kinda similar. Though it does it through gearing

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

Not quite motor->battery->wheels. I guess to have the generator be removeable you need a much smaller engine as well
You can tune the temperature parameter and bring it to 0 (if using the API). Although technically it's not fully deterministic, it will reply with the exact same answer >99% of the time in my experience.

(This is for GPT-3 and ChatGPT. Haven't tested GPT-4)
Mexico tried to end daylight savings time and failed
NYPD to Deploy Robotic Dogs
So many retailers support accountless Paypal Express checkout that managing accounts is much less of hassle than it once was.

Prime's, and by extension Amazon's, real moats are 1) that sweet sweet 'free' (actually 'no marginal cost') shipping and 2) aggregation. Google Shopping is trash, as are most shopping aggregators.
Would be interesting to intercept the network traffic going from the washer to the manufacturer’s web service. It’s possible the API is simple enough that you could sub in your own little server that accepts and tracks the status events.
If washing is not ready (currency is high) do nothing except of maybe accumulating energy.

Else send an endless beep on any frequency you like before you manage to take your laundry and disactivate your FM beeper.

It still can be implemented using a few transistors. Bonus points if implementation of this will be done in such a way that other folks can have a good use of the device.
And you save more by finding a puddle outside...
Since it’s aperiodic, shouldn’t he only be able to claim copyright on the configurations he actually produced? Algorithms aren’t copyrightable, only concrete works fixed in a medium of expression.
>It will quack like self consciousness but is not actually self conscious.

But isn't this the point of the Turing test? Since we cannot determine otherwise, if something exhibits all of the outward observable behaviour of consciousness, we must conclude that it is conscious.

Otherwise we may be in the farcical position of needing to declare some humans not conscious under the same justification.
Tesla does this with shadow testing[1]

[1]https://www.forbes.com/sites/bradtempleton/2019/04/29/teslas...
> until you get the case you want

The GP was talking about a particular type of formatting:

* https://en.wikipedia.org/wiki/Title_case
https://archive.vn/nbdjU
The strange thing is that the JVM can handle them because Scala and Kotlin have them. Java though, doesn't.
Echoing another commenter, your app is super cool. Bookmarked.

One UI note, the layout jumping around when typing or clicking on things is a little jarring. E.g., the "Word is too short" message pushes the field the user is typing in down the page.
Can we just stop with the weaseling please?

> Fundamentally, a scalar multiplication function was returning the wrong value for a very specific input because of a combination of the pre-existing complexity and unsafety of some optimized assembly, of undocumented assumptions, and of the neverending state of flux of open source code.

So, basically, it's everybody's fault except for the maintainer of the go crypto code. Which, coincidentally, is the guy writing this blog post.

Oh, pre-existing complexity, huh? I wonder who put that there. It probably fell from the heavens.

I would certainly feel much safer using code from someone who is able to say they made a mistake. This is not about blame. This is about being able to take responsibility.

I wouldn't have said anything if the whole tone of this blog post wasn't "here, children, let me tell you something you can learn from". How about you learn from it first, Obi Wan?

Now feel free to downvote me, you hypocrites.
Well yeah...? That's a big part of why I mostly use Java, so I don't have to constantly figure out basic stuff in whatever language/framework that's hot this week. The language is just a tool. It's not an ends in itself.

I can spend that time building things instead. If I have an idea I can implement it. Downstream dependencies are rock solid, and the language changes at a manageable pace.

Like I did some stuff in python the other week, and every other line I wrote had to stop several minutes and figure out basic syntax stuff. Just a pain in the ass. Like I probably could take the time and freshen up on python and be up to speed in a few weeks, but that's a few weeks I'm not moving toward my goals.
There is also a compounding factor happening at least in EU.

Because many candidates are now readily available without notice period, companies can hire much faster and as a consequence decide to hire more slowly because their hiring budget for H1 is almost entirely spent already.
It's probably fair to say modern software should be seen as a disposable commodity. It doesn't have to be good or durable, but it should be cheap and abundantly available. If you're developing software, see your employer as a factory owner in China mass producing some low quality imitation product and you're the factory worker.
Here's my standard response to this topic: http://www.chriswarbo.net/blog/2017-08-29-s_expressions.html

tl;dr the parentheses are just the way s-expressions are serialised; there are many existing alternatives, e.g. based on indentation, etc.
I have recently come to the conclusion that a major problem is that there is no "local" internet. You either have websites somewhere out of local network or some app-based solution, but there's no "dishwasher.local". And you can't burden consumers with IP addresses.
Agreed. I’ve said it elsewhere: how do we know that ClosedAI has fully published all their tricks used to build GPT3.* or later? The main “clues” people have are from the InstructGPT paper, but it should shock nobody if it turns out that paper reveals less than 10% of their techniques, which may have taken years to come up with. Competitors would need to rediscover those on their own or come up with new ideas. Simply repeating the ideas from that paper is likely not going to get them to a competitive model performance.
This is exactly the position I'm trying to argue against.

What does it mean for something to be a physical structure? That you perceive it to be physical? But aren't your perceptions part of the universe? So how would you know if it actually "exists" anywhere?
What will be the difference, in your opinion, between semblance of self conscious and actual self conscious?
On a sufficiently long timeline we'll see full SPA frameworks on top of htmx ;)
I thought the thing that is scaring people is that there isn’t a defined relationship between model scale and capabilities. You may triple the model size and get no increase but then quadruple it and get 10,000% increase in capability. So no one knows where these massive models are headed and people want to pause until they understand the relationship.
no, its just optimized for adds not you
We went through a lot of iterations on what they should be called. They were originally called Fibers, but since they were extremely thread like it was decided they should be actual threads, so they should be some type of thread. Once that decision was made the question then becomes which adjective to add to Thread, and things like LightWeight, Small, etc. were ruled out as smaller or more lightweight threads might be introduced in the future.
Reddit admitted to maintaining more than 10 different video players and most of them are broken one way or another. As a company, they apparently do not have the capabilities to fix this. Their website and app are used as examples to teach bad practices.

ChatGPT, literally the biggest thing of the year, still has an incredibly amateurish website. Their auth UX is broken. They do not offer exporting conversations. You just see an infinite scroll list of previous conversations. It's a complete mess!

Yes, indeed, almost no one cares about UI/UX anymore at all, let alone polishing it towards perfection.

How did this happen? If yor product is "good enough", no one will care about the UI/UX. It's not an important distinguisher. Everyone keeps complaining about reddit, but everyone keeps using it. Same for ChatGPT.
And apparently the new NASA director is not a Christian, so what that group believes is not so relevant to this discussion.
Be sure to include all the costs. An ICE costs $1000 extra per year just for fuel alone for the average driver.
Basic physics with GPT-4: from dropping phones to rockets.
The reference/source to that Wikipedia paragraph is: https://openreview.net/forum?id=yzkSU5zdwD
I said "if that is meant to be an RFC". Of course if it is not meant to be an RFC, then it does not really matter...

English is not my mother tongue, so maybe I missed something here.
I have literally never had this problem.

I don't mean that in a "so you must be wrong" way, but "there may be something up with your situation besides the smoke alarms themselves".
I was the high school student that used to teach the teachers how to use WordPerfect 5.1 for DOS back in the day. So many memories seeing it again
Yeah I think Oracle doesn't get the credit they deserve for OSS-ing stuff like the Java Flight Recorder.

Of course their continued work on the big JVM features and GraalVM are huge for the community too.