skysight-inc/HackerNews huggingface dataset:
Presumably it's quite a bit cheaper (and more power efficient) to build a 6.4 terabit P4/Tofino switch vs. building a 6.4 terabit switch with eBPF on x86, ARM, or even NPUs. P4 can also enable an SDN control channel, P4runtime, that uses gRPC.

One nice thing about P4 is that it is a machine-executable (and potentially verifiable) specification for how switching ASICs should work.
What do you mean by lawful? This is the first time I've ever heard someone use that term in this context.
That one isn't actually as strict.
Just because you used a spinlock doesn't mean you cause pathological degradation.

spinlocks in systems with preemption are only allowed if the scheduler knows about them, though. Otherwise a throughput-optimizing scheduler may cause hold times in the range of seconds, by keeping an aquiring thead active with the holding thread asleep. Such a scheduler wouldn't be suitable for interactive workloads, but for non-networked batch tasks it should be quite efficient (due to a combination of calling the scheduling logic less often (thus wasting less time on it), and less cache contention with the application.

In interrupt handlers and such you may need to use spin locks, as you can't sleep either way. The rule about preemption still applies though, and aside from fairness issues, will take care of preventing pathological hold times.
Your selfless self has always been at the center of your existence since you can remember.

Your selfless self is the one that does the experiencing, and the decision making. And that's all you really need at this point, especially when you're older.

So decide what you wish to experience next, and decide to experience it. That's it!

Strip everything away and let go by taking everything you've been framing as internal and reframing it as external. It's a huge moving out party. Throw that sofa out on the lawn. Empty your apartment so you can identify everything people threw in there, and what it is you actually miss.

You might have to quit your job, get a divorce, or disown your father to get there. But you can't give anyone a second chance unless you accept they've stolen from you once. This includes your ego.

But this cannot include your selfless self because it cannot take from you. It only takes on behalf of the needy to serve them and waits for new requests.

Your head will tell you if it aches. Your body will tell you it's tired. Your ego will tell you if it has issues with the other egos in the room. So take asprin, get some good sleep, and rethink your relationships.

These are not problems. They're just tasks. Some are harder to solve than others, but you have a brain, and google and books where every solution has been shared at least once. And it's always your selfless self that goes to work and does everything for you. Your ego never solved anything.

So once you've emptied your cup and are in a good mood, ask for your next experience. Make a wish. And go do it treating it as the most important event in the world because it is. It's your truth.

At which point, what do you need your ego for?

If it's what got you here, then it's job is done.

And you may even wish to experience giving someone a second chance.
I remember a company patented an invention where people would have to shout <brand name> at the TV to get the advertisement to stop.
Do you have an example of this in action? I'd be interested to know what steps are taken to avoid false sharing of cache lines in the ring buffer itself.
Your bit about China is hilariously deranged. Have you ever talked to a Chinese person?
> Exactly, people love to hate on Capitalism, but it is a very powerful tool

Lots of social systems or practices that have earned hated are also powerful tools. Feudalism is a powerful tool. Slavery is a powerful tool.
> neither of those arr particularly welcomed in the tribe they notionally dissent within

I don't think anti-Trump conservatives are particularly unwelcome in mainstream American conservatism though. Take someone like the Orthodox Christian journalist Rod Dreher, who says very negative things about Trump ("Donald Trump is flat-out lying to manipulate the political process", [0]), but who has also written a book (Live Not By Lies) claiming that American progressivism is evolving into Soviet-style totalitarianism. Getting invited on to Tucker Carlson's show is a pretty clear sign of being welcome by mainstream American conservatism, and Carlson has invited Dreher (in September last year) on to promote his book, and I'm sure the Fox News audience loved it. Carlson just avoided asking Dreher about his opinions on Trump, he knows what his audience likes and he didn't get where he is by upsetting them.

