skysight-inc/HackerNews huggingface dataset:
Good question, one that I don't know the answer to. But I know an experiment that can help us find out! Spicy-hot is a complex phenomenon, but it is my understanding that a large part of it is that the capsaicinoids react with the heat receptors in your mouth to adjust their baseline temperature; making them react to normal temperatures inside your mouth as if they were physically burning hot. If tolerance is a purely mental exercise, then I would expect that I would not be able to accurately judge temperature of things in my mouth after consuming very spicy food; if I can accurately judge temperature then this would suggest that there is a biological mechanism at play.
You are making things more complicated than they currently are. Currently I call "list.sorted" and I get a sorted list.

What you propose is essentially what some languages like Idris already offer: general purpose programming with constraints that allow the compiler to generate an implementation, given that the constraints are precise enough.
Grandma kicked out of hotel after 3 star review
I figure if Pfizer can test in prod, so can I.
That’s essentially why we don't have a staging environment and why “dev” is a direct copy of prod but with different backing data. I’d argue more often than not it’s overwhelmingly difficult to maintain the discipline required to not have a crummy staging that doesn't in any way resemble prod, so I’m sympathetic. We deal with that by taking away the notion that you get to stage your changes anywhere persistent before they land in prod. Of course dev is not 1000% identical to the very last bit, I’m not going to argue that. But it is a hell of a lot better than the type of staging environments I imagine drove the author to take such a stance. Like I said, we’ve yet to experience a prod-only bug that didn't reproduce in our dev env. So in that sense, anecdotally, the point does not hold.

Just to be a little more clear: I agree with the author that issues happen in prod that are unique to prod that you simply won’t catch pre-prod. And I agree with the hot take mantra that “testing in prod” is okay and not to be as frowned upon as people seem to think is trendy. But I’m also suggesting that instead of viewing the ability to test in prod as a badge of honor, it’s also possible to apply this mantra towards traditional notions of a staging environment. You can cut out many of the issues and frustrations surrounding testing in staging by actually practicing continuous integration. Build mechanisms and policy that severely limit the frequency and distances that staging systems diverge from prod and I wager you’d get much much further than the comfortable status quo of merging to staging, manual and automated integrating, and then a cadence-based release to prod. So yeah: test in prod! Just don't use your real prod unless you have to.
its strange how hn is so intellectually curious about technical subjects

then as soon as people can make money from the tech, people who decide it's an immoral scam and have no curiosity take over the conversation

the internet has convinced us that people who believe something strange must be wrong
Looks nice but I don't want wireless. (Retro grouch)
Yup! There’s a neurotransmitter for registering the compounds that trigger that hot sensation, and that neurotransmitter gets depleted over time, based on exposure. I don’t know the exact timeframes, but it’s on the order of days/weeks.

https://en.m.wikipedia.org/wiki/Substance_P
Beware leaving a review while staying at a hotel, I guess

Manager sounds shady, dramatically escalating situation and changing his story of what occurred
“ “ “ “ ““ ““ ““Free Palestine” gets flagged” gets flagged.” gets flagged.” Gets flagged” gets flagged“ gets flagged.

Is this really ban worthy? Where is the hate?” Gets flagged. Nobody wants to engage, they want to silence.” Gets flagged. I’m bored.” Gets flagged. Oh my Yahweh.” Gets flagged. I can only conclude whoever is flagging this has an insecurity problem. Free Palestine.
As a developer of desktop applications as well, I've asked myself these same questions. While I don't have any definitive answers for you, I'll share my thoughts.

If you consider that an ecosystem evolves to the constraints of its environment, even from their pre-history at Xerox Parc, early GUI frameworks were incredibly constrained. But I think the most important constraint in their development was object orientation. Smalltalk blazed the trail for GUI programming, everyone else following after modeled their systems in that way. Object orientation became the most expressive way to program a hierarchical widget system (which most desktop systems are). Even early Windows HWND-style programming emulates virtual dispatch in non-object oriented C (also 'gobject').

