skysight-inc/HackerNews huggingface dataset:
The linuxCNC project[1] is a distribution based on the real time kernel extensions for debian for real time cnc machine control. It used to be possible to get few-us guaranteed latency, but with modern multicore machines you are stuck with about 100us due to the way the caching works. Still plenty fast enough for audio!

[1] http://linuxcnc.org/
> But if you want to save the audio, how else are you going to save it without appending to some array (for which you need to malloc)?

I don't know why everybody is making this so hard: You use a lock-free statically allocated circular buffer for all communication to or from a real-time audio thread. Period. Full stop. The audio thread wins under all contention scenarios. The audio thread ONLY ships data from the circular buffer to the hardware system or vice versa--IT DOES NO OTHER TASK. Everything else talks to the circular buffers.

Nothing else works.

The big questions are even if you do that--1) how do you keep the circular buffer from starving even with your other threads working to fill the circular buffer? and 2) if the circular buffer starves, what do you do?
Thank you though, what you've written here is very useful -- you're describing things I'm immediately recognising in what I'm doing. As I say, it's just a small toy (and I think one that would definitely be easier in a different language, but anyway...). At the minute I'm actually at the point where I'm preallocating and persisting a set of internal objects, and at a very very small scale it's ok, but each exploration in structure starts to become manageable pretty quickly.
I agree that JS and Java are very different; that was my point.

I disagree about Java and C++. If I have a C++ file that uses RAII or references, for example, it won’t translate to Java easily. And those aren’t unusual, they’re both common techniques.
Carefully-worded question: If OP is describing a single monolithic music production application, how does "+ Jack audio server" make the system more appropriate for meeting soft-realtime scheduling deadlines?
It’s for privacy. That’s all you need to know.
For anyone looking to get involved but unsure how or where, try this too: http://worrydream.com/ClimateChange/. It's been posted before, but is a great starting point.
It is primarily bad grammar

The subset of patrons that are being discussed are overwhelmingly women that have been through multiple rounds of selection by the time they got there
I don't know how much truth there is to it, but people I've known that worked in metal health institutions have complained that they're systemically being shut down with no where for the patients to go. They say that often patients end up being handled by police, EMTs, and medical workers. None of which are particularly expert in dealing with mental health issues.
I don't think the goal of an open-source project is to push it to business.
For those of us less well-versed in the Bible:

“The thing that hath been, it is that which shall be; and that which is done is that which shall be done: and there is no new thing under the sun.”
Thanks for the hints. For one product that i had worked on, we had something like the above for runtime logging/debugging. A shared memory area (i.e. address range in Linux process space where shared libraries are loaded) at a fixed address was reserved via linker scripts with each process having its ring buffer at its own fixed offset. A separate reader process interacted with the CLI to provide comprehensive access to this data. It was all robust and worked quite well.

