skysight-inc/HackerNews huggingface dataset:
Ternary operator is an expression, first implemented as COND in Lisp.

In some cases it can be optimized to remove branching, especially when vectorized for SIMD/SIMT.

int a,b,c,d;
a = b ? c : d;

// optimized to something like this:
a = b*c + (1-b)*d

In some PLs even loop statements can produce values (CoffeeScript, Autocode), i.e. similar to list comprehensions, which are undoubtedly expressions.

I'm a kdb+/q developer, and most of the q code are expressions without conventional control flow operators (the only place they're used is outside of the main path: i.e. logging, testing, etc.).

IMO control flow (i.e. actual branching and looping) is just an implementation detail.
There are no religious nuts in cancer-holes.
The Business Lunch May Be Going Out of Business
Thanks for the tip. I'll give this a try!

For work, I have to run Microsoft Teams, Slack, and Discord. Of those 3, Slack surprisingly uses the least amount of memory (~700 MB), and Teams uses the most (~1.5 GB). I dusted off an old Intel Mac (literally) and interact with it using Universal Control. It only runs those 3 chat apps + mail. It's turned out to be a great way to offload resource hogs and as an added benefit, it minimizes distractions. I'll occasionally glance at the dock to see if there are any notification badges, whereas on my main Mac, I'd feel compelled to deal with notifications immediately.

When I have to share my screen or focus on a conversation, I'll fire up one of those 3 apps on my main (M1) Mac and quit it when I'm done.

Universal Control still feels rough around the edges, but it has saved me from ditching my Macbook Air and shelling out for an M1 Macbook Pro. Sometimes there are issues with reconnecting to the Intel Mac, but it seems to resolve itself if I wait a bit or turn off/on wifi.
I agree. Here are some discussion in HN:

https://news.ycombinator.com/item?id=30774724

https://news.ycombinator.com/item?id=29638547

And an interesting profile about him:

https://protesilaos.com/about/
After the lolcats, we definitely are in the area of rubbish staged fake videos with nobodies.
The states where abortion is restricted have laws passed by legislatures, and voters can replace those legislatures. The vast majority of issues are not settled by referenda.
> No I’m not changing my question

Come one, you totally changed your question!
We Need Agile Development for Education
At least if it's staged you know all the parties are in on it and it's not leaving someone "holding the bag".
I misunderstood and assumed all rentals in Vienna were under this system vs. only public ones. I do wonder if the city continues to provide supply, what the downward pressure on price will be for private units and if that eventually harms overall supply. I'm sure there's data on this somewhere, and I'll dig later today.
I don't want to live in the projects
Yep work remote it’s just startup life unfortunately
You cherry picked the companies though. Take the index for the top companies in some other country than USA and that investment no longer looks as secure. USA did great the past 100 years, many other countries didn't.
And what does that have to do with my comments?
Why don’t these folks have to get a signed release to use footage of a model? I get that it’s a public place, seems like that still applies on the commercial interest. Couldn’t she seek damages for use of her image without her consent?
They should get the $20 back, and rights to buy into the next opportunity at a fixed price. I'm pretty excited about that.
Given that index funds track the most popular funds is it actually the case that money is distributed differently than before? As an index fund investor I have no illusions that the index funds are immune to dips, but I know that I'm saved from the extremes that individual stocks provide - the odds are excellent I'll never wake up ruined overnight, but by also I'll never get spontaneously rich either.

Just for context, while they have grown index funds only make up 10% of the market according to vanguard[1].

[1] https://www.vanguard.ca/documents/truth-about-indexing-en.pd...
It's difficult to comprehend just how bad traditional finance is at this unless you regularly experience it. No, I'm not talking about chafing under regulations against doing crime -- the number of unforced idiotic bureaucratic errors is absolutely off the charts, in addition to being very slow and very expensive.
Scotland's Seaweed-Eating Sheep
Hypergraphs Reveal Solution to 50-Year-Old Problem
The question is around scope, if you are building a strategy for yourself or your team - set smart goals. If you are building a strategy for an organization, then set KPIs. If you are building a strategy for a 100+ person organization, then you talk about vision.
I strongly disagree. Content fades in moments after scrolling, and there's no content at all if JavaScript is disabled. The author clearly values style over usability.
The High Price of Cheap Shrimp
well it's the consequence of