[0] https://www.theamericanconservative.com/dreher/donald-trump-...
Read the Book of Mormon. I was depressed and suicidal. It guided me towards the light.
I used C++ for a good while (systems programming). I like it and still use it for some things. But when I started using Go, I used C++ less and less. Go was simple like C and almost as fast.

There is a time and a place for all languages, but if I could only have one, I'd probably pick C++. It can do almost anything in whatever programming style you prefer. It really is the most generic language I've ever used. That's both its strength and weakness.

Also, the fact that C++ is standardized (ISO) and not controlled by a company (Google, Microsoft, Apple) I feel it offers greater freedom. No vendor lock-in.
Volunteer! See if your local animal shelter needs someone to walk dogs, clean cages, or measure out food. Your local food bank probably needs someone to sort donations or make up boxes. You'll be doing something valuable and it's a great way to meet people in a low-stress environment.
I do use Jupyter and the boilerplate code above is what I usually deploy in Jupyter.

Spark syntax is still just a touch more complicated than necessary for my needs because it's solving the much more general distributed computing problem. (not to mention the impedance mismatch -- Spark is very much a Scala native app, and it feels that way to a Python user).

DuckDB on the other hand seems to provide a quick way to interact with local Parquet files in Python, which I appreciate.
> Carlson just avoided asking Dreher about his opinions on Trump,

Right, there's no market for dissent, only for the tribal-conformist views.
I don't think about climate change at all, but even if I did it wouldn't change much since other things I care more about already align pretty well with things someone worried about climate change might fear.
I am not up to date on philosophies. What little I have learned over the years has waned in my mind such that I don't trust I have it right.

That said "these philosophies value human discussion as a core principal" really resonates with me. I don't like policies that are designed to be enforced without the people involved interacting with each other in some form. Again, yes there are some straw men that we should burn down when they appear, but I have a hard time with policies pushed in a "zero tolerance" fashion.
My main criticism of GTD is that it's a bottom up approach. It proposes that if you get enough things done, your purpose will emerge. But frequently you make progress in the wrong direction. E.g. for me it was a year trying to set up a coffee stand or starting a blog. There was progress and it felt really important at the time but wasn't.

When it's usually the opposite. Once you have a purpose, you will know the right things to do.

And sometimes you have to let go. There's a book, The Perfect Mess (Freedman, Abrahamson), which proposes that mess is more efficient than order.

Another approach is several lists based on your life priorities. I'd recommend the book The 1 Thing (G. Keller), which can combo very well with GTD or even without it.
back of TVs get pretty hot. though it could be an effective death trap. Imagine a girl, life size, with a heavenly voice beckoning you to go inside. Mesmerized by her mermaid like appearance, you can't help but step inside, the door locks, and then ...
a little off topic. has anybody tried using C# as a nicer C ? I tried using D(betterC) a while ago but I hit some compiler bugs that was annoying. I also tried Zig but compilation times is not preferable. I don't want anything better than C I just want nicer C and without header files and compiler bugs.
I learned to 3D model with MilkShape3D, which was popular for making quake and halflife characters back in the day. I have bounced off blender a few times, I just can't grok the UI/workflow.
The key to finding people is to go meet people. This doesn't even mean changing your lifestyle but simply getting yourself out there. One friend of mine met his future wife at a Scala conference. Another did so at an anime meetup. Another in a local very geeky artists group (twice actually for him). Another in a Japanese class. If your issue is not knowing how to interact socially then go read books like "How to Win Friends & Influence People" and watch how other people interact socially. I knew one guy who did an amazing roast of someone during an event not due to natural talent for humor but due to sheer relentless study of that area.
>gave me a heuristic for thinking about long-tails and uncertain events

If it's possible to summarize and share the heuristic in this forum format, I request you to please do. Am always learning from Taleb's books and ideas.
You might enjoy Dediu's thoughts on this stuff. I agree with him that we need to discuss automobiles and roads at the same time. I for one do not accept our current roads as a given. Changes will be required for self-driving, micromobility, etc.
Thanks, this is great — and it claims experimental support for SQLite which is where I want it the most.
Have you heard of TLA+? If not, I suggest checking it out.

