skysight-inc/HackerNews huggingface dataset:
> The lack of customization feels like a slap. Like Spotify designers telling me “you don’t know what you want, we know better,” but the problem is they don’t, and they haven’t for a long time.

Warning: extremely broad stereotyping to follow. This is macro level stuff, not micro level stuff. Real individual humans are far more complex and nuanced than what I'm about to say and don't fit neatly into these categories.

This pretty much sums up all of my feelings on modern software. A good designer can be a real asset and make for a much better product. The problem is, only maybe 20% of designers are actually good designers, and the humility required to make you a good designer often makes you less pushy. The opposite 20% of designers who think they know better than everyone else happen to be the loudest and pushiest, so they often get their way. Everybody tries to copy Apple because Apple has had great success with telling their users how they should use the software, but this is a mistake unless you are only targeting Apple's user base.

Please stop looking at your app's UI as a work of art. Don't get me wrong, I appreciate a beautiful looking app and I know the joy that comes from creating something beautiful. But remember, it must have form and function. Look at it first as a functional machine, and then beautify and polish it. A great designer can work wonders with what they have!

If your boots are beautiful but your toes are getting frost-bitten, they aren't good boots!

In closing, I love designers and I'm glad we have them now. They are important and can be great assets. We just need a mindshift, much like we did in engineering.
AFAIK there is no mechanism to do the following

const a = { value: 1 }
const b = { value: 1 }

const set = new Set([a, b])

set.size will be 2 as JavaScript checks for reference equality and has no mechanism check equality on a specific property
ha, I'm working on a dev-side version similar to this (mostly just for me, but hopefully publishable). I opted for an entirely pre-deplopyment build tool, where you just put

<custom-tag custom-param="value"></custom-tag>

in your HTML, run the build and it outputs the filled in file somewhere else. I know its functionality is very similar to many web frameworks (e.g. React, handlebars) but it does one thing.
We used to use clear glue sticks with glitter in them (aka glitter glue) to seal ports (e.g., USB), then take a picture of it.

Max temp to melt glue is 190F/88C, hard to remove, and the likelihood to reproduce the color flakes suspended in the glue exactly is very slim.

> mix microscopic metal particles into the glue that sticks the tag to an object and then use terahertz waves to detect the unique pattern those particles form on the item's surface

The concept is very similar here to the glitter glue, just way more expensive.
But if the model is useless/full of hallucinations, why does the speed of its output matter?

"generate hallucinated results, faster"
In 2001 or so, I was building an HTML based email client. We used a hidden iframe to execute JS to load data from the server and manipulate the DOM with the result. It was not quite as neat and elegant as this—the browser support was not there. However, the basic mechanism was the same.

It warms my heart to see the basic mechanism in such a compact package, without libraries upon libraries and machinations to make things work. This is probably perfect for 90% or so use cases where react or similar FE frameworks are used at the moment.

We later used to joke that we used Ajax before Ajax was a thing.
I guess I am too humanist to believe this sort of rhetoric is not callous. I know people who lost their jobs in that layoff. It hurts a lot of families.

Companies should think about organizational bloat during hiring. If their revenues are soaring and they’re getting free money from the feds, they should shuffle the people they have into more efficient roles.

I know there are fiscal reasons why this kind of thing happens. But workers in the US do not have the protections to balance it out. Healthcare, unemployment insurance, etc are not sufficiently strong to keep people afloat for the sake of “reducing organizational bloat.”
> Tautologies don’t make for good strawmen

Agreed! So what are you using them for?

> network entropy doesn’t need to identify the quality level of music on it’s own to be useful.

Okay. Another context-free tautology. So what are we even talking about then, what is your point? You offered above “you could eg. test the vast swaths of potentially overlooked composers to see if any of them merit closer listening.” Are you taking back that suggestion?

Feel free to offer something - anything - more specific on how the entropy can provide useful information about music. What uses are you envisioning? What other metrics in combination with entropy are you thinking of?

