jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
A negative size is generally not a valid type instance regardless. In well-behaved code I would expect this to be an unreachable condition because you are explicitly checking for sensible inputs before doing this type of arithmetic. It makes no sense to check for sensible inputs after you do the arithmetic, that is the same amount of code done in the wrong order. It is not safer to use signed in this case nor does it decrease mental overhead.

Assuming an integer is signed can be much less safe in practice because there is often no guarantee that an integer type is always signed or unsigned in a given context. Typedefs are a ubiquitous thing, and you don't always control those definitions. In code designed to be robust and maintainable, it is usually idiomatic to always implement these things in a way that is correct regardless of signed-ness unless that signed-ness is an immutable contract (e.g. some syscall stuff), because whether or not a type is signed can sometimes change unexpectedly.
It's protective against downside, but can constrain your upside. I was raised a saver, and it's been very hard to hire out simple tasks & let go of trifles, which in turn constrains how much time & energy you have to focus on increasing your earnings. As a low earner, it's better to focus on efficiency & DIY, but as a high earner it's irrational to spend an hour getting bent out of shape over a few dollars.
> capitalism

If capitalism caused censorship you would expect the least capitalist places to have the least censorship but the opposite is true.
Vague unspecific references to anti-vaxing are to me a red-flag that somebody tries to win a debate without having to provide any argument for ones opinion, even when answered approprietly in another comment.
Slight but important correction. These business are not legal at the state level, their products are decriminalized. Since, as you noted, they are illegal federally, the best states can do is decriminalize. They cannot override the fed status.
This is really sad. Since everyone is doing it, here are some of my favorite games:

1. Snow Line (I still play this around Christmas every year)

2. Dream Racer

3. Bloxorz

4. Bubble Trouble

EDIT: Also, did anyone else here use the avatar-builder that Miniclip had? Oh man, this is so sad.
he does owe it to them to answer their questions on how he intends on managing the company and transitively the investor's money.

I disagree. You chose to invest in a company based on your belief that it will grow as an asset. If you want to have guarantees of certain information beyond what the SEC requires, you need to enter into a separate contract with the corporation.

Page is a founder and CEO in good standing with the board. He doesn't owe shareholders squat.
OK - that matches my understanding, that the threat model of BitLocker includes the possibility of attackers having ring 0 access using a different OS. I've downvoted the comment I originally replied to, since it appears to be totally wrong.
You mean it was a lot of people and entities that all together cleaned up XIV's (and others') money?
To make it short, 20 years ago most hospitals were privatized, before they were run by universities, cities, and states and some other public actors. There were already some private hospitals, but not too much. Since, then most hospitals were sold to companies or in the better case transformed into companies, partly owned by their previous owner. Companies optimize for revenue, so they don't spend money on stocks of masks or reserve capacities that are only needed once in a lifetime. Nevertheless, there are significantly more ICU beds per capita in Germany than in most other european or western countries.

The insurance system is split in two almost separate systems. One for everybody, the public health insurance system, where you can choose and switch between a range of public insurers. You must have health insurance in Germany. E.g. you cannot spend a semester as an exchange student without health insurance. If you earn above a certain amount per year, you are assumed to be able to provide for your own health insurance. You can opt-out of public health insurance and get a private one. They are very competitevly priced for young and healthy individuals. And they usually have way wider coverage. But you cannot go back after a certain age. So it is a risk, and there have been insurers that raised the cost of private insurance for elderly people by multiple hundred percents. On the other hand, the cost of public health insurances depends on your income and not on your health. If you are unemployed and you show that you try to get a job, your public health insurance is free as well. And children are free, if both their parents are in public health insurance. Then, there are private insurance policies that add on top of public health insurance coverage. Most people are in the public health insurance system in Germany.
If manufacturers sold direct-to-consumers, they wouldn't. Problem with price gouging happens because of resellers, and that money does not work as a signal for manufacturers.

The solution for undersupply in times of emergency is, IMO, to ban resale. Some countries, including mine, went that route now.
Inside the Wuhan quarantine zone the ability to actually test for the disease was extremely overwhelmed. I know there's a paper somewhere estimating the actual number of cases and actual mortality rate based on the infection rate amongst people repatriated from Wuhan, and it wasn't that far above the ~1% everywhere else has seen.
Neat idea. Would this make it possible to use a tar gz as a squashfs archive, basically?
This thread is quite encouraging.

Argues that reason why we don't have one for other coronaviruses is because of cost-benefit not high enough, rather than technical hurdles. 20% colds caused by 4 different Coronaviruses, so hard to justify making a vaccine that reduces cold risk by a few %.

Agree that there is uncertainty though.