#if SOME_STUFF

evaluating to 0 if SOME_STUFF isn't defined
I suspect the point is that the preprocessor language expression syntax that is out of whack with the host languages it is integrated into. If you hoist an expression of the language proper into a preprocessing directive, you may get gibberish.

This could happen by accident, particularly through layers of macros:

Say you have:

#if SOME_MACRO(ARG)

originally, this expands to an constant expression in which everything is an integer; then someone edits the macro. Things may still compile, but the expression is gibberish, not doing what it looks like it's doing.

The macro could be used in non-preprocessing contexts:

int x = SOME_MACRO(X);

if (SOME_MACRO(Y)) ...

so that programmer might have a good reason for editing it; just they didn't notice it's also used in an #if directive.
Which of these "affordable" options are you too good for: https://housingconnect.nyc.gov/PublicWeb/search-lotteries

Also recommend checking out this video about Vienna https://www.youtube.com/watch?v=41VJudBdYXY
So you're telling me that the government should build millions of new units in NYC, until they control 40% of the market? Am I understanding that correctly?
The best way for a Western man to experience what it's like to be such a person, is to spend some time in the third world.

Analogous to the ubiquitous harassment and "male gaze" encountered by people like the author (because dudes want their bodies), you will experience ubiquitous (and aggressive) harassment and "third world gaze" -- because everybody wants your money. "I'm not just a pair of boobs" becomes "I'm not just a walking ATM", and so on.

You will continue to want to go out in public, but you will also want to find "safe spaces" -- expat hangouts, good hotels... places that keep out the riffraff. At some point you just need to be able to hang out by the pool without somebody trying to rip you off in their tuk-tuk or sell you a suit.

Or, say, go to your yoga class before making your way to the job from which it's too much political hassle to ever fire you.

Whatever. Chronos crushes us all. "I am become time", says Vishnu. She'll learn, eventually.
I think people down voted this thinking it’s pedantic, but there is a pretty significant distinction theologically between this Quran passage and the biblical description of how sins are forgiven. Although both books do encourage secret charity.
While there is value in the avoidance of Anti-Money Laundering and Know Your Customer regulations, it's also not a feature that bodes well for the future lawfulness of the ecosystem.
Oh, to be clear, I'm all in favour of hydroelectricity. I grew up beside a hydro dam with many neighbours who worked there. It's great stuff.

My concern is that we'd be talking about perhaps doubling the variable output needed from the existing system if we turn off the gas plants. Instead of needing 1 MW from them on a hot summer day, we suddenly need to ask them to provide 2 MW. Maybe it's doable, but it's asking a lot.

Imagine you've got a proposed project that will double the peak demand on my database. I say "What's the problem? The database works fine. There's no need to upgrade the hardware!". Same idea.

And climate change just adds more uncertainty, because droughts and floods are more common- while hydro does best with a steady input of water. I'm certain Quebec will be fine, because it's not planning to try to double the peak load on its plants.
SpooOooOky ghost keyboard mashing commences :-)
The flip side is that statistically one would have likely put it in a security that declined over the past year.
You can get all that online. So it might make sense to move these communities to somewhere very very cheap. Or even distribute them around.
I remember having to boot my first distro from DOS because my sound card (a weird thing that was a combination of modem and sound card) didn't have Linux drivers. I would first load the DOS drivers, then boot Linux from DOS and it would then recognize it as a Sound Blaster.
> I have no idea why this would ever be done.

You'd never literally write

#if static_cast<bool>(-1)

