skysight-inc/HackerNews huggingface dataset:
How about, in C++, doing:

template <class T>
using shared_immutable = std::shared_ptr<const T>;

template <class T>
using isolated = std::unique_ptr<T>;

That's basically how you'd guarantee that shared data is immutable and data passed along is held by only one thread.

Sure, sure, if you try, you can explicitly take out raw pointers out of them. You can also take an axe to your computer but, as they say, "just don't do that".
^^^^ so much this.

I keep seeing over and over again that hedgefunds MUST buy stock if the price goes up, and that 100% shares short is some sort of trigger that means everyone must buy.

There is another common misconception that stock cannot be created, that there is some finite supply. People should take note that AMC has (shrewdly) issued a lot of new shares in response to their stock price climb.
Or you just borrow shares from Blackrock to sell to everyone else who wants shares.

Aka: short selling. Yes, short-selling creates "virtual new shares". Its only an issue if the company gets acquired. The name of the game is to buy low sell high. Short selling inverts it by selling high and then buying low at a later date.
Yeah, but settlement happens EOD not on each transaction (as the orders fill). As long as we're talking about trades not on margin then Robinhood should already have the requisite assets for clearing readily available.

Margin is a totally different story.
While I might not like Facebook, I am supporting them on this decision. It is dire time to get rid of the App Stores, Google's and Apple's, they are a net negative for everyone except them.

If you are a small developer, you can get review bombed and your app download rate can take a drastic hit, while if you are cozy with the big players (wink wink RobbingHood) Google will take down your 100k negative reviews.

They keep reaping the rewards for doing absolutely nothing, except having the app be searchable.

You do your own marketing, you develop your own app, you design your own app, you have nothing from Apple except that you need to ask for their permission to push your product on their walled garden.

Of course I would love not to push it on the App Store, but they do not allow competition on iOS, which is the prime case for anti-trust.

iOS does not make the smartphone experience, the apps make the smartphone experience. The order of priority should not be forgotten.

If Spotify, Facebook, Google, Netflix and Amazon disappeared overnight from the App Store, I would love to see how willing would people be for their "eco-system" (walled garden)??
It has nothing to do with the window. If you own a car and don't own one, you should go out an buy one. That should be your takeaway.
One note about that video: he's updated his advice a bit. Our shitty Supreme Court has made "stay silent" a bit of an issue--it's safer to demand your lawyer instead.

It's not even about understanding the system, the presence of the lawyer forces the police to establish "scope".

If I'm just a witness, then the lawyer can make sure that what I say can't later be used against me for something unrelated.

If I'm a suspect, this prevents the police from going on a fishing expedition to just "find anything". Once they talk to the lawyer, they have to go hunting for "what they told the lawyer" as opposed to everything in the world.
Robinhood wasn't fulfilling orders though as far as I understand it? More like lead generation for Citadel, their market-maker? That seems like an issue for Citadel to be concerned with rather than Robinhood.
> “free software” is a matter of liberty, not price

https://www.gnu.org/philosophy/free-sw.html

This is also explained in the article, including a link to the page that defines "free" in this context.
Show HN: Track time with music and be more productive (MVP feedback)
Hey HN, I just launched my MVP and would love to see if it adds any value to you.

I built this in about 4 weeks after learning React Native during the pandemic. If I could get a few downloads and some feedback, I would really appreciate it.

This product is intended for people who rely on long blocks of time to be productive, like writers, software engineers, designers and students.

What inspired me to create this was Paul Graham’s essay “Maker’s Schedule, Manager’s Schedule”. I read it years ago but only got around to doing it now. Link: http://www.paulgraham.com/makersschedule.html

[Technical details]

This is a single-page React Native app. I used the Expo managed workflow to deploy to Google Play and the App Store. It’s running Firebase on the back-end. All tracks are licensed via Creative Commons and hosted on Firebase Storage.

[Vision]

As an engineer, I’ve always done my best work in 25 minute intervals while listening to instrumental music.

If people find this useful, my vision is to gamify productivity. Like Strava, but for those of us who sit at a computer all day. My hypothesis is that there is value in creating a universal productivity index/score that rewards consistency and regular breaks.

I feel like this could really help people live a healthier lifestyle while supporting artists and DJs that make instrumental mixes which are perfect for concentration and focus.

If you made it to this point and have any questions, feel free to post below. I’ll be around to discuss.
I'm not saying it is or isn't, just that arguing Apple really is a monopoly is going to be a large part of Facebook's case.
Yeah Russia and China all on it
> RGB light show ripjaw hacksaw aorus elite novelty stuff

haha yeah I bought a whole computer from someone and was wondering why the RAM looked like rupies from Zelda