In response, a vast body of knowledge and techniques around object orientation were amassed to mitigate these constraints as the ecosystem matured through the 80s and 90s. Not just patterns like MVC, Flyweight, Command et al, but also structural techniques like the event loop.

> Eventually, somewhere near the end of the 90s/middle of the 2000s, most of these things were "solved" for desktop/native, or put less charitably, they stopped changing.

So at the end of the 90s/middle of the 2000s the web browser grew out of being a document viewer into a very constrained widget kit, but the programming model was not object oriented and so the 'solved' problems needed to be solved again for a new set of constraints. Few of the traditional techniques applied, and the old object oriented way was either adapted (e.g. data binding became Redux, Flyweight/Prototype became templates) or disposed. Personally I find it a bit of a waste, but I don't expend any energy in the new ecosystem, so I don't want to be too judgy.

But I don't think desktop widget kits 'stopped changing', and are cherry-picking ideas from the browser, like 'declarative' (XAML, QML, etc) and 'responsive' (widget containers that re-flow the viewport for phone/tablet orientation etc). I hope I haven't misunderstood your question and wasted everyone's time.
I find Buzz a joy to use as a programmable / repeatable mixer, too. I love the tracker's ability to record knob/slider positions and play it back faithfully. Quantized recordings of parameters just make so much sense to me.

I think about my Buzz files as the "source code" that will eventually be mixed-down to PCM audio. I can always go back to the "source" if I want to make modifications and re-render. I think of it a little like non-destructive editing layers in a bitmap editor, or like editing graphics in a vector format and rendering-down to raster for presentation.
The one I replied to, plus others. Hence, "some."
I would be interested in hearing feedback on using the thumb knobs as joysticks. What are people using them for?
This explains nothing. It's meaningless drivel.
That was just one example of what the mission could have been. What should the mission have been?

My point is everyone can say they are betting on a non-changing thing and in retrospect it's easy to see what it could have been (in this case one of several, different ones). You've even expanded on "capturing memories" to make it "capturing images and memories" despite the fact they often have nothing to do with each other (medical imaging isn't related to memories, and diaries aren't related to images).

So what do they do? Go for the most abstract (read: big) mission possible? Why not "we are focused on making people happy". It doesn't change. People want and pay money for it.
“ “ “ “ “ ““ ““ ““Free Palestine” gets flagged” gets flagged.” gets flagged.” Gets flagged” gets flagged“ gets flagged.
Is this really ban worthy? Where is the hate?” Gets flagged. Nobody wants to engage, they want to silence.” Gets flagged. I’m bored.” Gets flagged. Oh my Yahweh.” Gets flagged. I can only conclude whoever is flagging this has an insecurity problem. Free Palestine.”

I laugh at you and will vote and spend against Israel’s interests.
> avoid reputational damage

In less censored circles, Rust has THE worst reputation of any programming language purely because of this kind of management. The entire reputation of Rust is "that language made by insane leftists... with some memory safety or something". I've never seen any language community with a worse reputation, including JS.
Those parts of the world aren't generally spending multiple thousands of American dollars on a laptop.
No worries, it's a fun topic!

For any given position on the board, there are only 9 possible moves that can be made (1,2,3,4,5,6,7,8,9). One could try each possible move without regard to the rules of Sudoku, then evaluate whether the new state is correct - and this is what I understand you mean by brute force.

My implementation goes to the next step and only considers valid moves for a given position by looking within the current 3x3 square, and also by looking along the row+column to eliminate numbers that have already been used. This is slightly better than brute force and reduces the search space quite a bit.

At a high level, my sudoku solver does a guided DFS by generating the full list of moves that can be made from the current board state, then sorts them according to heuristics that match how I play sudoku (first try to fill in positions with less options, first try to use numbers that have been used more), then starts trying values and backtracking once it reaches a point where there are no more remaining valid moves.

