skysight-inc/HackerNews huggingface dataset:
> A non-blocking write should just copy the data to the socket buffer, definitely not taking milliseconds.

That's the theory, right? It could be I measured something wrong, but sometimes dozens of ms is what I got, and I concluded that non-blocking I/O avoids indeterminate blocking (such as reading from a TCP socket until the sender sent N bytes) but does it completely avoid taking in-kernel locks etc? Probably not.

I didn't find any other measurements on the internet, please point me to them if you find them.

Thinking back again, another explanation could be false sharing effects that I didn't know well at the time.

> Allocate buffers in separate threads - ok, that's the crux of it - the memory is shared amongst the threads within a process, so the allocator has to be non-blocking as well or the large allocation would prevent allocations in other threads.

I've written a SRSW lock-free ringbuffer for example. The ringbuffer memory is allocated at startup. The cost to allocate from this ringbuffer is very little. It's probably not super important, but the ringbuffer even caches the read or write pointer from the other thread, so it only needs a cache line transfer when the cached value is not sufficient to accomodate the read or write.

This is way outside my experience, but I think it should be possible to do some similar stuff with multiple readers and/or writers? I think you should still be able to allocate from a ringbuffer without live-locking (unless the buffer is full of course, in which case events are dropped anyway).

> Next release memory to the OS (or unmapping memory mapped files) - mumnmap requires TLB flush for all cores assigned to the process.

I think most programs do only "static" allocation at program startup. There's no OS interaction for memory management from then on.

> Normally GCs trigger only at 'safe points' and unless they need to allocate more memory (should never be the case for a real-time application), GCs should have no OS interaction.

Ok, if the GC is configured to never return memory to the OS, it makes sense that probably the GC in an event handling system won't need to get more memory from the OS, or only rarely, once it is "warm".