but it could be the result of a macro expansion.
It’s not necessarily illegal (criminal) it’s the potential damages for the civil offense (using her likeness without her consent causing untold losses to her).
How well does DyanmoDB scale when paired with AppSync and GraphQL? The selling point here being you can use GQL as your schema for the DB too and get automatic APIs for free
The United States is a republic with distributed decision and rule making, mostly. The last century has seen a movement towards centralization and BigGov, much like all of society. Also, the second amendment is about more than a militia. Think back to that time and how necessary a gun was for survival generally, a.k.a. hunting and protecting one's self and property. The abortion issue is not about religion, it is about when life starts and people have different beliefs on that. It's probably an unsolvable problem because some don't want to listen to the science in this case?
Solid advice!
Amazon offers to limit use of merchant data in bid to settle EU antitrust probe
The CH class record stores the chaosnet host id that corresponds to the dns entry. Chaosnet didn't use IP addresses (which are specific to the internet protocol) to identify hosts - it used a 16 bit number composed of an 8 bit subnet ID and a 8 bit subnet-local host ID.

When querying the DNS you specify the class of address you want (IN, CH, whatever) and the resolver returns you the corresponding record. So if a host has a connection to an IP network and an Chaosnet network then it would have two entwork identities and its DNS zone would contain both classes of ID.

Obviously IN is really the only network class that is used now, but these things persist in old code.
You should not need $16k in lithium batteries for critical load backup of a water pump. You can get 5kwh rack batteries for $2k that will last 20 years in stand by applications [1] which should run a well pump for about 5 days under typical usage (30 minutes per day), if you spent $16k you would have 40kwh of battery capacity enough to run everything including the A/C in your typical home for a full day.

Not sure what the permitting / venting issue would be with VRLA (sealed lead acid) as they are used in UPS's everywhere and only vent gas under extreme overcharge conditions. However if I where getting new backup batteries I would definitely go with LFP due to less space used and extremely long cycle life while being very affordable, they also have much more usable capacity than a lead acid and a much flatter voltage curve. I replaced my lead acid in my RV and got 4 times the capacity in the same space at half the weight and I should never have to replace them, they will probably outlive the RV.

The biggest failure mode with both solar systems and battery systems is the electronics components of the solar controller / inverter and battery BMS. The mosfets or capacitors or digital controls seems to fail much sooner than the solar panels or lithium battery cells. Not sure if its just using cheap components to save money or what, but it definitely helps to oversize the controller, inverter and battery BMS's. Would be nice to see GaN or SiC FETs and components in residential solar equipment.

[1] https://www.us.sokbattery.com/product-page/sok-48v-100ah-ser...
Any sufficiently useful strategy to handle complexity needs to have some amount of ambiguity, which needs to be filled in by people with a minimum of life experience and good intentions.

I've become more convinced in recent years that even a well thought out strategy can't be implemented by the average post-modernist cynical office workers, and the secret right now is identifying how you can have a highly robust strategy.

Laws and incentives are not enough to build a society, they're just necessary. A culture with good values that also punishes bullshit/imorality seems to be required.
Well, not if I am buying inverse/short index funds. :)
Agreed. I don't see any kindness in this video at all.
Why Starting Python on a Fresh EC2 Instance Takes over a Minute
The legal system of the U.S. recognizes Third Party Doctrine.

I am not an espouser of that legal philosophy. I draw a hard line. Business with me is no one one else's business but me and the customer in question. I believe there is an expectation of privacy in business affairs.

I call it Professional Discretion.

Yes, before you ask, this makes my life comparatively miserable in today's world. No, I'm not amenable to changing my view on it, because I've seen enough of how the rest of the world treats it to realize just how pathological things become when no one respects anyone else's privacy anymore.

You can ask. But it's up to me to say yes. Everyone else has trouble even grokking the concept of asking anymore.
> protect adults from legal - but harmful - content

Seems reasonable and not ripe for abuse
Previously:

https://news.ycombinator.com/item?id=24951130 (2020)