The problem with heuristics like those is that sudoku puzzles can be created that exploit the heuristics and make the search take forever. My implementation solves easy and medium sudokus very quickly. My implementation can't solve most hard sudokus even after letting it run for hours.
But that’s system memory. Not GPU memory. M1 shares that memory, so it’s addressable by both directly, but with ryzen (and almost every other consumer platform) the cpu and gpu memory are separate.
I mean CDNs (content delivery networks) are pretty much agreed help performance by serving static content close to the end user. https://stevesouders.com/examples/rules.php

And you'd be surprised how much bot traffic that most sites get that you may or may not want to allow. Not every user feels comfortable setting up Let's Encrypt (though I agree it's awesome) or even has sufficient privileges to do so.

Compared to other services like AWS Cloudfront/WAF/etc., Fastly, Akamai, etc. IMO their offerings are quite powerful and economical.

https://www.cloudflare.com/plans/#overview
Yes, this is correct —- it’s actually a fascinating study, but the translation from French was done poorly and then the English-speaking media ran with the clickbait version.

The original study finds that the terms we use for flavor (partly) encode the tuple of flavor and color. That is, given two identical smelling / tasting liquids, subjects will pick different vocabulary to describe the flavor when the liquid is red vs clear.
Israel is for freshly circumcised infant penis sucking perverts.
"What would the world be like if we invested 50% of our assets within 50 miles of where we live?

What if there were a new generation of companies that gave away 50% of their profits?

What if there were 50% more organic matter in our soil 50 years from now?"

The goal is to relocalize economies (particularly food) through local investment.
I laugh at your offence.
I think i remember something like that too.. past week maybe? Something that wasn't a regular mirror site..

Didn't have time to check it out- why don't i write things down?

well someone else posted a mirror anyway: https://archive.md/8exQJ
100% Laravel. A joy to work with. You get so much out of the box.
Java/React dev here. This seems great for a small app. But could someone help me understand how this would work in a large scale app? It looks like the some pieces of the JS make up the server side API of this and it runs in a V8 process. How would you deploy a production version on AWS and scale those à la ECS Fargate containers against RDS?
But neurons are like compitational elements. There are different sorts with different power. In fact some human neurons have features that no other neurons have.
One way it becomes profitable: paying colonists for research.

There are plenty of people here here who could benefit, possibly even financially, from research there. Paying what is essentially a monopoly on research capability on mars would be one avenue of profitability for the project.

Also think about this: once there's a profitable economy there of some kind, you'll get all sorts of capital interplay that doesn't actually need physical financial instruments to make happen, only networking.
If you swap out “code” in the url for “raw” you get the raw text itself without a need to use sed

https://jott.live/raw/blas_test.cc
Some places you simply can't. Medical devices, airplanes, etc.

But non-critical services? Sure
It's probably difficult and also seems mostly useless, right?
Ask HN: Passive Sources of Income
Hello there

Last year I was looking for profitable sources of income.

So now I have:

- bank deposit [8% per year before taxes]

- solar system [18-25% per year before taxes]

Also I'm considering the possibility to rent out a house and a car

It would be nice to know about new ways of passive income
Whats your idea of underpayment? If a student loan takes 20 years to pay off at allowed monthly payments, that's not underpayment, but lord that is a weight on your neck.
Kaboom 2000
We can always update the examples. The principle of not commenting about superficial annoyances is unlikely to change, and I think it's helpful (that's why we added it! actually, users asked us to add it, IIRC).
Mandates aren't "passed" they are just declared, either as a health issue or an emergency order.
privacy.resistfingerprinting for that. As for how sugarcoat protects against this, it's unclear. They only mentioned patching out localstorage.
You might find this entertaining

https://github.com/domgetter/NCoC
If my income goes up by 10% and my expenses go up by 10%, am I better off or worse off?