Unfortunately, these sorts of practical techniques are not known to many programmers and it would be nice if somebody (eg. you :-) were to list it on a website/book with some sample code for everybody's benefit.
There was a recent /r/linux thread regarding this.(https://reddit.com/comments/d6w03y) Lennart responds to some questions people had.
Show HN: Kähler VC.X Newsletters - Predicting the Future of VC Backed Companies
Show HN: Wololo CI/CD and release management for the gaming industry
This is a great release, but the thing I'd really like the swift developers to focus on is performance. It seems surprising given how similar swift is to rust, but I've heard some reports of programs spending 60% of their time updating reference counts. I'm not sure the best way to fix that - do programmers need a way to opt out of swift's default memory model? Is there a way to elide some of those checks in the optimizer? But it seems like for small objects something like that would make a big difference in performance.

This probably doesn't matter much when making iOS apps, but it would make swift much more useful in other domains (like as a web server).
The problem with locks on a non real time os is that the OS may decide to interrupt your thread while it's holding the lock. No matter how short that is. I do embedded I've had similar things happen when the 'lock' is held for just a few instructions.

Tip: If you suspect crap like this, adding spin delays will make it happen often enough to debug.
Ask HN: Why don’t we donate directly to researchers?
Donating to research typically has a ton of overhead... such that only a percentage of what we donate goes to the scientists.

Why? Surely we can donate directly to researchers?

Anyone know why?

Had this idea to build a website to let you do this, but was curious if anyone knows why this doesn’t exist already.
It's specifically around default values.

If you use any language long enough you will think, hey it would be nice to have X. Alejandro (in high-school at the time) thought exactly that and implemented it himself - https://github.com/apple/swift-evolution/blob/master/proposa...

You could almost argue the real feature here is how open the community is to additions like this, and there's no need to wait for people at Apple to do it.
List of notable security research papers (2018)
One of the larger iPads might work for you.

I've been using a 9" Android tablet, which has a pretty good form factor, but is abysmal in virtually all other regards. Extensive notes:

https://ello.co/dredmorbius/post/lqgtwy_rhsfbdh5cdxb1rq

Having an integrable folio-style keyboard is a hard requirement, and Apple seem to be filling this niche, though their manufacturer (Logitech) is the same company I've had an horrible experience with myself.

at 9", almost all PDF-format texts are readable, though good bookreading software is hard to come by. I've mostly settled on PocketBook, which is reasonably inobtrusive for reading, but which makes large-scale document management (10k+ items) impossible. The metadata fields, as an example, lack an author field, and updating content metadata is cumbersome to the point of being all but impossible.

I've been hunting for alternatives, but to date, no joy. Apple's devices look superior based on hardware, though I have concerns for the actual usage experience.

https://ello.co/dredmorbius/post/lqgtwy_rhsfbdh5cdxb1rq
ReMarkable does allow emailing content. That's not directly Webable, but you might set up something to collect/publish, if you wanted.
Show HN: A bot that automates human tasks by clicking and typing
I've also done long rail trips in the US and China. Shanghai to Hong Kong and San Francisco to New York. Only did the high speed in China though so I don't know what I missed there.

I guess it will soon be too late, but the fresh dining experience you wanted still exists on the Western half of Amtrak service. From SF to Chicago I was slamming back steak and clams. The meals come with the sleeper car.
Important work, and this seems to be doing a decent job already. Cheers.
One thing about the teaching: some sentences don’t have anything to do with privacy, so there might be a button to train the AI on that.
I see, thanks! I'm going to get a few to play with, I've seen other people recommend that microcontroller too.
Long day, huh?
It’s like what happened in the physical and construction world. If the romans had computers their viaducts wouldn’t still be standing. If Caesar could use a tenth of the material for the same ends when invading Britain he would have. He didn’t so had to massively over engineer.

Hence why a Roman infrastructure is still used in the UK to this day.
I must have missed the official announcement[0], module stability is a very welcome change.

Swift 5.1 enables the creation of binary frameworks that can be shared with others leveraging the language’s added support for module stability.

https://swift.org/blog/swift-5-1-released/
Venus Could Have Supported Life for Billions of Years
Payment systems locking merchant account
I keep reading over and over about merchants having their account frozen and then having a hard time unlocking their assets. This can drag on for months, sometimes a year with money locked.

So why hasn't someone else solved this problem? I won't name any payment companies, there seems to be a few who will freeze an account whenever their is some odd transaction anomaly. It could be a simple spike in sales. It could be when an account goes over some arbitrary monetary level.

Is this enforced on the payment companies by the banking institution, or FBI to prevent money laundering, or the Federal Reserve wanting their TAX or just some bullshit to keep the man down?

Does anyone have an explanation for why payment gateways act like assholes and get away with this?
Raspberry pi for pihole. 2015 MacBook Pro. Sublime text. Costco membership (they cap markup to 10%).
Which is complete bullshit.
Hello HN community we're proud to launch our CI/CD platform focused on the gaming industry if you wanna get early access just ping me or join via our website.

Cheers,
Jean
Exactly. I just don't get the buzz around Swift. To me it's just another awful kitchen sink language. Self just makes it worse.
A noise distribution is easy to simulate.

If you had some chip that took input and gave reproducible output that was impossible to simulate classically, I think you'd actually have something of interest.
On Founder Burnout
All Vipassana courses are taught across the world for free, not just in the specific locales mentioned here. Putting a price on a priceless practice cheapens it, so they only allow old students of Vipassana to donate voluntarily.
Stripe would almost certainly prefer to outsource this for places where they have a small handful of employees, and dealing with one company has a big opportunity cost buried in it that they almost certainly would be willing to pay.
To me this reads a lot like “quantum computer faster than a classical computer at ‘simulating’ itself”. Constructing a physical experiment where it would take a classical computer 10000+ years to simulate the outcome is trivial. I don’t see how this is very different.
Do you think these kinds of results can be achieved through improved schedulers and allocators?
Name one reason a mac is somehow any different than a windows machine running the same software
You're thinking of Dr. Sarah Taber, an ag tech and food safety consultant with lots of past exposure to startups as well. The relevant twitter thread:
https://twitter.com/SarahTaber_bww/status/117189565787294105...
Where in the U.S. people feel they need more education to move up
Not just eavesdrop on the fact, but eavesdrop on the movie itself and watch it right along with you for free.
Given that this provides access to at least 100s of books (at 5MB/book, about a thousand with 8 GB storage), and compared with similar tablet devices (Android or Apple), especially of comparable screen size, it's quite competitive.

The Apple iPad Air runs $500, the base-model iPad is slightly less expensive (and a 10" screen). Larger-format Android devices tend to run around $400-$600.

Given my experience with Android and limitations of iPad options, I'd be willing to pay considerably more for a suitable device, though the ReMarkable may not yet be that.
1) What qualifies the public (even HN readers) to sort out the worthy projects from the charlatans?

2) Under such a site, funding would go to the flashiest and best hyped projects rather than the ones that need it. There would a huge incentive for style over substance, much like Kickstarter.