It's kinda made to handle investigating and preventing such rare race conditions.
I respect your “toughen up” attitude, but this is not the place for it. You don’t know any of us.
You say that, but my wife had to pay a cancellation fee to them despite the fact she was moving in with another Comcast customer.

I will never willingly use Comcast (and they don't care, because monopoly).
It's a potential competitor to eBPF/C/etc. on CPUs, NPUs, and Smart NICs.

It's nice that the same P4 program can potentially be compiled for high-speed ASICs, NPUs, Smart NICs and CPUs.

I think P4 could potentially have been developed as a subset of C, and that might have been a good thing? On the other hand, having customized language features for header parsing, state machines, etc. can be convenient for both language users and compiler writers who are targeting switching ASICs. It may also make formal analysis more convenient.
Didn't get my wife out of paying an early termination fee with Comcast.
"how can we find ways to make our society even less energy efficient for no benefit to any quality of life except making some company some money. You know, like usual, but let's make it even more on the nose."
The phrasing "believe in science" makes me cringe honestly. The whole antivaxxers stereotype of provaxxers is that they blindly trust authorities and institutions that proclaim themselves to be scientific while not doing any legwork themselves and think that they're scientific when they're effectively operating off faith in institutions and people with questionable credibility and integrity and conflicts of interest. I have seen no shortage of antivaxxers with quite a bit of brainpower especially recently.

I "believe" that the majority of uncorrelated data and analysis from different areas and hospitals and laboratories and morgues and universities and contact tracers and clinical data and so on that have demonstrated a grave risk from COVID, the efficacy of the vaccine, and the risk of the vaccine being outweighed by the risk of COVID. I recognize some science does support the anti-vax point of view but I do not believe it sufficiently makes the case to support their point of view, and that the analysis and data gathering I've seen so far from that camp has been flawed.
Seriously. The reason we're annoyed at them asking us is because it's none of their business.

Ask me a stupid question, get a stupid answer.
800-273-8255 is the number for the national suicide prevention hotline. Keep that number handy and use it if you need it...because:

Life is surprising. You have no idea what you will be doing in 5 years, and there is every chance that you will find currently unimaginable happiness. Finding out what form that happiness takes is the adventure. It might be travel, it might be love, it might be proving the Jacobson's conjecture. Find out!
Doesn't it depends on what you're doing?

I can't remember with Galaxy S2 16GB, Galaxy S3 32GB, Galaxy S4 64GB, Lumia 1520 64GB? iPhone 7 Plus 128GB, OnePlus6 256GB

Deleting apps or anything else to get more free space on my phone's.

I don't have a main browser, I always used Edge, Firefox, Chrome and Samsung browser or Internet.

All the Facebook apps with Instagram.
Always trying to get the biggest app and load my maps from Google drive for Offline navigation too.

Double or triple photos

And still didn't run out of storage.
Yes, and it can update the prices for different customers flying in from India or the USA.
Gaming can have positive and negative effects.

On the positive side, it can sometimes provide people with a needed social outlet, at least if it's an online social game.

It can also sometimes stimulate a mind that's depressed and lethargic, giving it a much needed jump-start so to speak which carries over into other productive tasks.

Conversely, it can get you addicted to and dependent on quick and easy dopamine hits, killing your ability to focus for extended durations needed for any kind of productive work. It can also cause mental fatigue that makes committing to or completing non-trivial tasks difficult or impossible.

Gamers have to be aware of both effects, and honest with themselves about which are occurring, and willing to change their behavior if they observe the negative ones.

And I /second reading and traveling as better uses of time and money.
A few ideas:

1) Set a realistic goal. Having a purpose helps maintain your focus from drifting into negative thoughts.

