skysight-inc/HackerNews huggingface dataset:
>I think any new language (including Rust, Go, Nim, etc) that wants to displace C should not be trying to fix C's biggest mistake

Every new language should fix every older mistake that can be done "for free", without growing the language too much or complicating things. C certainly has plenty of those.
Stacker (YC S20) Is Hiring for Product Engineers
Replace "reddit" with "heroine" and not much changes, except to the same effect.

I like to think of it as "I can't stop scrolling Reddit despite knowing I'm not enjoying Reddit". I deleted the Reddit app, and blocked reddit.com (which I found myself using next) to 0 minutes on Digital Well-being (on stock Android).
>>The invisible hand is just the profit motive

I think You are underselling it - that's just the mechanic through which it works.
But at the same time too mamy people treat it as idealogy and sell it as a silver bullet and not merly a tool which it should be.

My main point is that we should not see markets as an end game - this is just a primitive human made system that should be evolved.
Perforated bowel.
> That makes it easy to provide f! - 1 variants of queries...

I mean, I'd hope you only need 2^f - 1 variants...
This is twisted. Noone has to develop cookie consent windows. If you do, you are most likely the one being unethical.

All cookie-banners are an active choice by site operators.
100% agree, which I do not take for granted. Niche communities in reddit used to be that way. Not it's an overwhelming abundance of low effort content like "me too", "tree fiddy", "and then I took an arrow to the knee"
Addiction is just a pattern, a framework of looking at reality. You could say you are suffering addiction withdrawal when you are away from somebody or some place you love.

Addiction framework and associated solutions seem to be pretty effective for things like stopping heroin usage.

Quite likely it can work for reddit too, but I'm guessing PC already tried it.

I'm just offering a different framework and way of looking at things, which works great for me - or to be even more precise, removes some suffering. One may just decide she wants to spend a lot of time on reddit, but being honest with oneself and trying not to hold logically contradicting things in one's head seems like a good thing.
What language constructs should a (Turing complete) Lisp have to be considered one? Is there a spec somewhere, a minimal conformance guide? I don’t think it’s just the parens that make the Lisp.

I suppose it needs:

* car and cdr

* if

* list

* eval

* quoting and quasiquoting

What else?
This is fun. If you turn restitution all the way up and friction all the way down, you can get a passable simulation of a liquid, and then (when temperature is increased) a gas.
Thank you for your thoughts and concern. Let me say I am at peace with myself, I've come to terms with life, mortality. I do fear that the future will be neo-feudal, techno-slavery very shortly though, if people don't start to push back against the governance system + the corporations that run it.

I differ on a few points to you. I don't think the government has turned, I think it has always been this bad! It has always been full of parasitic middlemen that look to make a fortune off the people doing the actual work - people in government are the worst of us, while pretending, nay demanding, that they are portrayed as 'the best of us'. Anyway, I think its that we are at the end of ... something - technology + political immorality seem to be combining in a potentially unpleasant way.

Also, I think the governance approach that has been taken is very incremental - the plans are slow and stealthy - we are disclosed a bit at a time, but never so much that it causes a rebellion. We became aware of 3 letter agencies, then that they were sometimes nefarious, then that they were spying on us, then we had travel constraints, camera everywhere passes to travel, etc, etc - the direction of travel is only one way - towards technocratic governance. None of those steps on their own tripped enough alarm bells to prompt anything more than hand wringing - but if you look back over the years - say 20 years - you'd never believe where we are now. Nor how we got here. That's the power of incrementalism.
I find this a nice third to "The diminishing returns of productivity culture" https://news.ycombinator.com/item?id=31290421 and "Why do you waste so much time on the internet?" https://zan.bearblog.dev/why-i-waste-time/
Start a habit tracker tracking # of days not browsed reddit. you can trick your brain, since it loves streaks. also tie it to some reward mechanism so it seems like you're earning something by not browsing vs a punishment.
Maybe they're doomscrolling the environment or their own mind?

Do lions ignore prey if they're not hungry? I know younger cats usually want chase something if given the opportunity, regardless of whether they've eaten or not, or have access to food 24/7.