apparently that is common now

but at least I'm not cosplaying as a karate day trader for my Wall Street Journal expose'
this is what we in the cynicism business call "vaporware".
The only meetups in my area are on FarmersOnly.com
I probably could at some point. It's pretty easy: you do the right commands to generate a Java project from a maven archetype or to start a Rails project, you hook up your git repo to Heroku, tweak some HTML. Today if I wanted to, I could memorize the sequences to stick some node.js inside of an AWS Lambda.

There are at least a few problems with this:
1. I don't have to create a basic web app frequently, so I've forgotten the commands. They're easy to find with googling. It's not worth my time to memorize them. (When I was learning to program in the 90's my family didn't have Internet access yet, but if you replace "google" with "looking through helpfiles or programming books," you get the same effect.)

2. The kinds of webapps professional software engineers build generally aren't "basic." Webapps at the professional level are complicated. Rather than "an over-reliance on documentation indicate a lack of critical expertise that will ultimately result in considerably lower job performance," reliance on documentation seems to be more about having more tools at our hands to build software that's more maintainable in the long run. We have frameworks/services that handle payments, security, storing data, and so on for us. The trade-off for delegating to others solving ancillary problems for you is that you have to read their documentation.

3. More and more in my career, I find myself not just googling technology but to try to understand business domains. Our job isn't to tell our boss "Here's a webapp!" Our job is to solve a customer need, and that involves understanding who the customer is. Could I shovel some code out the door without googling around for something? Maybe, but it probably wouldn't be very good.

4. All else being equal, I'd rather work with an engineer who is good at finding information quickly rather than someone who insists on figuring it out. Google is not some magic mind reader - you have to know the names of some of the things your trying to do, you have to assess the likelihood of an approach is worth trying, and even if you do get an answer from Google, you'll inevitably need to adapt it in some way to meet your need. Sometimes, it's not enough to look it up in Google, you have to reach out to other people, and you need to know how to formulate your question to help others help you. There is skill involved in finding information.

5. I look up things that I already know all the time. Just because you know something, that doesn't mean you shouldn't double check that you know it as well as you think, or that there isn't some better answer or solution. For one example within programming, I'll look up articles I read 6 years ago that do a good job of explaining an idea to someone before I give feedback on a code review and I have to explain a similar idea.

So, engineers don't just memorize stuff for the sake of it. Anyone reading this article shouldn't feel like they're not a real engineer because they can't do what the author suggested.
The corollary to this is can you write a simple c program without a compiler and have it do the right thing and compile without syntax errors the first time.
These ones do not. You might be thinking about pork tapeworms.
It's worth adding the qualifier that increasing the supply of available shares need not reduce prices at all if there is enough demand to buy shares at the original price (which there should be if the price is definitely correct and the market is efficient enough). Even without perfectly efficient markets the shorters don't make money if enough other market participants think they're wrong
A pre-Incan civilisation thrived in the Atacama Desert thanks to seabird poo
It’s not going to help consumers and independent developers.

Facebook and a preparing the case and does not care at all about either group, except perhaps to be able to take a slice of the action themselves.

If the Facebook app was also an App Store, we’d be in a much worse situation than we are now.

Some kind of intervention in the market might help those groups.

This has absolutely nothing to do with that. It’s just dressed up in that language to mislead people about what it’s intent is.
And even if you could, you’re probably using a framework that does too much, and that’s cheating.

Or was this a criticism about Google and the internet all along?

Wait, what was the point again?
without short selling market down moves become more crash-y - short sellers buy (to realize profit) as the stock goes down which tends to support the price. without buyers, an out of favor stock might keep going down in price and have maybe no willing buyers! and that also affects spreads, because market makers hate volatility.

oversimplified but real
This is my take as well. Robinhood getting raked over the coals is a bi-annual tradition which has been practiced for several years now.

It's not like they really had a choice or were fundamentally at fault for anything in this case. Contrast with prior incidents which were wholly related to bad engineering practices.

Getting a margin call from the DTCC isn't an optional inconvenience. Perhaps Robinhood could have had more buffer available to deal with this scenario, and that may wind up being the regulatory outcome of all of this.
Brokers are required to keep a certain amount of capital on hand to ensure that customers can be made whole in case some sort of risk arises.

The amount of money they are required to keep on hand varies according to the risk of the investment (among other things). The increased volatility translates into higher risk and therefore requires the broker to keep more money on hand.

I haven't seen the exact amount in this case other than hearing total amount of $14 billion and that it would be a percentage of that.
KDE Kate Text Editor – Search in Files and Multi-Threading
Love this concept!
As a programmer and an aspiring amateur quant myself I always ponder upon the possibilities of more people starting & managing mini hedge funds (e.g. with a starting captial of 200~500k?) with a mix of fundementals + algo-trading with multi-agent simulations, game-theoretic modelling, etc.