What I don’t see in your argument is a single specific reason the specific paper we’re commenting on has value, and what that value is. You’re suggesting that someone else doing something else might someday uncover usefulness or applications, and maybe it will build on this paper. That could happen, and yet measuring entropy is already a well known idea, and the applications to compression have been well explored already, and we can demonstrate that entropy of music has no correlation with quality, therefore the probability of what you suggest actually happening still seems rather low, and the discussion doesn’t seem to be improving the odds.
In the C compiler I wrote a couple years ago (ImportC), since it was re-using the D semantic routines, forward referencing functions "just works".

In fact, it works so well you don't even notice it working. If the C committee wants to improve C, they should make this an official feature.

P.S. Because of the lack of forward referencing, C code tends to be organized as leaves first, and the entry point at the end. This is simply backwards, the entry point should be at the beginning.
With `malloc`, and converting the pointer to the correct type.

void function(int n) {
int (*arr)[n] = malloc(sizeof(*arr));
}
Wow, that's incredible. So wholesome reading a comment like this on HN, makes me more hopeful of the future. Thanks for sharing
Lighthouse is sophisticated and productive. I only use it in fully-authenticated contexts but because it is schema-first with good ORM bindings and excellent annotation support, I barely write any logic that isn't a mutation, an accessor or a permissions gate. The occasional top-level query resolver. Beyond that it is the graphql schema and the models.

And it gives me the opportunity to separate out the front end concerns in a way I could explain to someone else.

Apollo has been a bit of a pickle on the front-end, mind you. That's a decision I'd revisit.

But generally it has meant a flexible API interface and leads to nice low latency UIs.

Check it out:

https://lighthouse-php.com

And these really good third-party auth mutations for Passport:

https://lighthouse-php-auth.com
Very impressive looking! Just wanted to caution it's worth being a bit skeptical without benchmarks as there are a number of ways to cut corners. One prominent example is heavy model quantization, which speeds up the model at a cost of model quality. Otherwise I'd love to see LLM tok/s progress exactly like CPU instructions/s did a few decades ago.
I have a 5800X and like building new PCs, but I'm waiting another 9-18 months for that.

You, on the other hand, have been waiting about 15 CPU generations. You can build a PC on the AM5 platform and be content for 5+ years.

Get a B650E or X670E chipset, PCIe 4.0 or 5.0 NVMe drive, 64GB of RAM (why not), 1000W power supply (thanks nvidia).
Terry Gilliam's Air Canada
I have 30 POE IP cameras connected to BlueIris (Running on a server). It records based on activity, and is entirely local (including being on a dedicated VLAN).

The cameras are a wide variety of IP POE cameras which is helpful as I am not stuck to a single brand.
Yeah just offload the compute onto the cloud.
Facts. I avoid caffeine as much as possible. I still only sleep 5-6hrs/night (circumstance) but I have way more energy throughout the day than caffeine ever gave me. Now adays I'm so sensitive to it that a Strawberry Dragonfruit Refresher from Dunkin will leave me feeling a body anxiety without the brain anxiety. I sit there after drinking one feeling just uncomfortable and cold. Sometimes my palms sweat.

It's just not fun. I'm glad I quit caffeine!
Good stuff, thanks!

One suggestion:
I see in request, preflight request, and preflight response, you've organized the headers into required and optional, while the response headers are not organized as such. Would be nice to show which are required for response headers.
I don't know, and I don't feel like paying $200 per chapter to find out.
Yeah, except that ints in your data structures will unnecessarily consume far, far too much memory.
Ask HN: Why can't Apple Screen Time block certain websites?
All I want to do is block lichess.org.

In the settings in my MacBook I can go to content restrictions and put "lichess.org" on the restricted list. But I can still access the website from Brave browser?