If I had savings, I'm probably worse off. (Yes, I may get more interest going forward, but that won't make up for the value lost by my principal.) If my taxes go up by more than 10%, I'm worse off.
The request is against the government, not the company. Now I wonder if they could release their copy of at least their data if they wanted, or if that is under some kind of restriction.
> Some teams are lucky enough for those environments to be different

Many teams are lucky enough to have them separate, but unlucky because they are different.

Effectively, they only really test when they go to prod.
If you go back far enough, there was no "normal". 40 years might not be far enough back. Different equipment did things differently. Which was O and which was 0 was a matter of convention, there weren't any rules for it and still aren't.
Documents Show Bill Gates Has Given $319M to Media Outlets
You absolutely can and should test in prod in these cases.
Apparently being against infant penis suckers is against HN guidelines.flagged. Hahahahahahah.
The Fascist History of Disney Is Still Influencing American Life (2017)
Twice I've quit without anything lined up.

In both cases, I spent tens of thousands of dollars during the interim lull.

Had I invested that money in our crazy stock market... more money.

It's fine, I'm a spoiled brat in a bubble.

Quit your fucking job. The worst that can happen is a very expensive lesson in humility.
The part where he is trying to think of all the good things he has done with his life and the first and nearly only things that come to mind are insurance and ogling women who are not his wife on vacation is so brutally dreary and depressing
Along a trail in the southwest corner of the Angeles National Forest there's a piece of T-rail stuck in the ground [1]. A closer look reveals the words "Scranton steel" and "'78" [2]. Funny to go for a hike outside Los Angeles and find a 143 year old piece of metal from PA.

[1] https://photos.app.goo.gl/TTD2b8xqU8ZiDaS96

[2] https://photos.app.goo.gl/MWr9pCqFsMaXVYiJ6
are you using any other css animations besides having the middle emote float up and down?
> These YT pages rely on automation. The browser runs Javascript to format the page and to make HTTP requests that send data back to Google (privacy violation, no user benefit). The browser loads thumbnail images, automatically. There are many steps that have been automated. The JS is of course not written by the user, but by Google to support its data mining and advertising business.

This is overblown.

Serious question ... how do you propose these companies that provide these services make money?

It's not free to buy yottabytes of space to archive every video we're uploading. Somebody has to send a paycheck to all the employees who make this happen.

If the response is "pay for it", the entire business model collapses because the vast majority won't pay for it.

And I'm no apologist here. I'm running uBlock Origin in Brave and similar things for a reason.
It's not dishonest to "fake it until you make it", it's a way to address one's feeling of imposter syndrome. It's being comfortable with your own ignorance as long as you're willing to learn as you go.
Seems like Kiva to give 0% loans but for US organic farmers.
Or imaginary-valued, no longer in R1?
GitLab team does it all the time.
TikTok Is No Longer Safe from Your Parents
Yeah I lived in the south bay for a while after graduating. Awesome place, but I'm reaching a point in my life where I'd like to meet more people, which seems tough in the south bay. Thanks for the info.
Interesting. I thought it was a terrible landing page. I guess I tend to prefer "static" pages, literally like a physical page. Phone screen is just a mask. I also hold a controversial opinion that most websites that are animated presentations should just be replaced by a PDF file. I get everything completely "static".
Our production scale is just copied stage environments because our clients are trivially shardable and they only use our service from 9-5 m-f, but hoo boy are there a lot of them
That manager will regret this unconscionable act after the Streisand effect kicks in...
Ask HN: On-site Apple and other employees – are you wearing masks full-time?
The actual title at this time is "This Tool Protects Your Private Data While You Browse".
I agree entirely with you

Do you, though? The GP is pointing out that HATEOAS (terrible name btw -- why not just HAS, Hypertext Application State?) requires a full, stateful user agent for a client to consume the "API", whether human or otherwise. This is what we call "screen-scraping", and it's a pretty tough road to consume an API like that. In particular the GP points out that an interaction requires, in general, a (stateful) crawl of the remote. Note that screen-scraper issues boil down to state (which the GP covered) or "entropy" -- HTML is higher entropy than JSON, and programmers prefer to use the lowest entropy thing, because its much easier to work with, in exactly the same way text is easier to work with than a jpg of text.