As more platforms like ploygon.io, alpaca.markets emerge as well as more DeFi stuff gaining tractions, I really hope in the next 10 years regulations, etc, in the financial space would leave more rooms for smaller players to thrive.
This feels like false equivalency. Sure, it would be great if consumers had better visibility into how data is used, but one company is an ads company where the users are the product and the other sells hardware and services.
If the SEC had done their job RH would have been shut down ages ago due to their platform's facilitation of rampant identity theft.
It's a you're-the-product-age. ;)
I think this thread did a great job of explaining how volatility can affect collateral requirements: https://twitter.com/KralcTrebor/status/1354952686165225478
Gating? Safari 14 was released sep 16, Big Sur came in november
Most of the time, we're not starting a project, so making a basic web app isn't something most of us do often. That said, there's still an over-reliance on google and the web. A better test would be: can you close tickets in your current project without googling?
I really don't see how taking advantage of an excessively-shorted stock is market manipulation.

I've been on the right side of two short squeezes last year purely by accident, and I'd certainly like to repeat the experience if I could. What exactly would be illegal if I was on the right side of a short squeeze on purpose? Predicting it? holding stocks until it happened? Explaining to people less experienced than myself how a short squeeze works?

You say 'intent' but what intent is discussed on these message boards that is so nefarious people with better Lawyers don't discuss it openly?
“But Apple is hiding their own tracking under default opt-in switches and using double standards as well.”

This is, as far as I can tell, completely false.

Apple has been asking for explicit opt-ins for years, and is only now requiring apps to follow suit.
This is going to be a haven for hate speech. I’m against it from the start and only solidifies my view that hate speech and free speech need to be mutually exclusive and codified in law in the US.
Are you saying you do not use IDEs? What is your rationale for that decision?
> Hoping 300 million people all follow those simple rules is a bit hopeful to say the least.

There seems to be something different about the US population than, say, the Taiwanese population regarding mask usage. I don't have a good explanation for it, because I think blaming "culture" is lazy research.
Yes, I can and I have done it before, under time pressure.

I was one of the original employees of k12.com, working as a Sun/Solaris sysadmin and late one night the "web team" had a next-day deadline to make a registration system work.

There were press releases and print materials being released the next morning with addresses and registration forms that needed to work and their big bloated "stack" was not producing anything workable for any of them.

I ftp'd over an old, personal copy of cgi-lib.pl and hacked up a little web page that dumped to a flat file and cc'd an email address with every registration.

It took about 45 minutes and they used it for a year.
They use a forked version of OpenJDK.

See https://confluence.jetbrains.com/display/JBR/JetBrains+Runti...
In my opinion, there's a difference between having to go to the docs once and having to go to the docs (or example code) every time.

I am not a (frontend) web developer by career. I did LAMP webdev work as a college job 12+ years ago and, like the author of this article, do small personal web projects perhaps once or twice a year. I did one of them earlier this week.

Yes, I went to Google for basic things like "Javascript map lambda" or even "Javascript foreach syntax", but I refreshed myself on those exactly once and was then able to keep it in my short term memory through the completion of the project a few days later. I switch around so many similar-but-not-identical languages (Java, Go, Python, C++, etc.) in a year that it's often not worth it for me to memorize the minutae of each one. I know how to conceptually do something in whatever language, and use search engines and stack overflow to remind myself where to put the semicolons and the brackets.
I think the PR strategies of these companies is something along the lines of, say the vague things which have no risk of backlash as opposed to explaining what happened which has higher risk of backlash.
A very original take on this situation.
Could you expand on this some? Do you have a blog or something? This interests me.
Let me get this straight:

1) RH automatically makes every account a Margin account.

2) RH doesn't make this clear to their customers (buried in the TOS where they know newbie investors won't look, which makes up probably 99% of their customers).

3) RH allows people to initiate money transfers into RH, but also allows purchasing of stock immediately (on Margin) without informing the customer.

4) Investors believe they've outright purchased stock, because RH app shows the stock in their account, and money now gone (even though it's still pending the transfer).

5) RH then "margin calls" all of the people who had money transfers pending at the time of GME purchase.

Ya... that seems pretty predatory in my opinion. Downright shady business... How can this not be construed as market manipulation, even if RH had to do this to save themselves yesterday. RH got themselves into this position in the first place...
:) remote meetups then...

but even still - there's probably at least ONE other tech person in your area. It may be difficult to find them, but it's worth it (for sure) to get a community going.