Older cats tend to just sit around and watch the environment, perhaps waiting for something to happen?
Understanding Mathematics: A Study Guide
Great work guys !
This product has a lot of potential and on top of that it makes the life of devs easier !!
start a hobby. exercise. music. a side hustle. something that has a positive reward loop
that is the distinction.

I scroll reddit obsessively but I don't enjoy it.

I read books obsessively but I enjoy it.
What does walking to the top have to do with skiing it downhill? Does it use the same route?
The problem with REST for me is that it locks you to HTTP verbs and URIs. And it's not a great mapping for much more than CRUD. I find it really restrictive and annoying. It's specific to HTTP as the transport, so I can't use REST over websockets or some raw TCP server-to-server pipe, etc, without making a kludge of it.
Why is it a fallacy to believe life is elsewhere in the universe? It seems the most likely possibility to me. Of course we have no proof either way - because we've not really looked anywhere (we're not able to, yet), apart from the moon, and a few tens of square metres of Mars (both of which we knew, a priori were barren rocks - but at least they're not too far away). That doesn't make the idea of other life in the universe "wishful thinking", surely?
The commenter prefixed with "kindly" which is about the same thing as saying "please". This makes it not imperative, but a request.
Yes Sveltekit does SSR by default behind the scenes.
Building robust applications: make invalid states unrepresentable
The detection range for radar is more than 200m, you can stop from speeds above 100mph in that distance. And the radar sensor automatically includes relative speed information on the target (doppler shift) which vision doesn't so it's easier to figure out whether something is stationary or not. So I don't believe this "vision only will fix it all" story.
Show HN: Simple Gantt Chart Software
> you have to make money somehow and users will never pay for social media

SomethingAwful charge(ed|s) $10 to create an account and we’re ruthless with banning people who were not behaving. It worked really well
> Problem: then buying one to do the project and then throwing it away would save money. But this isn’t being done.

I suggest reading the article. Under the Act all US dredges must be built in the US. A US entity buying one doesn’t make using it in the US legal.
Dopamine?

Dopamine.
On all sufficiently new CPUs (all AMD Zen, most Intel Atom, Intel Core since Ice Lake, almost all 64-bit ARM), both SHA-1 and SHA2-256 are extremely fast, because there are special hardware instructions implementing them.

They may be slow only in programs which do not check for hardware support and which do not use the dedicated hardware instructions (which is the case in many programs, because Intel Skylake derivatives have been the most popular CPUs during many years, and they were the only modern CPUs without hardware support for SHA-1/SHA2-256, so most developers did not bother to optimize their programs for the other CPUs).

OpenSSL is one of the few programs which use the hardware instructions when available. This makes, e.g., "openssl dgst -sha256" much faster than "sha256sum" on recent CPUs.

When using the hardware instructions, SHA-1 and SHA2-256 are faster than many non-cryptographic hashes and only 1 cryptographic hash is faster: BLAKE3.

However, it must be kept in mind that BLAKE3 is much faster than any other cryptographic hash only because it distributes the computation on all CPU cores. So the much higher speed is accompanied by a much higher CPU utilization.

If you have something else that should be done in parallel with the hash computation, using BLAKE3 does not necessarily reduce the total execution time for your entire application, even if the hash is computed much faster, because other concurrent activities may be stalled until the hash computation is completed.
Q: Was cookie consent required for non-cookie stuff? Like etag or TLS persistence?
Hi HN,

We built this simple gantt chart software as a free alternative to Microsoft Project, without all the overly complicated bells and whistles, check it out!

Feedbacks greatly appreciated.
EU has laws that threaten millions of euros of fines for not having things like cookie banners. They are required by law for even the most basic user-customizations. And no allowing users to save state on your page is not unethical.
For Apple users, iOS/iPadOS 15 support notification summaries at set times of day:

https://www.macrumors.com/how-to/use-notification-summary/
That sounds like a good plan! Maybe also put questions (internally) in different categories, so that when the user discards, for example, multiple questions about books, you can stop showing additional questions about books. Rinse and repeat for other topics like "death", "relationships", "heavy philosophical questions", etc. :D
One of the problems backend systems sometimes have is presenting similar data in slightly different ways for use in many different places. One of the solutions to this is GraphQL, which lets you break your data loading into reusable pieces (resolvers) and define endpoints based on those reusable pieces (queries).

You could "just" do this yourself, of course. GraphQL is nice because it gives you a sensible starting point and a lot of free tooling. You get Graphiql to help you quickly write new queries, you get well-defined schemas between server and client, you get linters for queries, you get GraphQL itself to glue your resolvers together and interpret your queries.

If your system has a grand total of 20 API endpoints and they're nearly all unique, you don't need GraphQL.
I've been using an Intel NUC 11 for the past year and it's treated me very well. Small form factor, and relatively low power usage although I've forgotten exactly how much.
I don't know if it's applicable to your use case, but if you work on these models a lot you might want to consider using Minizinc/Flatzinc as a modeling language.

Nothing against python, but those models get unwieldy very quickly, especially when there are tons of overlapping constraints popping up.
Thank you for the correction. Re:barges and paying for infrastructure. Who cares? User pays is nice in principle but if there are massive positive externalities of doing something the government should do it. That’s what taxes and the idea of the public good are for. The benefits of cheaper transport do not accrue mostly to barge companies.
I had thought of mentioning San Francisco. I didn’t because it’s an Apple-only choice but your comment makes me appreciate it more. Noto looks great. It seems like with these configurable fonts you can use the same face for body text and have it still look good in headings at a different weight.
TikTok is only fun if you don't work there
I can't help but think - the people who don't waste time on the internet won't be replying to comments here.

It's sort of like a self-unselecting population
I don't get this at all. Is this supposed to be funny? Is it satire? Is it supposed to be relatable?
ahah same. I think we hear the coils that are used to lower the voltage for the CPU. They are modulated based on the current demand.
Honestly, I didn't read that link extensively. It went straight to a sleezey looking "How Much to Expect From a Car Accident Settlement?" That didn't sound like it justified the usage of "regularly" in the statement I responded to.

Feel free to correct me on how its related to the use of "regularly" tho.
The take away would be there is a lot of the "rest of the world" depending on silty River mouths. China and the US depend on a small number of massive ports and the RoW depends on lots and lots of silty ports.
These are probably chosen based on popularity than anything.
Same. And to be honest, since I played with it as a teenager, MenuetOS pretty always come to my mind when I see how we waste computing ressources nowadays.

Of course I know that MenuetOS fitting in a floppy is more a challenge for the author than something we should aim for for regular software. But still, I sometimes calculate in my mind "how much MenuetOS floppies is this" when I download and use some basic app written in Electron. Even a lot of websites are heavier than that.

I think MenuetOS and a modern app are two extremes and I say to myself that we should aim for some just middle.
The only times in my life where I stopped "wasting time on the internet" was upon returning from a 10-day Vipassana meditation retreat. Especially after the first one this lasted for around 3-5 months. There was no effort involved on my side. It simply came very naturally to me to not check reddit/hackernews/fav blog first thing in the morning or during idle time (or at all really).

Some of that I can probably attest to the disruption in my media routine for 10 days, but that doesn't explain that it lasted for 3-5 months. During the first 3 months I overwhelmingly felt very peaceful, good, and even joyful at times, with negative emotional reactions being a very rare occurrence. I can't help but think that this was the main driver for my lack of habitual "wasting time on the internet". I just didn't need it.

If I could choose, I would prefer how it used to be instead of my current routine of checking reddit/hackernews/youtube multiple times a day. I think it's mostly not nurturing the mind in a good way. But I'm not beating myself up about it, and that's good.
Because it's my job... I search for answers that others are too lazy to find, so I can help them fix their stuff.
Can't do that without internet... Sadly.
Also, Twitch's a drug and YouTube's my dealer...
That's very presumptuous.

As a user, i honestly don't care how the site funds their internal expenses, as long as it's lawful.

If they want to charge me money for it, the just have to ask.
Here is also a nice article on operations research using the graphical method in R:

https://medium.com/swlh/operations-research-with-r-graphical...
Better: Roll out the law as it was first designed and not watered down.

In particular these annoying walls would get you fined.
>> We have to collectively reject the engine of endless growth, and the aspiration for infinite productivity, before it breaks us all.

Or, y'know, not be so fragile.

My generation, GenX, didn't get to where we are as semi-successful slackers by whining, we did it by actually just arranging our own gigs and either accepting or rejecting the abuse of the capitalist system on a case-by-case basis. Appealing to the collective "but we're all so fucked, we're the first generation to have lower economic prospects than our parents" was fun for movie plots, but not something that would make us quit a job.

It took two things to reach this point of maximalist outrage at the unfairness of working:
1. Boomers raised their kids to be snowflakes,
2. Then Boomers got old and started using their kids as beasts of burden.

That's really all there is to it. Obviously, if you're stuck in that situation you want to tear down the whole system, but what do you think would happen if "we" rejected limitless growth and endless productivity? Nothing in this piece suggests a replacement for the drive to work, or the virtues of working and earning. Nothing in it contemplates what a society without those virtues might look like or what meaningful thing would replace the continuity of work in peoples' lives.

You want to hang out with GenX'ers? Okay, here's me at 22: DUDE I DON'T WANT TO WAKE UP AND GO TO WORK. AGAIN.

Here's me at 40: Thank God I kept going to work.

You'll feel the same way. Hopefully. If our economic and political system manages to digest the double demographic humps of an elderly, uptight conservative group of selfish fools and their entitled, progressive and whining children.
That's crazy! I work with Salesforce reps a lot for some pre-sales bids and they've been pushing connect (both salesforce connect and heroku connect) for the last few years. Cost is in the range of 5k/m or so for salesforce connect (from what I recall).
I feel like we should probably have the concept of an "intent" for any bit of data that we'd like to store in a browser and partition the storage by that:

Intents:
- REQUIRED_FOR_SITE_FUNCTIONALITY (translation "Required For Site Functionality")
- FIRST_PARTY_ANALYTICS (translation "First Party Analytics")
- THIRD_PARTY_ANALYTICS (translation "Third Party Analytics")
- FIRST_PARTY_MARKETING (translation "First Party Marketing")
- THIRD_PARTY_MARKETING (translation "Third Party Marketing")

Let the browsers themselves provide UI for accepting or denying these (maybe the users should be able to choose their own defaults per intent):

Message:
https://some.site would like to use your browser to store data for these intents:
Required For Site Functionality [X] Yes [ ] No
First Party Analytics [X] Yes [ ] No
Third Party Analytics [ ] Yes [X] No
Unspecified [ ] Yes [X] No
[ Submit ]

Which could then correspond to how everything is stored in the browser:

Storage:
https://some.site
REQUIRED_FOR_SITE_FUNCTIONALITY (accepted)
Cookies - ...
LocalStorage - ...
IndexDB - ...
FIRST_PARTY_ANALYTICS (accepted)
Cookies - ...
LocalStorage - ...
THIRD_PARTY_ANALYTICS (rejected)
FIRST_PARTY_MARKETING (rejected)
THIRD_PARTY_MARKETING (rejected)
UNSPECIFIED (rejected automatically after 01.01.2030)

And extend the JavaScript API for cookies (and also all other mechanisms for storage, this is an example):

document.cookie = "user_id=1234"; // this would go under Unspecified
document.cookie = "intent=REQUIRED_FOR_SITE_FUNCTIONALITY; user_id=1234"; // this would go in the proper group
document.cookie = "intent=THIRD_PARTY_MARKETING; uid=1234"; // this would throw something like an IntentViolationError

And ideally something for checking these intents as well:

let canUseRequired = document.intents["REQUIRED_FOR_SITE_FUNCTIONALITY"].accepted; // true
let canUseTPAnalytics = document.intents["THIRD_PARTY_ANALYTICS"].accepted; // false

Who would define these types? Well, i think that there are two ways:

- have some international body decide on these types
- allow custom types per site, maybe with different UI for that

And then just prosecute those who don't follow the convention and abuse the mechanisms.

Of course, that will never be done.
Most Favoured Nation status should apply. Or what's called the BOOT: better off overall test.

Exclusion of the US from the AsiaPac trade round made everyone else better off! The US basically screws everyone: no Australian US trade agreement in recent history has been BOOT for Australia, US states also apply random rules which nullify much Australian trade advantages: BHP was blocked from building some minerals processing in California IIRC.

A rather anti US subtext in "love actually" is based on populist common belief: in trade negotiations cross administration the US is a 900lb gorilla bully.

The push back by farming lobbies in the UK to US chicken is an unusual example of holding ground. Consumer sentiment lined-up for once. Undoubtedly ammonia rinsed chicken would be cheaper.
Not in a school. from the article

> In 2006, Santore enrolled in a few classes at a community college in San Francisco. He left shortly after. On a whim that same year, he was hired on by the Union Pacific railroad, working as a brakeman, and later, an engineer. For the next 13 years, Santore studied the geology of railroad cuts as the trains traveled through them and stocked his railroad bag with botany research papers from the website Sci-Hub.
This is once again a very good example of why laws/regulations should always have a sunset clause.
Ask HN: How to Monetize Open-Source Software?
We've collected 34 approaches to monetize open-source software in an open github repository (https://github.com/PayDevs/awesome-oss-monetization).

What have we missed?
Use cvxpy, much nicer api and you can drop numpy arrays into it so your optimizations can be one line instead of awful lists of constraint objects. Also it can be a tensorflow layer now with cvxlayers
The typeface itself doesn't dictate how you style the different heading levels in your document/stylesheet. Particularly with such a parametrized font like this one, there are many opportunities to creatively differentiate the treatments (and the smoother ramp makes that easier to do).
IIRC, noatime is useful everywhere except /var/spool or /var/mail where certain daemons may depend on access time correctness.
s/unethical/illegal/;
Can you use nvim-dap remotely? I am working on building up a neovim setup but the remote editing and debugging are the missing piece for me.
I'm using a rolling hash with SHA265 but only take 128 bits, as it should be enough to avoid collisions. Leaf node hashes are computed on demand, only inner node hashes are stored persistently.

Can you elaborate a bit more? You mean bitset indexes?
I loose every two years (when i test it again) a volume to btrfs, last time 2 month ago, with that simple "trick":

-Fill your rootpartionion as root with "dd if=/dev/urandom of=./blabla bs=3m"

-rm blabla && sync (we don't want to be unfair to such a fragile system)

-Reboot and end up with unbootable /

It's a mess, for a filesystem i would declare it as alpha stage.
Just launched my first app on PH. Its open source and free. Hope you like it.

Cheers!
Revenge of the turkeys. Go birds!
Can you also apply GPT-3 to understand whales and dolphins?
> In this paper, we argue that fork was a clever
hack for machines and programs of the 1970s that has long
outlived its usefulness and is now a liability.

Based.
Hellerstein’s CS 186: Introduction to Database Systems https://youtube.com/playlist?list=PLhMnuBfGeCDPtyC9kUf_hG_Qw...
> Please don't do things to make titles stand out, like using uppercase or exclamation point

This is the "use-mention distinction" https://en.wikipedia.org/wiki/Use%E2%80%93mention_distinctio... as applied to the "!" in "The WOW! signal"

This distinction is more common online when talking about bad speech (e.g. profanity and racism); content filters simply can't tell if you are using a bad word in anger, or just mentioning its use by others; they merely match the presence of the bad word.

IMHO, the "!" should not be removed as the submission is not "doing things" (i.e. using a "!" to pep up the title ), they are mentioning the well-known existing name of the thing.
There comes a point as a parent where this kind of humor is very normal. :)
The reason is that there are no credible reports of UFOs that make one think alien.