"Covid is so technically doable we already have vaccines for dog & cow coronaviruses. We’ll definitely make one for covid, trials will be simple since we’ll be specifically trying to prevent Covid, which is only caused by SARS-CoV-2 (not by dozen different viruses)"

https://twitter.com/PeterKolchinsky/status/12404980379585454...
Add to that the underlying stress we’re all under these days, and RHR has even wider variation.

I keep close tabs on my resting heart rate to assess when I’m pushing the limits, and it’s been higher than usual these past few weeks...

Still, I do agree that in some instances it increases noticeably (I had the flu a while back and can confirm it rose a bit half a day or so before My throat started getting sore). But I don’t think it should be used as the only/main indicator for infection.
I'm working on basketball manager game with fully fledged game simulation engine, similar to Football Manager. I'm developing it in Kotlin, with TornadoFX.

I've spent a lot of time on optimizing the engine. Fortunately with correct techniques JVM is surprisingly efficient, so it is able to simulate single game (30 frames per second, around 110k frames in total, each with collisions, path finding & decision making) in ~900ms on single 2,4GHz core.

I'm far away from having anything usable (or fun to play), right now I'm working on team defense behavior, little GIF representing current state: https://gfycat.com/jampackedsparseindianglassfish
> The concept of property being sacred is what drew a lot of people to America in the beginning.

That's not what you describe below.

> Instead of paying a Lord [sic] you could literally come to America and be given free land by the Federal government. It was a huge reason we rebelled against England in the first place.

I think the most important thing here is the free land aspect. Property ownership has never been "sacred" and was always subject to things like squatter's rights and other practical exceptions:

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

> The principles of homesteading and squatter's rights embody the most basic concept of property and ownership, which can be summarized by the adage "possession is nine-tenths of the law," meaning the person who uses the property effectively owns it. Likewise, the adage, "use it or lose it," applies. The principles of homesteading and squatter's rights predate formal property laws; to a large degree, modern property law formalizes and expands these simple ideas.
Rays hit our planet regardless of Sun, if anything it might block a few. They are caused by ultra-energetic cosmic events, such as star collisions, black hole feeding cycles.

Cosmic rays are just very potent photons, capable of knocking out electrons from an atom (meaning they are ionizing) causing havoc in precision electronics and, well, our DNA.
FYI: khosla funded companies
https://www.khoslaventures.com/portfolio/all-companies
For a second, I though they were referring to the trenchless piping method used on the sewer lateral. They pull a plastic pipe with a winch through a older pipe with a metal head that expands out the old pipe. Fortunately there are no fumes during this process.
> IME the more they talk about D&I, the more annoying the company will be about brainwashing everyone to drink the corporate koolaid.

Expect this to only ramp up given how diverse and queer Gen Z is. What passes for diversity among the Gen X / Boomer bosses isn’t good enough, and they have enough options that D&I has quickly become a competitive advantage. Every client I have is going in hard on DEI (diversity, equity, inclusion) as a result — you just can’t hire the best young talent otherwise.

This is the downside of Citizens United for corporations — by creating an outsized role for corporations in a democracy, corporations are implicitly expected to reflect the ideals of their employees rather than shareholders. This limits their agility and has strained relationships with employees who are now working to organize / unionize to achieve their goals. If this isn’t a role employers want to play, they are free to lobby for a law to protect them from themselves; otherwise the battle lines (and collateral damage) over any labor vs capital dispute will be drawn wholly within the company.
> I get amazon ads for things I bought... but not a single thing on any of my wish lists (how much more explicit can I get?)

I can't find the source now but this reminds me of some trivia about Netflix recommendations and how people use the "My List" feature. Apparently uses will add all the serious and "important" films they think they should watch to the list, but when it comes to actual viewing those are never the films they select to watch. How much of what is on peoples' Amazon wish lists are items that will actually ever be bought (vs being idly pined for) and are they worth paying to advertise for?
I get what you mean, I think — you’re talking about traffic fingerprinting. But you can use the same anti-traffic-analysis techiques used elsewhere in systems like Tox. For example, the darknet market itself could use some of its revenue to pay for “noise transactions” (wash transfers through the mixer, then intentionally “black-laundered” in the market) to keep the number of darknet-market-spent outputs constant per mixer step, by asking for advance notice from buyers for when transfers targeted at their sellers will happen, and then running N fewer “noise transactions” during the appropriate mixer steps.

Though also, you’re assuming a constant “your account” in the above. If you mix 100% of your holdings every time you transact, setting it so that a set amount goes to a darknet market, and the rest goes back to a newly-created public-key-hash that you just generated the keypair for — and then when you want to use money from that address, you fully consume it to mix it again — then nobody ever gets the opportunity to fingerprint “your” traffic. There’s no stable “you.”