This isn't like online communities where you need 1,000 people before it's interesting. Even just 3 people can make a very interesting local community
> * What purpose does the Jury serve in 2021? Made sense in the 18th century, doesn't now. Look at Oracle v Google, 12 totally qualified people made that decision (spoiler, they weren't)

I'm speculating, but I think the idea was to put a check on the authorities by placing the actual decision-making power in the people. I think that's a valid principle. Even if Oracle v Google was a bench trial (e.g. no jury), the judge would still probably have to be educated on the technical issues, just like a jury.

IIRC, technically a jury could even decide the law is BS and refuse to convict for that reason alone, but the system puts up a lot of roadblocks to reduce the change of that happening (e.g. the defense counsel can't argue for it or remind them of that option).

> * Why do such a mind numbingly high amount of public defender cases end in plea bargains, and why is the average time spent by a public defender on any given case in the order of _minutes_ in _any_ region of the wealthiest nation around?

Because public defenders are underpaid and overworked, and that's because it's an easier sell to the voters to raise taxes to hire police to lower crime than to raise taxes to hire public defenders for fairer government. There's also been a history of "tough on crime" rhetoric/attitudes that makes it even more difficult. Also: the suspects on crime shows are almost always actually guilty (whether successfully convicted or now), which creates the impression that it's the job of defense lawyers to help the guilty go free.

> * What's up with private prisons, and how can they argue they don't have a negative impact on recidivism?

I'm not sure who's arguing this, but my guess it's probably someone who benefiting from that industry. My vague recollection was that private prisons were sold as a cost-saving measure, like most privatization schemes.
Between this stance and the "where's the patch?" crowd there's a hostile sentiment brewing against open-source users on HN.
That this is the state of things is pretty amazing
Second, consumer harm needs to be proven.
It takes a couple days for stock trades to settle. While that process is happening Robinhood has to keep collateral at the clearing house to ensure that when settlement happens the money is there to pay the other party.

Volatility makes that requirement go up because of the time risk. If you agree to buy something for $300, fail to settle, and it drops to $20 in the meantime that counterparty is out more money.
Also, purpose built data center chassis are designed for high airflow and are thus really quite loud.
> It is about the forced redistribution of what’s produced.

That makes it sound like all taxes should be voluntary. Even most libertarian's believe in some kind of "FORCED" tax for an army.

I would argue most -isms are academic and the world is much less binary and they're thrown out to create some kind of dividing line. Some extreme version of the -ism on one side and the completely rational justified version of sanity on my (groups) side.

so vote for my group or send my group money to fight the other group.
"Illegal" doesn't apply to the president, who is above the law[1]. Instead, Congress can impeach and remove him for anything they want, whether it's a law or not.

[1] although not above DC law https://dcist.com/story/12/10/04/dc-police-once-gave-the-pre...
Optimizing for readers definitely excludes lists like:

2.
3.
5.
6.
1.
Normally you should use the source packages available to you. If you run configure and make on the upstream package, you will not only lose the patches CentOS normally applies to the package to integrate it better with the system, but your patch will also be untracked by the package manager.

Building a source package is trivial. Just download the srpm, run rpm -i just like you normally would. This will extract the package. Look at rpmbuild/SPECS directory. There is your "spec file" which is a list of patches to apply and the exact commands used to build the package.

Add the upstream patch that fixes the security problem and step the least significant version number. Run rpmbuild -ba on the spec file. A binary rpm will now be built that can be installed in the normal way. This may sound intimidating at first, but it is really very simple. Also, congratulations on your first step on maintaining a package.

Alternatively, you can also grab the latest version from Rawhide if it has the fix. This will often have the patch and you can lift it straight out and use on the old version. Or you could just build the new version, but there can be hard dependencies on newer libraries which may not be easily available to you.
How have the current tools that need revamping been updated so far? Even if the "tools" in question are the spreadsheets, how do they update and share them?

How many users will you have to deploy that for? I'm asking these questions because you'll have a payload that has to find its way to disconnected environments. There will be updates that need to be rolled out as well, and you want to think about that.

I am a newly hired engineer, how do you provision my workstation, and how do you make the tool available to me?

A week goes by, and the tool crashes and stops working for me, how do I get that to you?

You get my bug issue, where do you do development, and where do you push your code and collaborate with your colleagues and get my opinion?

You fix the bug, how do you make the new version available to me, and I imagine to others as well? Will you bring a thumb drive given that my workstation is disconnected? Does that thumb drive do the rounds to others? How many people will use it, and how do we ensure the payload we're using is the same you built?

Will you be shipping the whole thing or do you have to do incremental diffs?

Have you gathered the engineers you're building for and what were their thoughts on a workflow that would make sense for them and not get in their way?