How difficult can it be for Apple to just maintain a list of domains that the laptop is not allowed to access? The restriction appears to work from Safari, but not from Brave. (Actually sometimes it works on Brave and sometimes it doesn't -- it depends on which WiFi location I'm at, but I can't figure out the pattern.)

It seems that Apple could just adjust the /etc/hosts file, or some equivalent. Why is this such a difficult problem for Apple to solve?

It is ridiculous for a user to be able to get around the Screen Time restrictions just by changing the browser they are using.

And yes, I know I should just have more self control and not play chess -- I'm consulting other forums about that. For the HN forum I just want to understand what makes this problem so technically difficult for a company as big and technologically advanced as Apple.
I agree, Tarantino sucks and Pulp Fiction is shlock.
checks the date

Is it any use to add them now? Are there people who use base JavaScript with absolutely no library?
I'll take a deeper look in the code later, but it seems useful.

If been using the window location hash to do some simple navigation on my SPA, but i use JS. (Just hide all sections and shows the one that matches the hash i.e.: #main
Does AM/PM still not take credit cards?
Signing up wasn't that hard - they just want minimum sales per 90 days. I still don't have API access though; figured it was worth just trying this and seeing what happened. It's super unclear what leverage Amazon tries to exert; it might be that they just refuse API access? Guess I'll find out when/if I try to withdraw my winnings.
Sensational news aside & theoretically speaking, what changes would a design possibly go through if you could upgrade node from 4 to 3 nm?
The thing is that tokens aren't an apples to apples metric.... Stupid tokens are a lot faster than clever tokens. I'd rather see token cleverness improving exponentially....
> But not if you lived on the ground floor I assume?

Still wouldn't make much of a difference when my windows are trivial to break into even when closed.

> Why would you suggest another sequential ID

I didn't.

> UUIDs have decent entropy and are not viable to brute force.

They're 128 bits (for UUIDv4 specifically; other varieties in common use are less random). That's a pretty good amount of entropy, but far from insurmountable.

And you don't even need to brute-force anything; if these IDs are public, then they're almost certainly being used elsewhere, wherein they can be captured. There's also nothing stopping an attacker from probing IDs ahead of time, prior to an exploit being found. The mitigations to these issues are applicable no matter the format or size of the IDs in question.

And this is assuming the attacker cares about the specific case of attacking all users. If the attacker is targeting a specific user, or just wants to attack the first user one finds, then none of that entropy matters in the slightest.

Put simply: there are enough holes in the "random IDs are a meaningful security measure" argument for it to work well as a strainer for my pasta.

> when you're trying so hard not to get it

Now ain't that the pot calling the kettle black.

> If you someday have public data you don't want a competitor to enumerate you'll know the solution exists.

If I don't want a competitor to enumerate it then I wouldn't make the data public in the first place. Kinda hard to enumerate things when the only result of attempting to access them is a 404.
It's strange, the absence of padding gives me room to breathe, because if I can quickly scan a menu with my eye then I feel I have good overview and control over affairs. With more padding, you cannot do the same scanning motion with the eye, you have to read each item as a single atom unto itself, and suddenly the menu has become a jungle of megaliths where it's easy to get lost.
Civic pride is a curious thing in 19th century Britain. To get into it would be a small essay on the 1832 parliamentary reform act and all the factors that contributed to it.

But Empire was important. There was more money concentrated in fewer British hands than ever before, or ever since. "Empire" is also a broad term: the Industrial Revolution, originating in the Midlands; steam power, which was exported globally; and of course, the slave trade, which Britain both catalysed and then worked hard to destroy. They all had their part - they were drivers and benefactors of Empire, and they all put plenty of cash into a few well meaning citizens' pockets.
It is a choice. The choice is also motivated by a Big Idea: ELiminate every part you don't need. This sounds like a good idea to the point some people will adopt it uncritically, but when you start eliminating parts, like paint, or an anti-pinch sensor, or LIDAR, that you might actually need, you just create technical debt and future recall liability. Bad dogma.
No, it's a pretty specific concept that doesn't mean any of those things: https://news.ycombinator.com/item?id=39431698
size_t and ptrdiff_t works for me.
> Tagrisso earned $5.8bn in sales in 2023 — 13 per cent of AstraZeneca’s total oncology sales — making it the company’s highest earner.

The drug seems to have been approved in 2015-16. If that's the case, why is this announcement of efficacy happening now? A long-term outcome after a short-term tentative approval?
> while I agree with the geo-political arguments, I'd prefer to see regulations that allow the freemarket to design a solution, rather than a government contract to choose the winner.

I think the market did choose and the choice was "not in the us".
The only thing I do with my bank is to check my balance, via a Web Page, on a desktop/laptop. I certainly wouldn't want to try to do that on a tiny screen with a horrible virtual keyboard.

I managed to avoid "Smartphones" until getting a Moto Power G (2021) last year when they killed 3g phones. The first thing I did was remove all the apps for social media, and turned off Email notifications. If you need to reach me, you call (and play nice with Google's screening service), or send a letter in the mail.

Smartphones are great for running Termux/SimH/VAX780/Open VMS 7.2 and engaging in a bit of nostalgia... oh and Pokemon Go.

I don't try to do serious computing on them.
A Uni Student Embarks on a Journey to Become a Freelancer(Advice Is Appreciated)
Hello people of the web reading this, honestly not quite sure how this is supposed to look, but I've decided to just give it a chance.
My name is Tarik Mujezinovic, I'm a 19-year-old Uni student from Bosnia. Recently I've been wondering what to do with my life. So since I know I want to be a person who has freedom, both financial and literal, I've decided to become a freelance web developer and designer. I've always been a creative person and the magic of web development to me is that I can create something out of nothing like a true engineer, and it baffles me every time. I've been doing web dev for around a year as a hobby and am really looking to get more serious about it. A lot of entrepreneurs gave me advice to do everything in public and show what I'm doing, so I'm taking their advice and doing it. It's a bit scary because I don't know if I will have any support. But nevertheless I've decided to embark on the journey as I will share over on Twitter what I'm doing and learning along the way. If you want to join and support my journey, you can visit the twitter link. I'm always open to advice or mentors.
Yeah you just have to seek out better employers if you want it to happen, but I understand they work very hard to get people under the thumb :)
Well, currently its entirely possible to run these models on iPhones. It's just not practical because it eats all the resources and the battery when slowly generating the output.

Therefore if Groq has achieved significant efficiency improvements, that its, they are not getting that crazy speed by enormous power consumption then maybe they can eventually build low power mass produced cutting edge fabbed chips that run at acceptable speed?
GPT3.5 is great at spitting out marketing babble, summarizing documents and performing superficial analysis but it doesn't take style prompts as well as gpt-4 and its reasoning is significantly worse when you want it to chain of thought follow a complex process while referencing context guidance.
I have 4 and 8 year old phones (besides my current). The 8 year old phone needs nursing into a factory reset - immediately switch off auto updates to prevent the normal installed apps loading (they are there as stubs only until then). The 4 year old one is better but still labours with modern apps. To be fair neither was more than utilitarian when I bought them.

So I think the actual physical performance of the phone is more of an issue than the OS.
Off the top of my head....
-How was the labor sourced for those services?
-Child Labor, illegal immigrant labor?
-What are the working conditions for the labor?, is it sweatshop
-what inputs go into the goods/services?
-what do they do with their waste?
-where do the inputs come from? My country, another country, my town, a town in my state...

you may think the government plays a role to enforce some of these, and they do to a point...

You can go on in your own head about all the things behind that simple exchange of money for something. If it's a perfectly competitive market sure, that may work but there aren't many if any markets in the US that are that level of competitive.

A personal anecdote for you. My uncle owns an auto parts re-manufacturer, so they rebuild car parts and sell them. I worked there a lot growing up. The normal input is buying "cores" from service stations....your starter motor isn't working and you get a new one, that old one is sold to someone like my uncle who refurbs it.

Often we had people come by with very clearly stolen parts....should we have just exchanged money for those? This ranged from a tweaker who would show up with one part, to full scale organized theft rings with pallets of parts...

So, do we buy those since the price is much, much better? There is a an ethical decision there...
Yes, but this isnt as negative as it sounds.

That 2 months average is often driven by more people alive at the end of a 2 year trial.

Also, 16 years of 2 month extensions ends up being quite meaningful.
In how far is the API compatible with OpenAI? Does it offer logprobs[0] and top_logprobs[1]?

0. https://platform.openai.com/docs/api-reference/chat/create#c...

1. https://platform.openai.com/docs/api-reference/chat/create#c...
Friendly fyi - I think this might just be a web interface bug but but I submitted a prompt with the Mixtral model and got a response (great!) then switched the dropdown to Llama and submitted the same prompt and got the exact same response.

It may be caching or it didn't change the model being queried or something else.
I asked it to come up with name ideas for a company and it hallucinated them successfully :) I think the trick is to know what prompts will likely to yield results that are not likely to be hallucinated. In other contexts it's a feature.
It's at least nice to see somebody reasoning through where error comes from instead of just throwing up their hands as if the error was inexplicable. I agree that the title is unfortunate though.
I mean, when I was a student I organized an anti-war rally in 2003. I was called into the president's office and the president of the university told me to cut it out.

So, not hard to imagine that happening further up the chain.

I mean, I didn't get shot or put in jail, so there's that. At the same time, the US ignored rather large protests and proceeded to get around 1M folks killed.

I think that's a reasonable summation of freedom in the US- the folks with the power know they have it, so it's more a question of "stern talkings-to", and then they do whatever the folks who own the place want to do.

Which, I suppose is "freedom". Not a very satisfying freedom, at least from my point of view.
One basic reason to support artists you like is just because you want them to make more stuff.
It's actually 70% of REVENUE according to this: https://dittomusic.com/en/blog/how-much-does-spotify-pay-per....
Keep in mind 7800 is first gen AM5, a year later, motherboard firmware and hardware bugs hopefully will be ironed out...
No, you see, only the bad parts of our current society are attributable to capitalism. /s
Wow. You wrote so many words and yet you said nothing substantive whatsoever. Good riddance!
If there is one command called "Paste", and another command beginning with and commonly abbreviated to "Go", "Paste and Go" should be equivalent to using both in sequence. If it's impossible to make it act in the expected manner, and impossible to label it correctly, the only remaining option is to remove the feature.
How about distributing the "full" book as a docker image where you have both the source and compiled binaries (if relevant) of all the code samples in the book?
It's a pretty common pattern (take the top N by group with some order), so I'd expect that it's a familiar pattern to a lot of people who regularly do analytical queries in SQL. It's clearer with formatting/naming:

WITH ranked_tracks AS (
SELECT *,
ROW_NUMBER() OVER (
PARTITION BY album_id
ORDER BY milliseconds DESC
) AS row_num
FROM tracks
)
SELECT *
FROM ranked_tracks
WHERE
row_num = 1

But it is still super ugly for such a common need. If I were to add syntax to make this kind of thing easier, I'd just go for a syntax that made something like this valid:

SELECT *
FROM tracks
WHERE
ROW_NUMBER() OVER (
PARTITION BY album_id
ORDER BY milliseconds DESC
) = 1

Which apparently the QUALIFY statement does in a few dialects.
Same with my dad in the 80s. His descent was horrible to witness, in my case at the age of 21. I’ll never know the truth, but I think his doctor took pity on him, dad died very shortly after a push of morphine.
Turns out people want more from the market than a 401k and a cheap tv. Specifically a stable place to live with reliable employment and decent healthcare is worth sacrificing a hell of a lot for.
>fully customizable context menus? How hard is that?

It's not hard at all, Vivaldi does it. I consider Vivaldi the least worst browser.
Document Versioning / Join Semilattices
Tell HN: In 2024 dealership are still a horrible experience
Just venting some frustration about my experience trying to buy car (regular gas car) at some local dealership. The last time i bough a car was right before the pandemic. And yep it's still a horrible, sleazy experience.