It doesn't exist because it's obviously a bad idea.
https://twitter.com/SarahTaber_bww/status/117189565787294105...
I'll care what you think of me when you care to get "enough information" to say anything of worth.
Biocities Beyond the Digitial / Vicente Guallart for the Shenzhen Biennale 2019
Thanks for sharing this bit of history trivia! Had no idea about he origin of Icecast or Ogg
I asked this elsewhere but I’ll ask again here: how is this any different from just going outside?
If you like WinForms, take a look at Eto (https://github.com/picoe/Eto)

"This framework can be used to build applications that run across multiple platforms using their native toolkit, with an easy to use API. This will make your applications look and work as a native application on all platforms, using a single UI codebase."
And I was not alive in the 1930's (absolutely the worst decade for major storms). But I know that things have not changes and they are certainly not more sever than the 1930's storms or for that matter the 1700's storms referenced in my families diaries.

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

Those where the two generations that saw the most sever storms. I am sorry but it's going to take a lot more data that the fact that the Keys got hit by a Cat 4 and the Bahamas got hit by a CAT 5 right near the peak of a cycle to convince me that this is somehow irregular when I have seen it every 8-9-10 years of my life on interval. Especially when I absolutely know there is science behind the 9 year cycle and have lived thru it. The article does a disservice because I live in the Keys and I absolutely know for a fact that the exodus is due to affordable housing. I talk to locals every day that are leaving, not a single one has mentioned the storm as a reason other than the fact that affordable housing has gotten even more expensive. The article is false on it's face no if and's or buts about it.
Apparently Epstein also funded Scratch, a programming language for children:

https://jewishbusinessnews.com/2014/09/17/mit-media-lab-trai...

This was in 2014 after his arrest for sex with a minor. WTF was MIT/Media Lab thinking?
Am I on your team? If not, can I be!??
What made Netflix pick FreeBSD over Linux in the first place?
I think the more important factor is those professions consider themselves high status and wouldn’t put up with incompetent-until-proven-otherwise interviews.

Programmers as a group don’t stand up for themselves.
I'm not a big fan of GUI in general but, ooo, this is nice.

Combine with python-fire for great fun, eh?

> Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object.

https://github.com/google/python-fire
> Since Swift optionals are implemented using the Optional enum under the hood, we’re no longer able to perform the above kind of optional pattern matching on any enum that contains either a some or none case — since those will now conflict with the cases that Optional contains.

Wait, so if I wrote my own custom enum with .some and .none cases this will not work correctly? This seems like an overly broad scope; why can't the change have only affected Optional.some and Optional.none?

public extension Sequence where Element: Identifiable {
func keyedByID() -> [Element.ID : Element] {
var dictionary = [Element.ID : Element]()
forEach { dictionary[$0.id] = $0 }
return dictionary
}
}

Perhaps this could use Dictionary(grouping:by:)?
Any screenshots of what it does with stderr?
Eh. I don’t think the Delaware courts would go for it. Ebay vs Newmark is on point.
I think I might have just figured out where Daleks came from... and why they're so angry all the time.
Can you expound on this? In what way were they "far ahead"? Under which circumstances?

I went to NC State, for the record. Am I just "far behind"?
MySQL has supported left/right outer joins for as long as I can remember, and I've been using it continuously since 2003.

MySQL doesn't support full outer join, but it's rarely needed, and you can often get a similar result using a UNION. (Clunky, I'll admit... but I'd say the same thing about Postgres recommending against use of NOT IN, which is a common construct and more readable than an anti-join.)

CTEs were added in MySQL 8.0 (~1.5 years ago).

Agreed on the other points.
Drumhead surface states have to do with the way the Dirac/Weyl cone is cut leaving behind a Fermi surface of said shape. Dirac semimetal is the parent of a Weyl semimetal.
Does it do a good job of recognizing your handwriting?
>> WeWork main competitor is Regus

Not really. Regus is brutally bad. I am not a fan of WeWork specifically but it's vastly superior to Regus' offices, old-school style of lead capture, and terrible dealing with its customers.

I now lease from an independent co-working space to expand on my small business' offices until we can find a larger space at a reasonable price (good luck with that in Seattle), and it's been great. WeWork helped push co-working along. Regus has done absolutely nothing in this regard for decades.
They describe themselves with this line at the top of the page:

The really first community where you can find all you need for your Nokia 8110 4G and other KaiOS devices.
My wishlist is comparable, though I'd also very much like to see document management tools scalable to 1,000s to 10,000s of items (yes, really, and yes, I've well over 5,000 docs on my current tablet, and no, I can't organise them anywhere near as I'd like).