https://news.ycombinator.com/item?id=17637375 (2018)
Go has even uglier half supported things like #embed.
Given the clear editorial choices via moderation that the platforms have chosen to undertake I would be in favor of treating them like a newspaper of TV Station
Criminal and civil lawsuits are separable.
"I'd still urge anyone thinking about using it to carefully reconsider whether their problem is truly unique enough that a traditional RDBMS couldn't handle it with some tuning."

Lately, the problem I've seen is people who haven't even considered whether their problem is truly unique enough that a traditional RDBMS couldn't handle it without some tuning. (Here I don't count "set up the obvious index" as "tuning", because if you're using a non-RDBMS the same work is encompassed in figuring out what to use as keys. No escaping that one regardless of technology.)

I'm losing track of the number of teams in my company I've seen switching databases after they rolled to production because it turns out they picked a database that doesn't support the primary access pattern for their data in some cases, or in other cases, a very common secondary access pattern. In all the cases I've seen so far, it's been for quantities of data that an RDMBS would have chewed up and spat out without even noticing. It's amazing how much trouble you can get yourself into with non-relational databases with just a few hundred megabytes of data, or even a few tens of megabytes of data if you fall particularly hard for the "it's fast and easy!" hype too hard and end up accidentally writing a pessimal schema because you thought using a non-relational database meant you got to think less about your schema than a relational DB.

That is precisely backwards; NoSQL-type DBs get their power from you spending a lot more time and care in thinking about exactly how you plan on accessing data. Many NoSQL databases loosen the constraints on what you can store in a given record, but in return they are a great deal more fussy about how you access records. If you want to skip careful design of how you access records, you want the relational DB. And nowadays, tossing a JSON field into a relational row is quite cheap and effective for those "catch alls" in the schema.

There's some interesting hybrids out there now if you want a bit of both worlds. For instance, Clickhouse is not an SQL database, but it more gracefully handles a lot of SQL-esque workloads than many other NoSQL-esque databases. You can get much farther with "I need a NoSQL-style database, but every once in a while I need an SQL-like bit of functionality", than you can in something like Cassandra.
There's huge overlap, but if you want to differentiate them, then you can do it like so:

A strategy is high level stuff. Typically vague and open to interpretation. It's about general approach and big decisions, core principles and goals.

Tactics/operations is the details given a particular situation or project. They can be grounded in specific steps to take.

A plan can be understood as formulating tactics and bridging the gap between strategy and tactics. You may have multiple plans that you pull out given some events and circumstances. I think there's overlap with the term 'protocol' as well.

As for good historical examples you may look at military strategy. The most consistent and successful ones are often the most boring: robust logistics and well-provisioned forces, cultural assimilation, high discipline/training, mass produced equipment, specialized roles, competent officers etc. Those are broad strokes and not necessarily specific implementations (even though they matter too). Look at the Romans or Ottomans for good examples.
Not sure where this link is trying to take me?
To anyone considering getting a license: the address you use does NOT have to be your actual home address; just one you are able to get mail at. But yes, remember that the address will be publicly available, along with your name, so choose carefully.

I've yet to actually have a verbal conversation on amateur radio; I've been having enough fun playing with WSPR. Those folks are generally pretty nice. I've received some signals here in Germany from US callsigns that, upon looking them up on qrz.com, turned out to be older men I would absolutely cross the street to avoid, but others from old guys I would happily buy a beer or coffee to get their stories, such as one long retired Chicago-area broadcaster who runs a website of Chicago TV history, including footage of a young, carefree-looking Obama. The former usually are transmitting with waaay too much power for Weak Signal Propagation Reporter; the latter are playing by the spirit of the thing and are doing cool nerd things into their 70s and 80s.
Since you are technically correct, the best kind of correct, I'll try to one-up you by pointing that the Atari 65XE, which was the actual successor of the 800 and 800XL ;-)
Interesting... Last time I brought this up there were some very fervent Delphi fans that seemed to agree with you. My first dev environment was VB, so I am probably biased.
With the amount of beggars in cities, I already highly distrust anyone who comes up to me to speak to me. 99 out of 100 times it is someone who tries to somehow enrich themselves.
I think it depends entirely on your use case. If the user isn't storing a lot of info in your app then passwordless is the way to go.