(I have a theory that this is the goal Satoshi was aiming at with Bitcoin UXTOs, but never finished that element of the design, and launched it half-baked.)

This also means that the mixer gets to eat a percentage fee off of your complete holdings every transaction, so it kind of sucks, but what can you do.
I've been on the lookout for something like this since maybe a year or two after leaving school. It is really tough to find a job with everything you describe. You can generally find most of these things, but having the job also be remote is where this really falls apart. Do nothing jobs aren't too hard to find, but actually having to go into an office and pretend to work for 40 hours a week gets draining pretty fast (a few months tops for me).

You might not want to hear this, but I landed on the fact that I should get the highest paying job I can, and actually work until I'm around 35-40 and have a mortgage paid off and a bit of cash in the bank. At that point I can pretty much coast on easier jobs and do 6 month contracts / 6 months no work for the rest of my "career". I can stomach working for 6 months if I know there is a long break each year.

Either way good luck. I'll be monitoring this thread for more ideas :)
It's not that the package manager fixes the problem, it's that having 1 or maybe 2 or 3 canonical or popular package managers gets the implementer to fix the problem.

The implementer, who has extensive knowledge of their own build system runs that aspect and creates a package that conforms to a universally expected output.

It's an incredible difference going from C++, where you end up in the details of all kinds of repos and build systems, to something like C# with Nuget packages where it's a simple command or single click to start using someone else's code.
Wow, fascinating and yet deeply depressing read. I realized that I fundamentally disagree with both major sides in this cultural debate—the only ones that have any real chance of maintaining broad social control. Which would be fine, except both sides view any disagreement as inherently immoral. They cannot countenance any disagreement and actively try to suppress it and reeducate the populace.

I've been realizing that the world is a lot more moralistic and populist than I thought, and this just reinforces that. Distressing.

I'm content having my own preferences on how things should be run, even if they're different from most people's. And I certainly don't want to push them onto others! I would like a world where people can do their own thing with no problems as long as they're not trying to force their views on others. But that's not enough for either side; both insist that any person or organization has to follow their principles even if they're content to be self-contained.
Weak citizens dying of air pollution quickly and being replaced by healthy strong new recruits from the hundreds of millions living in the China villages.

Very similar the recipe for big cities in Europe before the industrial revolution. There was no canalization, food had to be brought on horse cars without refrigerators from vast areas, making it decay. A dozen people per room, resulting in fast spreading of viruses and bacteria.
It's exposed through Roslyn (I was technically wrong in that it's not included in the language, but in Visual Studio). It's not very well-documented (to give you some idea of how not well-documented it is, some of the most useful documentation is in a Word file[1]). The code is Open Source[2].

I found out about Roslyn through hearing Erik Meijer speak at a conference. A quick search shows that the content of his talk at the conference I went to is probably covered in his C9 lectures[3], probably in Chapter 8[4]. But I'm pretty sure that will only cover the parser combinators, which is the algorithm, but not the specifics, of how C# is parsed.

When I was doing C# parsing I was working with the CodeDom[5]. If you just need the AST I think ExpressionTrees[6] are now the idiomatic way to generate it, but I'm not sure how that relates to Roslyn.

Disclaimer: My day-to-day development switched over to primarily C/Python/JS about a year and a half ago, so it's been a while since I fired up Visual Studio. My knowledge is probably out of date, and might be flat wrong--nobody's memory is great after a year and a half.

[1] http://msdn.microsoft.com/en-us/hh543916

[2] https://github.com/dotnet/roslyn

[3] https://channel9.msdn.com/Series/C9-Lectures-Erik-Meijer-Fun...

[4] https://channel9.msdn.com/Series/C9-Lectures-Erik-Meijer-Fun...

[5] https://msdn.microsoft.com/en-us/library/y2k85ax6.aspx

[6] https://msdn.microsoft.com/en-us/library/bb397951.aspx
In practice politicians are happy to cite MMT as justification for increasing spending on their favored programs, and then conveniently forget about it when the time comes to raise taxes. So we end up with an exploding national debt. That can appear to "work" for many years, but eventually the system will hit a tipping point that results in either hyperinflation or (more likely) a debt default. It's impossible to predict when that crisis will hit but by that time most of the politicians responsible for causing the problem will be out of office anyway and we won't be able to hold them accountable.
If you want a “sense of purpose” have children. Your job seems like the wrong place to expect purpose from, because for most of us work serves the primary purpose of providing an income, which is often contrary to our personal desires.
I tried to create a perpetual motion machine out of Capsela when I was 9 by connecting a propeller to the wheels, so the propeller turns when the wheels move. I was really puzzled when it didn't work! But I still remember that machine clearly 30 years later.
Home computers? Something US missing...
> The thing is, "beg the question" as it is used in everyday language is much more transparent and easier to understand than its 'proper' usage.