The Web browser is a danger (distraction) but also useful utility.

Someone's web clippings / bookmarks / downloads manager (Pinboard, Pocket, etc.) or equivalent or export manager would be another hugely useful addition.

The option to source content from third-party sites, including Gutenberg, Wikisource, Sci-Hub, and LibGen.

Adding email and messaging is another distraction risk, but with appropriate disturbance controls, possibly within spec.

And, because I find shells hugely useful, some sort of extensive Linux shell (like Termux for Android, or better). A minority want, but a powerful one.
Could you share the link to the post?
There's zero benefit to just writing one byte. I'm having a hard time believing that a compiler capable of such analysis would use it for this purpose.
Where to park your car, according to math
I wrote Flexify. It’s got tons of weird paper-model possibilities like sphericons and curved-fold origami. The whole list is here: http://www.flamingpear.com/flexify-output-modes.html
Much better than many other technical books.
> Some countries have higher IQ populations than others.

Are you saying I'm inherently inferior due to the country my parents were born in?
Sometimes lack of features is a feature.
Reading the slides this seems really interesting. A way to allow you simple copy your home (that may be in an encrypted loop file) to a Pendrive and have all your configuration anywhere seems like a big win. This will make the only stateful thing in my system (my home directory) much easier to backup and move.

Also the death of /etc/shadow and /etc/passwd (state in a directory that should only contain configuration files). And encrypted home on suspend.