Also, important to recognise that replacing a password with a different single factor does not enable passwordless as used by most enterprise companies. Passwordless implies two factor, with both factors not including a password.
> but the reality eerily matches this hypothesis,

Of course it does, since you developed it to fit the data. Try making a prediction about things you don't know yet instead of creating a hypothesis for observed data, which is easy to make fit.

Humans are great at developing arbitrary stories for observed data, nut nearly as good at making predictions (other than linear extensions of currently observable trends).

If your theory only "predicts" the data you used to develop it it's just a story.
Used for profit without consent can very well feel dehumanising.
> ...as long as we have chargers wherever you park your car. Which should be an easy mandate to enforce.

You also need to modify (heavily) the electricity distribution lines and infrastructure to add the capacity to actually power such a large number of chargers.
> It is incredibly disruptive to sleep cycles.

Extremely apparent too. It'll put me out real fast, but I'll be awake in a few hours and then repeat a few more times till the sun is up and you gave a splitting headache.
>>on pure EVs they basically last forever thanks to regenerative braking. Perhaps modern hybrids do have that benefit as well now though.

They do. I have owned an XC60 PHEV for over 2 years now, after 20kk miles the brake pads were 5% worn. And it's a 2.2 tonne, 400bhp SUV. Without regenerative braking the pads would be almost gone now.
Ukraine’s new rockets are wreaking havoc on Russia’s army
Most companies use some other company. The company I use, which is local to where I live because I want the local reliable support, uses Enom. I can't be bothered to get an Enom account so I pay them. Others use resellerclub etc. So instead of going with Godaddy or any of the big names, get a hosting provider with rock solid customer support and service. Either way, you'll probably end up with a domain from Enom but at least you'll have good service from a local provider.

Again, in case most people don't know this, most hosting providers are resellers of the big companies. They all do the same thing and have access to the same stuff. The only difference is that individual company's pricing and service. Pick wisely!
I think the distinction comes from differing worldviews on moral behavior.

Consequentialists believe all that matters is the "ends". So even if I filmed something with the aim of patting myself on the back but it made people feel good, it's moral because the outcome was positive.

Others believe all that matters is intent. A good Samaritan may act recklessly and end up maiming somebody, but they acted morally because they had positive intent to offer aid.

(Of course, there's many other takes but those seem to be the one's germane to this part of the discussion).
The missing alias command for kubectl
A lifetime free zero-cost gopaddle community edition for #Kubernetes Developers - A blazing fast approach to building & managing Cloud Native workloads on microk8s!

end-to-end modernization & automation
auto-generate Dockerfiles & Kubernetes YAML files
Ready built tools for monitoring - Prometheus, Grafana, EFK, etc
Setup CI/CD in minutes
Agreed. While climate change is a real threat, I don't think many people realize just how much water is in Canada, and Quebec in particular. Snow/rainfall patterns certainly can fluctuate, but Canada experiencing severe water shortages would mean the rest of the world is long past the crisis stage.
I find this a real shame. If the code was available, a lot of people could be writing small programs for the GUI, running it on emulators, playing with the GTIA overscan modes (it can do more than 192x320 pixels) and so on.
Crashes typically happens because some part of the market was overhyped and people invested too much money in it. But what happens when the market as a whole is hyped, and people invest lots of money in that? Well, then the market as a whole becomes overvalued, and the market as a whole will crash in the next recession. You can see this being the case with the buffet indicator, stock valuations are higher relative to gdp than ever before. So instead of people pumping up some specific segment of the market that then crashes, this time people pumped up the entire market.