2) Exercise. The mind and body are connected. If you’re having trouble changing your mind, try changing your body and diet and sometimes your mind will follow.

3) Speak to a therapist. Many are free or discounted for certain income brackets and can help you work through deeper issues like the ones you’re dealing with.

4) Meditate. Spending silent time with yourself focusing on letting your thoughts come and go might help illuminate what you want out of life or how to get unstuck.

5) Psychedelics. Some organizations like maps.org offer MDMA-assisted therapy that’s shown highly promising results. Other substances like Ketamine, Psilocybin and Ayahuasca when taken in a group or therapeutic setting can help to physically rewire parts of the brain or illuminate subconscious thoughts and patterns.

6) Try authentic relating. There are lots of groups and events that teach how to relate to yourself and others in a way that creates deeper connections. If you’re feeling isolated or disconnected it gives you a procedure for fixing that.

Life is not meant to be devoid of suffering or challenges. I hope you can find a way to move through the tough times with greater ease. And thank you for writing this post, you are not alone in these feelings. You get one life and I hope you’re able to have all the experiences you desire. There’s a huge world out there that you haven’t explored that almost certainly will have some impact on your view on life and the quality of your experience. Thank you again for putting enough value in this community to seek out our collective opinions.
Nice insight!

I have to imagine there is a bit of a micro-emotion when you go from seeing the bright, shiny, fully stocked screen to the (potentially) mostly empty shelves behind it. I can imagine it wouldn't halt the purchase or anything, but even picturing it in my head, I can feel myself getting crestfallen at the empty shelves inside.
> I've seen slow compiling code with hundreds of identically named functions.

I sometimes think I've seen everything programmers do, and then something like this pops up.

> You can make your C++ code compile fast by simply not using slow paths through the compiler.

D is fast to compile because it sidesteps or redesigns features that make for slow compilation.
Call it what you want, I just called it future because it's already reality for some, clearly.

I don't know about you, but for me the amount of ads I see decreased compared to some points in the past. I don't watch TV, I listen to music using a streaming service with a paid subscription, I actively look for interesting stuff to buy, but not because I've seen an ad. Probably because I haven't seen any recently, because I block them.

People buy some stuff on Amazon not because they were advertised a particular brand, but probably because they needed something and searched for it, compared between options, you know. This is our present. Ads on coolers in supermarkets might be just a swan song of a dying way of selling products. Is Amazon less scary that this though? Really?
If you wouldn't mind my asking how does someone get in contact with a publisher to write a book? Not to sound condescending, but if someone with mental health issues can get a good deal, what makes this industry difficult for most others to break into?
Also the part where the toaster version is outdated and it won't start toasting before it's up to date.
Is that time including reading the terms or without?
We have minimum wage, but I’m not working for anyone else. I am partnering with a small startup team, writing software for nonprofits.

It has always been my dream to work for free.

I am fairly good at what I do; largely because I love doing it. I consider it a craft, not just a vocation.

If no one is interested in paying me for my work, I’ll do it anyway; except on my terms; and that makes all the difference.

In fact, I love doing it so much, I don’t really want to go back to working for others.

It’s kind of too bad. I would have been happy to work for a lot less than most, as my retirement was assured some time ago, but that’s all water under the bridge.
There are two commonly-cited ideas: enzymes and anti-methanogenic compounds. I think it works too fast for enzymes to be the full story.

From https://journals.plos.org/plosone/article?id=10.1371/journal...

>Some red seaweeds are anti-methanogenic, particularly the genus Asparagopsis, due to their capacity to synthesize and encapsulate halogenated CH4 analogues, such as bromoform and dibromochloromethane

It cites studies that suggest the mechanism that's so effective in cattle, and presumably the same in humans, is that the seaweed contains a good combination of compounds which inhibit methane production in anaerobic bacteria in the gut.
A piano, if not cared for. Is literally just a liability after a while. Most people have to pay to get them taken away. I wouldn’t consider this an indicator of the art dying. Cars go to junk yards too, but cars aren’t dying.
Step 1. Hit the gym. Attitude is everything.