Like most systemd things, this should be completely optional. Also like most systemd things, people will complain that this is unnecessary bloat.
Excellent article. Great explanation. Thanks Michael!
> In reality, you just can't make chicken salad out of chicken shit

This is one of the most disgusting things I've seen on this website. Am I "chicken shit" to you?
* Dear writer, can you please show me some writing samples?

* Dear graphic designer, can you please show me your portfolio?

* Dear welder, can you please weld these test coupons?

* Dear actor, can you please audition for the role?

There are plenty of professions where a demonstration of relevant work ability is a normal part of the hiring process.

The problem with many "coding challenges" is that they take a long time to do - basically, are unpaid paid work. Writing samples and artist portfolios are compiled from work the candidate has already done; the closest we have in software is "looking at someone's GitHub" which has its own set of problems. Welding tests and actor's auditions are distinct because they don't take that much of the candidate's time, and quickly demonstrate if they are suitable for the role or not.
Telling people what kind of questions are asked, or what topics are important is very different from telling people the specific questions and answers!
I wonder if we will be able to replicate this work on IBM’s 53-qubit machine that’s about to hop onto the cloud.
Ask HN: What are the most expensive services your company pays for?
For example: AWS, Salesforce, etc.
>> Yeah, but all that would have been fine if he’d acted responsibly

This is what people say when they give the executive branch of the United States unchecked power to unilaterally do things and sidestep the legislative and judicial branches. Presidents don't always do that sort of thing, and neither do CEOs or.... normal people.
To the extent the command-line program returns proper exit codes, or gives other hints via its output/side-effects as to whether it did anything useful, I could see it working up-to-a-point.

Discovering exclusive options, or options that must be specified together, sound like exactly the sorts of things it could deduce, when every invocation with/without certain pairs of options fails.

Perhaps wrapper-utilities like 'Gooey' or some sort of automated-probing could encourage a greater formalization for specifying de-facto command-line APIs. Then, command-line programs might want to offer not just the human-interpretable help texts and docs, but more rigorous usage-specs that could drive automatic wrappers.
A Documenting of My APL Programs
No, I am not claiming either of those things.
We'll never have the luxury of laser-trimmed resistor or matched transistor, an integrated opamp usually outperforms discrete designs, at least for low-power applications. But yeah, it's much fun to build an integrated component from scratch and see how it works.

BTW, NwAvGuy, the audio guru who have vanished, has some interesting criticisms on the dismissal of opamp in the audiophile community. https://nwavguy.blogspot.com/2011/08/op-amps-myths-facts.htm...
People become doctors because they want to become rich. If they wanted to help people they'd become fire fighters or social workers instead.
Or rented from Regus, which is a company that people are just now finding out about. Their offices are absolutely embarrassing.
Yeah I don’t understand why people in this thread aren’t entertaining that possibility. It objectively worked for Facebook, at least in terms of financial return.
Why is this being downvoted? I can see discussion growing out of this comment, and that's a good reason to not downvote.
Business, research, and government markets might have an appeal.

There's a balance between general-purpose devices (Android, iPad), and something that's really geared at managing and creating content. Existing tablets and smartphones are still very much consumption devices, to an extent that's massively off-putting.

(I've used Android devices for a decade, have hated them the entire time, find Apple generally less appealing, though I'm somewhat tempted presently.)

A good, focus-preserving, e-ink, long-battery-life, capable, well-supported device might well find a niche.
And Uber could be profitable and create real value for investors. The problem is that, in that case, Uber isn't a unicorn and isn't worth the billions already thrown into it.
This was super interesting to find out, I always assumed that Icecast and Shoutcast were 'allies' or built by the same org. I've had a few things topple over during streaming but it seems that Icecast is the only one that's run without any issues, guess they proved their point!
(Assuming he manages to stay in control) I'm curious to see whether he/the Board follows through with all of the concessions he made in an attempt to get the IPO off the ground.