Even better, it is impossible to confuse with the "proper" usage (because it is distinct syntactically) and makes the "proper" usage more transparent and easier to understand.

The everyday form is transitive, its always "<foo> raises the question <bar>" and means "Accepting <foo> creates the need for a resolution of the issue <bar>".

The "proper" form is intransitive, its always simply "<foo> raises the question", meaning "<foo> invokes the petitio principii fallacy". This can be rephrased, however, as "<foo> creates the need for a resolution of the issue <bar>" where <bar> is the proposition argument <foo> was offered to justify, as it is stating that the argument depends on the conclusion it was offered to support.
This script would appear to be at odds with the language of that clause, but I wonder if it is truly against the spirit of Coursera.

I can see clear ways to automatically exploit the website for the purpose of scraping their content. However, I have had a legitimate use for this in the past and, instead of just doing the smart automatic thing, I did it manually.

My take is this: for personal use, a low-volume, automated tool would not violate the spirit of online education. The presence of that clause is probably intended to protect against exploitative uses.
You say you don't like hold inflation and then suggest 20% cash levels...hold no cash.

Also, and this is something that I have say every time these days: hold more quality stocks, and diversify geographically.

The mistake with not holding quality stocks is a weird one. I worked in financial advice (research, not an adviser), and there was this adviser who was 20-30% in EM stocks...the logic being back then (in ~2012, before EMs really started underperforming) that you want to own volatile stuff because volatile stuff outperforms in the LT. Now this isn't true, I knew this wasn't true then but people automatically think that volatility=returns. It doesn't, the opposite is true. Volatile, high-beta stuff will underperform. The point of my example is that even people who should know better don't know this.

Everyone owns too much US tech. If you are 100% equity and leverage constrained then geographic diversification is a genuine free lunch. Maybe we are seeing some secular change in equity ownership akin to the financialisation of savings in the 80/90s...we are not...and even if we are, you can own other countries going through the same change, no reduction in upside, more diversification.

Also, you should consider options. No need to do anything crazy like selling options but volatility is, generally, pretty cheap and a way to reduce your downside without reducing upside (in fact, you have actually been paid to reduce risk...people really love picking up quarters in front of steamrollers...let's assume this won't continue though). This isn't for everyone though, some people don't care about volatility, and this strategy is only very profitable if you can lever up your beta (although I know a fund that finished the year up 20% unlevered, running zero market risk because they had a put-buying strategy). There are very few ways to reduce risk in this environment, options is one (bonds are another, you need to go quite far out to hedge out equity properly though).

Also, the long-term real return from stocks is ~300bps. I think you say 6-7%, that is really best-case imo (it is not self-evident, to me at least, that the US just hockey-sticks forever).
Wendy's!
This is long gone. No longer possible.
If somebody is actually new to personal finance or investing, I would be careful with a lot of the stuff in this post. You're likely better off reading the r/personalfinance wiki, the r/financialindependence wiki (even if you're not interested in FIRE, there is a lot of extremely useful advice), and the Bogleheads wiki.
With respect, I think this is outdated advice.

Sitting on tens of thousands of dollars of cash (six months of income!) in a zero interest rate environment is a mistake that really compounds over the years -- to the point of a few $100k in lost appreciation over your career.

Equities are no longer hard to turn into cash in an emergency. You can pull money out of your investment account the same day using a debit card if need be, no need to even sell your equities.

Keeping access to credit, but not using it unless it's needed, is the better plan. But after several years of saving you won't need it anyway.
I once had to report an uber driver for watching a movie on his laptop. Almost scarier than the distraction watching the movie, was that every turn (or swerve) caused the laptop to slide on the dash and he'd reach way over the passenger side to move it back. Scary ride.
You have a gem! Congratulations! But how is it for daily driving?
Sounds more like the SEC have found a bunch of worthless penny stocks they can use to justify some new rules and regulations that will also conveniently affect the stocks that have been all over the news without directly citing those stocks since that would surely cause an uproar.
Trying to figure out if author is serious about this. He did start out with disclaimer it’s not financial advice...
Just to list a few forgotten ones that have faded away that could also fit the bill:

- Modula-2

- Modula-3

- Ada

- Turbo/Apple/Object Pascal

- Delphi

- Oberon, Active Oberon, Oberon-2, Component Pascal
Take a look at some of SourceForge's top projects at http://sourceforge.net/top and you'll see a collection of very well known projects which GitHub cannot serve in its current form. That is a rather important aspect of SourceForge.

VLC, 7-Zip, PortableApps.com, FileZilla, MinGW, Apache OpenOffice, GIMP, Notepad++, ...