What JSON driven SPAs are doing is reifying hypermedia using a static function that maps from JSON to HTML -- and that function IS coupled to the domain. And I would argue you can't get away from that as long as you want to decouple presentation from state - and it seems like HAS wants to explicitly couple them, which is bad news for programmatic consumption because it means changing the page layout will change your API, and that's called "brittle" in engineering circles.

Interestingly, you could rescue a low-entropy representation in HAS by specifying a (hypermedia-specific) function that does the reverse operation of the JSON SPA function, and extracts a low-entropy representation of the page. But this would impose constraints on page authoring, so it's not exactly without cost.
Those posts really are a curse. And they are usually not quite that simple, there is always some PEDMAS quirk to it so ~70% of the people get it wrong, causing yet more comments pointing out how they are wrong and further inflating engagement. Those are worse than the stupid Farmville/Mafia Wars posts that used to horrendously clutter up the platform, at least those are easy to block. Those math things come from all different sources so blocking them isn't effective.
Structured Text, if you want to try it our download CoDeSys for free, it includes a simulator.

In production environments it is most often encapsulated in FBD.
Cost of living is only a small part of the pay differential. Strong candidates with large scale prod experience are concentrated in markets where these skills are most valued and attainable. You can fill headcount for less by hiring out of smaller markets, but not if you want the same candidates big tech is competing for.

If everyone goes remote-first someday, market rates everywhere will equalize, but this hasn’t happened yet.
I don't have a SE account so I'm going to provide the answer he's searching for to get out of the switch statement: dynamic object construction.

He's got code that looks like this:

switch(type) {
case BidPrice:
case BidSize:
MatchSellOrders();

The solution to ditching the switch statement is to create small classes whose names and locations conform to a convention so they can be inferred from the type value:

class BidPriceOrders : MatchSellOrders {}
class BidSizeOrders : MatchSellOrders {}

The corollary to switch statements is "primitive obsession" and that's the name for the code smell that includes enums. An enum doesn't have behaviour. It's just primitive data with an expressive symbol and namespace. The switch exists to couple behaviour to the symbol, both of which exist independently of each other because of poor design. The basic idea of OOP is all about grouping data with the methods that operate on it so that they live and evolve together as objects.

A switch is a middleman that has to understand the type and the behaviour as things that live and evolve separately. It's a point of coupling that needs to be maintained independently of the data and methods. In other words: it's superfluous code; unnecessary complexity that any code-base would benefit from not having to deal with.

So the idea is to replace the enum with an object without having to introduce the switch. He's right that you need a factory, but he's wrong that you need a switch statement to implement the factory. You can also just stick a static "factory method" on the abstract base class that defines the generic object type to keep the code / overhead as low as possible. The pseudo-code implementation is:

abstract class BidType {
static create(typeFlag: BigTypeFlag): BidType {
const className = `${BidTypeClassPath}/${typeFlag}Orders`;
if(!notExists(className)) {
throw new IllegalArgumentException('Unsupported bid type');
}
return new className();
}
}

const bidType = BigType::create(typeFlag);

Every language will have a different mechanism that allows you to dynamically instantiate an object but that's the basic idea.
I think you're understimating how far MISRA goes.

Rules about identifiers for example, no shadowing, explicit typing only, no unused declarations etc.

Rust might get the big stuff but MISRA is adhered to exactly in contexts where things that would be "nitpicky" or over-opinionated for a general use language improve safety. Pure Rust would never be a replacement for that without additional static analysis.
Suggestion-induced physiological phenomena like this are impressive and noteworthy, for sure.

But consider the effects of suggestion upon the more malleable parts of a person. Your mind and opinion.

Consider the powers of authority, conformity, marketing, indoctrination.

Black is white. Up is down.