Still, GCs are generic systems that have to be less efficient than specialized systems. And what are 'safe points'? I'd rather decide myself. I think a GC trace of <1ms, as some new GC allegedly do (is this widely acknowledged? I would assume it depends a lot on the allocation patterns / granularity etc), could be enough, but I'd rather control this myself (for the somewhat real-time app that I've been working on, I need << 10ms latency).
What robots are you using? Do you have a post or two about this?
https://archive.ph/4mO31
This Facepay scheme humorously brings to mind this biometric payment spoof of paying by ass for the Money 2020 conference held in Vegas in 2014:

https://www.youtube.com/watch?v=U2brZQocmMc
Yup. As we all know, the modern day GOP voters famously support Lincoln and the actions of the Union Army.
At its core, Kubernetes is a controller manager. It's true that most Kubernetes systems include a lot of the Hashicorp equivalents but you could in theory remove the controllers and associated CRDs. Kubernetes has gradually moved to what I think is a relatively sensible set of defaults which you can get in different flavors (k0s, k3s, microkube, kubespray, etc.)

The comment about development and packaging tools can indeed present a problem. I tend to favor Helm for applications that need to be deployed more than once and Kustomize to differentiate between environments but I've definitely seen what I would consider horror stories. Even if you add a bit of GitOps, it's not too hard to understand. The horror stories seem to occur when teams try to map their previous workflows directly to k8s. Many times the worst k8s development workflows are created to enable teams that had broken workflows without k8s.
Have you thought this through at all? There are so many instances of local governments paying single artists for their art that isn't a problem. Have you walked around a city and enjoyed murals or art installations? Do you see those and your hair stands up on your neck worrying about the bidding process for those pieces? Why do you not want people to have nice things.
>Agriculture takes space

We won't be lacking space if we eat less meat (like our ancestor). We've only started eating so (too!) much meat quite recently and that's what taking all the space. Switching to mostly plant-based diet would resolve most issues.

>It might be possible to create a less densely populated city-like structure which works like this, the question is whether it is worth the effort.

No need to reduce density. Even big cities (like Paris) can procure most of its food from local farms. We just need to focus on local types of food (less exotic but not necessarily less diverse: for instance I get far more diverse vegetable from my farm than most Parisians).

Going vertical is unneeded and would require far more efforts than making farming more reasonable.
The only factor that would make streaming more expensive is that people are willing to pay the price.

I'm not. That was my point.
Launch HN: Inflow (YC S21) – Self-help app for people with ADHD
Hey! We’re Seb, Levi, and George, co-founders of Inflow. We have built a self-help app for adults and adolescents to better manage ADHD.

Accessing treatment for ADHD is expensive, slow, and can be difficult for ADHD people to organize due to struggles with executive functioning. Inflow makes accessing many of the benefits of in-person ADHD therapy significantly more accessible and affordable.

Based on the principles of cognitive behavioral therapy, our app enables people to better understand ADHD and how it impacts them. It also gives people practical tools and helps them to develop the skills needed to better manage ADHD. This is combined with a welcoming community to share experiences and learnings.

Half of our team is neurodiverse and our co-founder Dr George Sachs, as well as having ADHD, has over 10 years of experience treating people with ADHD through CBT. Consequently, we are aware of the impact of ADHD on day-to-day life and how underserved the ADHD community has been in terms of accessible and affordable support. Levi also previously worked for Babylon Health to develop products for chronic condition management and saw how technology could enable access to care.

The core of the app is a CBT-based program that provides short, daily exercises as well as tools to develop helpful habits and skills. The program is broken down into different modules each focusing on specific areas ADHDers may find challenging such as time management, organization and impulsivity. Our community lets people connect with and learn from a range of other diverse individuals with ADHD in a safe and stigma-free environment. We offer daily live events with specialist ADHD psychologists and coaches including topic deep dives, Q&A, coworking sessions and group meditations.

Other features include prioritization tools, which let you set daily goals to prioritize your most important tasks, and guided journaling—prompts and triggers to help you better understand yourself and your behaviors. We’re just getting started and have a range of exciting new features in the works including routine building tools, accountability check-ins with a real coach, progress tracking, group-based challenges, and more.

The average cost of an in-person ADHD CBT session in the US is $200-300 ($10k-$16k/year). This is compared to Inflow’s cost of $95.99/year. Of course, no app is a direct replacement for in-person therapy but it offers a far more accessible and cost effective solution which allows many more people to get the help that they need.

You can download our app here: https://inflow.app.link/0FXmBEAWjkb. We offer a one-week free trial followed by a monthly or yearly subscription.

If you’ve been trying to or previously had difficulty accessing treatment for ADHD we’d love to learn about your experiences. If you do try the app, please let us know any improvements or additional features you’d like to have. Thank you!
But you don't confuse your automatic transmission for something which has another function -- perhaps your ignition.
That's easy, instead of profiling user just select ads based on website content.
Yes, same as on Windows.
The above added costs as well as the challenge of getting it to refineries. Lack of pipeline capacity to the coast (particularly Texas) is a big factor too.
Then you might be pleased to know that OpenBSD also releases artwork and a song for every release!
If you're unable to understand LattleLazy's point it's probably best to refrain from responding to them until you do.
Unattended algorithms shouldn't have the capability to shut down news channels. What a horrible machine.

Ironically, Google itself [0] is a funding source of this media nonprofit.

[0] https://eurasianet.org/about

Also, here's an update on the OP:

>"Good news: @TeamYouTube has provisionally restored our account pending further review. We’re not in the clear yet. But thanks to our supporters for raising awareness about YouTube’s complicity in Turkmenistan’s efforts to stifle free speech"

https://twitter.com/eurasianet/status/1448687544300802050
Does it happen even if Google isn't the default search engine? If yes, where do I disable it?

Depending on your answer, this might be the last straw in my relationship with FF.
Yeah that's a pretty common experience actually. There are a lot of memes on tiktok and twitter joking about "gaining consciousness" as a child. I think a lot of people remember moments as young children where they first truly felt like real separate beings.
The problem in your stating (and many others) is that the notion of consciousness has self-awareness is baked into it. It's odd to think that the ability to experience qualia magically occurs for sufficiently complex systems, but it's not odd to think that self-awareness just arises once a system that can experience qualia reaches a sufficient complexity level. Unfortunately, people latch on to the reasonableness of the latter, and ignore the ridiculousness of the former.
Obviously: in the insect that wriggles its legs in pain.

Earlier, in the cell that avoids the chemical.
I wish there was a way to let me make POST requests on behalf of the user without dealing with CORS. Of course the request wouldn't include any user cookies etc to avoid the security issues.

I just want to easily let my users make API requests to an API whose CORS settings don't allow it. Instead I have to tell my users to give me their API key so I can make the request from my server. Or I'd have to tell them to run a program that makes the requests.

Both options suck for non-technical users.
>the idea behind self sufficiency is to not starve after the farmers in your coop decide to stop selling their food because historic flooding and heatwaves mean they can barely feed their own families.

If a professional farmer (with the best knowledge and equipment but also the full support of the coop members) can't feed us, how do you expect to better resist to floods and heatwaves on your own? As far as I know, small groups with good ties have always better fared than single families.
> And I think that's one of the biggest issues with how people use Kubernetes these days (another candidate being insisting on drive-by deploying a cluster from scratch instead of deferring to cloud providers or a dedicated platform team that can plan for long-term maintenance).

I don't really understand how you can say this and then...

> Kubernetes thrives in multi-tenant environments: you get huge resource savings and vastly simplified operations. Everyone in your organization gets access to all clusters, and they can just as easily deploy experimental best effort jobs or their development environment as they can deploy and/or inspect production jobs. Well set up quotas and priority classes mean that production jobs never run out of resources, while less important stuff (batch jobs, CI, someone's pet experiment) can continue to run on a best effort basis, just keeps getting preempted when production wants more resources.

... advocate for this. All what you are describing, which is basically what every hardcore k8s user/evangelist will tell you to do, it's reimplementing many, if not all, the features a Cloud provider is already giving you in their own resources. But you are taking the ownership and responsibility for this on your local platform/infra team. What if you screw something with CoreDNS? what if you break some RBAC roles used cluster-wide, while trying a change in the beta environment? I'm pretty sure there are (or will be) specific k8s tools to manage this but still, you are adding complexity and basically running another cloud provider inside a cloud provider for the sake of binpacking. For certain sizes of companies it might be worth the effort, but it is for sure not a silver bullet and probably applies to much less companies that many evangelists try to sell.
Thanks for sharing... did you get to the point where there was just too much data to handle or does it pretty much handle anything that storable in a file?
> This is the Chinese Room problem restated.

Which is non-physical because the storage complexity of a lookup table containing all possible answers to all possible inputs grows exponentially. It wouldn't fit in the universe.

https://www.scottaaronson.com/papers/philos.pdf
That's a question for the underlying allocator, surely?

(Quite often the answer is "it isn't")
Gambit has a VM and a GC, and is still AOT-compiled to C. (The Gambit VM is an intermediate representation of Scheme code which is then compiled down to C code.)
$3M/y now with ~ 1/3 being investments. I don't know how much FAANG avg is but if it's $300k/y that's 10x
Former Malta Government Official Becomes Whistleblower–In NFT Form
The case for minting a $1tn coin to deal with America’s debt ceiling
How would we see black dwarves?
A bit over 10 yesterday. Hopefully 6 today. Boss never asks about my time but I average probably 8.5-9 hours in office a day, so around 42-45 weekly.
What you are seeking is called NixOS w/consul configured.
Ask HN: 0/1 Decision variables vs. bounded integers for selection problem
I'm asking here because I know there are some smart optimization experts on HN. I tried Reddit, but no joy.

In my production planning problem, I want to select around 1000 items from a set of 15000 items to process in a given day. There are multiple constraints to satisfy and new items come in every day. It’s very much like a multi-dimensional knapsack problem with some extra constraints.

Each item has its own identifier and they are truly unique items. But they can be grouped for practical purposes so that (let’s say) 10 items could be represented by a single value and set of multi-dimensional costs.

I’d like to know whether it’s generally better for a MIP solver to represent selection of items by ten 0/1 decision variables or one integer decision variable that must be < 11 for ten items in a group. I know if I use the ten variables I’d also need to do something to break symmetry of solutions – like maybe add a term to minimize items IDs in the objective function.

I’d appreciate any thoughts or pointers to good resources on this. Thanks.
> When you properly treat bivectors as bivectors instead of cramming both bivectors and vectors down into one type of object, all of the trickiness about sign flips under reflection etc. go away.

Okay, so next question: if you formulate the laws of physics in terms of geometric algebra, does CP violation still exist?
>There are a few outs for this in the event of legal challanges. It's likely this goes against the Charter, and it would be absurd for a minority government to invoke the "notwithstanding clause," to force it through, which is a government veto on everything else in the charter.

Some (atlantic)judges have already ruled on how the charter reacts to health pandemics. Not-withstanding clause is not needed.

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

If Canadians had a problem with this. They wouldn't have voted Liberal, Con, or NDP. The Peoples party provided an alternative option and they didnt gain a single seat.
Wikipedia: Bauhaus
Nice resource. It would be good to have cheat-sheets designed specifically for JS and Python developers.
Can you elaborate on what you found laughable? I thought the article made valid points.
I don't see why two people experiencing red differently causes a problem for consciousness. Can't we both be conscious even with very different qualia?
I don’t know. He doesn’t seem to own 5% of the company either. He isn’t listed any where.
Maybe 1k for the index and 2k for a reasonably high-end desktop, so 3k or 10x the price of a quest. Obviously that's not really a fair comparison for various reasons, though.
You think your computer isn't conscious? How do you know? Just because it's not demonstrating free will? How many layers of error correction are built into computers to stifle the "randomness" of electronic equipment? Do you think you could still exercise free will locked in a padded room and strapped to a bed with a straightjacket?
I thought that they downloaded the list and checked locally (ref https://feeding.cloud.geek.nz/posts/how-safe-browsing-works-...). Has this been changed recently?
> kubectl apply -f ~/git/infra/secretproject/prod.{json,yaml}
>
> One JSON/YAML file too uwieldy? Generate it using jsonnet/CUE/dhall/your favourite programming language. Or just talk directly to the Kubernetes API. You don't have to use Helm - in fact, you probably shouldn't be using Helm (as the whole idea of text templating YAML is... thoroughly ignorant in understanding what Kubernetes actually is).

Agreed 99%, but there is one useful thing that Helm provides over Kubectl+structured templating (Nix/dhall/whatever): pruning objects that are no longer defined in your manifest.

However, that's solvable without taking on all of Helm's complexity. For example, Thruster[0] (disclaimer: an old prototype of mine) provides a pruning variant of kubectl apply.

[0]: https://gitlab.com/teozkr/thruster
That's a very odd and factually wrong generalisation.

I don't use helm at all, and I manage a large scale platform built on Kubernetes. Everything is either declared directly in YAMLs and deployed with `kubectl apply -f <YAMLs or directory containing them>`, or rendered using Kustomize and, again, deployed using `kubectl apply -f -`.

Kustomize can be rough around the edges but it's predictable and I can easily render the YAMLs locally for troubleshooting and investigating.
I wish sprawl was addressed in the US. New housing is definitely needed but it seems like the cheapest way to do it is always expanding ever outward in car-dependent suburbs. We need to price externalities of car use yesterday.
If there were bright things behind them

The universe is young, a lot of stuff hasn't happened yet. It wouldn't be surprising if we are about the earliest life of this sort that could exist.
Vivaldi is my default chromium based browser right now. Firefox still be the default browser, however there are many site offering extra features for Chrome based browser. For example the video filter in Google meet doesn't work on Firefox.

The amount of customization is no joke, i love this feeling of being truly power user.
Commodore 64 enthusiasts don't go around calling it a 'luxury' product.
Did GitHub ever complain about Sourceforge? Assuming not, that’s the big difference.
I’ve never understood this either. There is much to not like about the guy and much to mock him for, but Trumps comments here have plenty of science behind them.

It’s stuff like this that earns the media a reputation for being elitist and cruel.
Pieter, why do you use the same font across all of your sites?
Vivaldi adds a new sponsor bookmark around every six months.
Probably a dumb question but while not seal it before shipping?
Weirdly, it's actual black magic - the regular Marathons have the lowest rolling resistance of any touring tyre[0](lower than Schwalbe's own Marathon Racer lol), despite being very good at puncture proofing and not being completely slick. No idea how Schwalbe has actually done it.

[0] https://www.bicyclerollingresistance.com/tour-reviews/schwal...
The legal question was over FDA jurisdiction , not whether the treatment was effective.

https://www.raps.org/news-and-articles/news-articles/2021/7/...
Why "used to have"? htmlfontify is built-in, htmlize is available from melpa (and used by scpaste, to upload it at once), org-mode has HTML export and code blocks with highlighting, and probably there's more.
The reason I’m asking is that Graal also has an LLVM frontend, meaning that C libs should mostly work just fine within the VM (with the added benefit of possibly inlining them, further increasing performance)
> I wish there was a way to let me make POST requests on behalf of the user without dealing with CORS. Of course the request wouldn't include any user cookies etc to avoid the security issues.

You can! And it can include credentials!

You can do this with a basic <form> element, so fetch() lets you do the same. What you can't do is read the response.

Demo: https://jakearchibald.com/2021/cors/playground/?prefillForm=...
Clojure adds [], {} and #{} as additional syntax for arrays, hashmaps and sets.
> There are only two choices, either something always existed or something came from nothing.

Another possibility is that time is a property of our universe, but not a property of the larger reality from which it originated. That reality may have properties utterly unfathomable to human minds, and no amount of speculation will ever move us one iota closer to a hint of what it is. In that case it's neither "always existed" nor "something came from nothing". Such statements don't apply. "Always", "something", "nothing"... these might be just parochial terms that are deep and important here, but have no context in that larger reality.
Government actors are responsible for acquiring material at normative costs. Their failure to do so is their own.
Bitcoin: Who owns it, who mines it, who’s breaking the law
What you have achieved is amazing Pieter. Right place, right time, right execution.

There is some irony in @patio11, who I think has/had some of the best writing/talking on the subject of SaaS. He has helped a LOT of other people in their SaaS (and even salaried careers), but was never successful in his own SaaS business.
Flexible workload support doesn't sound great to me.

Good tools have very specific use-cases so as soon as you start talking about IIS on windows, VMs, containers etc. it just sounds like lots of the dependencies you are trying to remove in a scalable system.

Containers are relatively restrictive but they also enforce good discipline and isolation of problems which is a good idea imho. I would not want to continue to support our Windows servers running IIS, just too much to sort out.
Thanks for being so open, its helpful and outright cool to see as someone just starting a bootstrapped endeavor. Big +1 to your P.S.2. note!
There is; we just call the position "Chair of the Federal Reserve."
If competitive salary wasn't a concern in life, I would make my living casually playing video games. And specifically for the exact amount of hours that I would like to allocate toward it every day (because hours are part of the competitiveness of salary, and 40 hour weeks aren't a permanently fixed standard).
Looking forward to Nomad Packs, they where announced with their 1.2 beta[0]. I've really been missing something like k8s-at-home[1] for homelab Nomad setups. Don't know if they will become as versatile as Helm charts since Nomad is less of an abstraction than Kubernetes.

[0] https://www.hashicorp.com/blog/announcing-hashicorp-nomad-1-...

[1] https://github.com/k8s-at-home/charts
This is quite possibly the most charitable take I've ever seen towards the insurace industry.