Step 2. Hire someone (preferably a young girl who also uses tinder) to take pictures of you and give you fashion advice. I ended up hiring an actual fashion school graduate :)

Step 3. Make your job fully remote and travel (easy for programmers like us). Learn a new language.

Do these and youre in top 5 percentile easily. Good luck!
I don't think SolveSpace is in that niche at all, it's for parametric design, like FreeCAD.
I think honesty matters more than competence.

If you are competent to do 80% of the job but there is trust then you get can get help for the last 20% from the team.

That’s the power of trust.

If I don’t trust you then your competence is a weapon you could use against me.
Open source cache as RAM with Intel Bootguard
Is your data's integrity worth tens of dollars?
The problem is that CAS loops in locking scenarios aren't an option if you're subject to preemption. Yes, true lock-free datastructures are allowed, but for many there are situations where you could practically encounter live locks (i.e., they aren't just a theoretical possibility for the access algorithm).

Atomic increment is still fairly cheap/efficient and resolves many cases where you'd risk live lock by being wait-free in some aspects.
I agree, elaborated in a comment in this tree. Doesn't mean that it's not going to happen though, for a while at least, in some places.
IIRC Movie Next Gen (available on netflix) creator's– Tangent Animation used blender extensively

source : https://lesterbanks.com/2018/09/rigging-next-gen-feature-fil...
I was some place similar at 22. I did not socialize a lot, introverted, very few romantic relationships, very low self esteem (outside tech), depressed.

The Dotcom bubble exploded and there weren't any jobs. I still had a year of university to complete and felt burnt out.

I had a bit of money aside, and bought a plane ticket to Europe. I knew nothing of the world. Backpacked 3 months, stayed in youth hostels, for lost a lot, learning as I went. Completely changed my life.

In 2010, after a brutal separation, went six weeks in the middle East. Hitchhiked in Syria (pre-war), slept in the desert. Came back home, quit my job, went freelance, and got into new adventures.

Moral of the story, I guess, is that we are lucky to have skills very much in demand. Take risks, go have fun, there will be work when you get back and you'll land on your feet.

Alternatively, of you don't like gyms, try an indoor rock climbing class. Lots of geeks, but also lots of other people, and no pressure to perform or look good.
Let me see if I can sum this up...

Functor = map

Monad = flatMap

Did I understand the article correctly?

edit: this is an honest question. I way I read his explanation of Functor is that it's a function that implements map (list as input -> list as output).

His explanation of Monad said that its an input of List, where each item returns it's own List, then the function returns a flat List of all the results.
> Maybe it's a bug in our programming, who knows.

I think so. When things are really bad, getting even a little worse can be utterly catastrophic; making your problems loom larger when you're in a mess is probably an adaptive heuristic that forces people in bad but recoverable situations to behave very conservatively and maximize survival odds; however, in the extreme (e.g., chronic loneliness), that heuristic winds up compounding the problem by inhibiting the only kind of behavior that can rescue the situation, and yet the heuristic survives because it's adaptive in less extreme circumstances.

Beware the psychology of edge cases.
Stovetops haven't been a thing in most homes in over a decade. Everyone either heats up frozen meals or "cooks" separated ingredients in a special MealWave oven. True chefs are underrated for some reason that I still don't fully understand.

Luckily the world is burning, so many people just cook on the sidewalks. The smart cooks learned that the solar panels get pretty damn hot, so they've been hijacking the roofs. Electricity prices now vary with meal timings (as well as everything else).
Yeap that's what this civilization rewards the most
A two to four year support life for hardware seems ridiculously low. This reflects very poorly on WD, even if the exploit wasn’t discovered until the hardware was six to eight years old.