skysight-inc/HackerNews huggingface dataset:
> the length function for c++ strings does return a constant object -

No, I mean, a standalone function with no parameters can only be functional if it always returns the same value, which is effectively no different than declaring a constant. The function always returns the same value all time (which wouldn't be so useful).

I think you are trying to find C++ examples to match the broader implications of functional programming (which is what I'm talking about), which will be difficult.

As far as whether "functional programming will catch on", I don't think it will for C++ so much, but it certainly has been very successful for many other languages. I earn my living writing only functional code, but most of the time it is not in C++.
"What's so offensive with this: https://i.imgur.com/DK6kB43.png"

Well, after terminator and co. many people (even here) are afraid of AIs literally taking over the world, so it is simply bad PR, if sensationalistic screenshots of AI "thinking" of taking over the world are circulating. Thats why Microsoft tries to supress it.
You can sink it in the ocean - beneath around 500m it just gets compressed and sinks to the bottom. So that would be "permanent" sequestration. The other option is to make it into "biochar" which is basically anaerobically combusting it to leave carbon residues, that you can then bury in the ground. This is scientifically accepted as also being permanently sequestered. This has the benefit of acting as a soil amendment also, increasing water retention and facilitating microorganism development.
> A great example is computer assisted humans are the best chess players.

Not really a great example. People used to say that 25-30 years ago, when the strongest human (Kasparov) and the strongest chess computer were of comparable strength. The article you linked to mentions "Advanced Chess", which seems to have been a thing in the late 90s, but dried up about 20 years ago, and no-one mentions it in the chess world these days. Except very occasionally as a historical curiosity, to contrast with the situation today and for a while now: the best engines, like Stockfish and Leela, are such strong players that even the strongest human chess players would have nothing to contribute in a human + computer team.

https://en.wikipedia.org/wiki/Advanced_chess
It's in my profile.
This goes to the debate of school of thoughts. one school of thought thinks that if you make a AI machine the humans go one step further and not the machine and the second school of thought thinks that things can go like matrix movie where machines will take over and humans will have less advantage.

The conscious is a sacred thing. it lives inside humans which tells them what is good and what is bad. the humans can think out of the box and some legends in human are relying on gut feeling and their true experience. Well surly you can not make a gut feeling inside a machine and can never give a machine your true experience.

Coming back to the point, The machine however is dependent on the knowledge it is building from the internet and for a moment if you destroy the internet where is the machine now. Well someone can say what if it is stored all in the internal hard drive and has index it and make back up copies in cd drives and usb. Ok fine the internet is destroyed and how can machine know what is happening without internet. A machine needs much more to build that. A gut feeling, thought process and the true experience of a human life

So I kind of agree with the school of thought that humans are evolving the machines and building the close match like humans but technically it is not possible ...

conscious comes with a soul and my friends soul is hard to make for humans.

The sad reality is that all humans have soul but not all humans have a alive conscious and if you want to build a AI with conscious the humans have to awake their conscious first.

Disclaimer: I am not against machines but just giving my two cents on the reality of these machines and humans now a days.
A good manager spends considerable time hiring so they can find the best possible people for the role. The manager then ensures their hires have clear objectives and goals and training and tools. Then the manager gets out of the way and lets them do what they were hired for. This takes the least “work” for the manager but can be the most difficult, especially if they are insecure at all.

It really helps if a manager more or less knows how to do the tasks they assign/delegate. But hopefully they’re hiring people better than them at a subset of tasks. The managers job is to understand how it all comes together and the bigger picture of the company.

In essence, a maestro. A maestro can play all the instruments but not anywhere near as well as each individual player. The maestros job is keep them all in harmony so they can all play their best within the confines the maestro provides them.
Looking at your average suburb, there are about 110 houses on quarter acre lots per mile of paved 2 lane road within said suburb, plus an additional bit to connect to an arterial street (which also connects other suburbs) and back out to main drags that have businesses and such.

Starting with the street the houses are actually on, it costs approx $300-$500K to repave 1 mile of residential 2 lane undivided road. Using the upper end we've got $500,000 / 110 houses / 20 year lifespan = $18/mo per household. A rounding error against property taxes.

Now lets assume that per mile of suburb, you also have 3 miles of connecting minor arterial roads those houses also need to account for. These run $400-$800K per mile, and again we'll take the upper limit here. So $800K * 3 / 110 / 20 = $90/mo

So our grand total is $108/mo or $1,306/year. The average American pays $2500/year in property taxes already. I don't think the extra $108/mo is going to change peoples preferences for not being packed in on top of each other. I also don't think that these folks are contributing zero to this now. The gas at the pump is taxed and earmarked for road improvement, some of their property tax goes to it as well.

We can do the same thing for power, water, et cetera. Yes over the lifetime of suburban living a single person probably needs to account for something like $250K of extra infrastructure their sprawl requires, but that's not a lot to pay over a lifetime and a lot of it is already baked into the initial cost of their house (Builders had to pave those suburbs, wire & plumb the neighborhood and that cost is baked into those initial home sales).

I very probably can't make a similar argument for truly rural homes - but a lot of those are farms and I'm sure that complicates things quite a bit - as subsidizing rural farms benefits anyone who eats food from those farms.
This is the standard problem with machines. When humans are given a task they won't usually follow their orders in totally absurd situations. Machines have no definition or notion of absurd.
The "but verify" here is the difficult bit. Calibrating the verification frequency and intensity is the art of balancing micromanaging vs disengagement.

The reality is you verify by being more hands on than you or your report want to in be long term - but a good manager explains what you're doing and that it is time limited intensity to build trust.
See also the Joe Armstrong talk "The Mess We're In"

https://youtu.be/lKXe3HUG2l4
I saw the message today, wasn’t bothered. I can use other 2FA methods.

The question I had in mind, how many users are using it monthly that it would cut costs for Twitter?!
Russia is one of the worst countries for solar power, perhaps bottom ten. It's also one the better connected ones with old school AC HV lines.
Fitbit is getting rid of community features to make way for Google tech
Another Blocked Facebook Account
Hello, fellow HN readers,

I don't like it, and probably neither do you, but I have come with a request for help with another blocked Facebook page, as has unfortunately become commonplace.

My case is an account which has been used in my mom's work to administer their special pedagogy center FB page [0]. They have been locked out, presumably due to bad security. The page does not seem to be defaced. The account will be deleted in less than a week. Upon logging in, I am presented with a message that the account has been locked and two buttons. One says "Download my information", which would be satisfactory, but upon clicking on it, a message saying "Download request unsuccessful" comes up. The second button redirects to the help center, where a form can be submitted, but alas, there has been no response.

This is my last shot in the dark, as it probably is for many people who post requests like this. I thank the HN administrators for their consideration of this request and anyone who is able to help me with this.

[0] https://www.facebook.com/profile.php?id=100063644376851
I still remember the day I got a micromanager when I was a programmer. Previously, I had a manager that was fairly hands off and just let me follow my own path with very little intervention. At that time I produced fairly good work.

The moment I got the micromanager my productivity dropped and I lost interest in the job. I hate having someone constantly check on what I am doing. I quit the job because I started hating it so much.

Now I have a boss who only ever communicates with me when I get something done and I come to them first. It's the best and I am very productive. So, I think one size definitely does not fit all.
The Case for Sleeping with Stuffed Animals as an Adult
Rain is normally quite clean, but in certain circumstances can also pick up various other materials [1].

[1] https://en.wikipedia.org/wiki/Rain_dust
100% right in all regards
I think it's a great book for average people. I read it and found it to be a basic breakdown greatly simplified.

> That's when I realised it wasn't working quite as well as it had the first time.

This is exactly what the book is great at. From the discussions I've been a part of, the book did a great job of really breaking down and creating a system for folks to achieve things.

The author did note that the books' success is part of the rise of the industry its a part of and that's one thing I think a lot of people who discuss this book (for good or bad) overlook. Whatever the ROI has been for the book will always be individually contextual.
It's even worse that these Googlers (managers in particular) are picked up by other companies as a shining example, e.g.: "They'll know how to run a team / organisation."

And usually it's just them doing things like they did before which apparently isn't necessarily a good thing (sometimes is but often isn't). I cannot fault them, given the hiring expectation. But that's the problem. There's this cult that if Google does something ot must be the right way. It's filling books.

It's similar for Amazon hire in my experience.
Surprisingly it's going the same speed of 8m/s as the previous forward flight...
I think that's the actual goal of kcp: https://github.com/kcp-dev/kcp
It's kindof ironic that despite it being quite simple, and there being around 100 years of freely available science explaining why it's not true, some people just can't stop saying "calories in - calories out"
Couldn’t that just be because Sydney’s training corpus might have included a lot more “emotional texts” like Reddit that OpenAI could have intentionally excluded?
Doesn’t work on ipad safari either…
Wow, you described my workplace exactly in a way I never considered it, thanks!
Not that simple. High voltage causes corona discharge, air is not perfectly dielectric. Reducing coronas requires spaced wire bundles for larger effective diameter. There is a sweet spot in terms of voltage above which the costs go up.
You've just described all of law, not zoning. Getting rid of zoning does not automatically lead to anarchy.
It does, if done right.

But russia does not have a solar plant industry, but they had lots of war assets sitting idle around, so they used what they had and learned to do.
I started with Civ2 and played through most of the series. I played a lot of 5 and 6. To me Civ6 is not only the best game in the series. It's my favorite game in general.

The biggest difference is that civilizations in 6 feel distinct. In 5, all of them felt generic with cosmetic differences between them - except for Venice. In 6, with each civilization (and leader) it's like playing a different game. Preserving nature with Maori, settling tundra with Canada, cramming cities and districts with Japan, pillaging with Norway, eurekas with Babylon. I can pick the game again after two months and have a fun evening, without getting bored.

Speaking of districts, I love this mechanic. It makes sense and I like the extra puzzle and planning. I see how it gives board game vibes and I'm ok with it. Seeing the Civ series as simulation games is a mistake. They never were and they can't be. The reason for that is scale - both in size and time. The map is a grid of either squares or hexagons. Each tile has one feature and units move between them. If I zoom in, I don't get sub-tiles where I can do micro decisions. This constrains how realistic the simulation can be. On a world map, a peninsula of the size of Europe can have only a handful of cities.

Time have similar problems. Bronze Age passes quicker than the Modern Era. As a consequence, building the Sydney Opera House can take a hundred of years. And that's fine, because I pick gameplay over realism any time. Even the cartoonish art style doesn't bother me at all. In fact, I find it charming and unique compared to a boring, faux-realistic style of Civ5 which steps into an uncanny valley.

If you want a simulation approach, pick Paradox games. I tried them and I didn't like them, but I understand why they have a cult following. They still have board game elements, but the games are designed with constraints in mind. The gameplay takes a couple of centuries at most. The map isn't randomly generated, but it's scalable. The kingdoms and nations have fixed place. These decisions are consistent and make for a fun gameplay because Paradox games don't try to do everything.

It's better if Civ stays with a board-game approach. Having a clear identity is better than trying to be both "gamey" and realistic. It won't be for everyone and that's ok. For me, Civ6 is a good foundation. I'd like for Civ7 to use some ideas from Humankind, like elevated terrain, stackable armies with zoomed-in combat phase, the fame victory, and traits of a civilization that evolve over time. I'd also like to delegate parts of the game if I choose to. It would help with tedious parts and let me focus on things I find interesting.
> There’s a very straightforward and plausible rationale for Russia (specifically, Putin) to do it: coup-proofing by forced commitment to not turning the oil back on, like breaking your own steering wheel in a game of chicken and throwing it out the window.

And there is an even more straightforward debunking of that version:

a) these pipelines have nothing to do with oil, they pipe gas

b) these pipelines are only a fraction of all the gas transportation infrastructure: there is a huge pipeline in Ukraine that dwarfs NS1/2 combined (and Ukraine happily accepts Russian money as a transportation fee, they've even raised it recently), there is a pipeline in Belarus, there is Yamal, and there is TurkStream.
i want two kinds of manager:

me: wtf is this doing connecting to this socket and getting this response?

mgr: because ............

and:

me: how do i claim expenses on the last trip i went on?

mgr: get form ... i will sign it, and then take it to accounts

unfortunately, you don't often get both, but i have had a couple, so it is possible. and i have tried to be one myself - it is hard.
If you don't have fuck-you-money, chances are you're getting fucked everyday.
you can do this in c++ as well with a lambda

const value = [&]() {
if (a) {
return true;
}
return switch (b) {
case 1: return false;
default: return undefinied;
}
}();
Changing habits have become an insurmountable task. In my 20s and early 30s I'd go on diets, start going to the gym, learn a new language, work on side projects. Since having a child I'm just struggling getting enough sleep and keeping the apartment clean, there's no energy left for reinventing myself or changing habits... It also becomes harder and harder to start something because from experience I know I'll eventually fall off the wagon. Hopefully it gets better once kids are more self sufficient...
It should
- discover other computers

- be able to exchange files with them.

- set the right permissions for sharing folders

- show a descriptive and actionable error message if something goes wrong.

That is all I ask for, the rest I can install it myself.
What would you like to ban, trains?

There's already massive safety measures. If they weren't followed then that needs to be addressed.
SYCL uses SPIR-V. Hopefully AMD doesn't introduce a proprietary format but uses an open standard. It would be amazing to be able to run the same code on AMD, Nvidia, and Intel, both current and future hardware, without recompiling.
I feel like worrying about ethics is often a coping mechanism hard working men do to deal with the fact that they can easily be out-earned by a woman with very little skills.
Doesn’t that describe Replika.ai? There’s definitely a market for it but not sure it’s as big as let’s say a search engine
Pretty sure that the compiler optimizes this and there is no performance loss.
Maybe what you are looking for is threading https://stuartsierra.com/2018/07/06/threading-with-style
I have a stick on heatsink, tiny fan plugged into the vf2 fan header (2 wires don't think it's controlled in anyway) and a 3D printed case[0].

I don't know where the temp sensor is on the board but it read 54 (about 24 above ambient), now it sits at about 32 (ambient +12).
I could only get the minimal image69 running so not much practical use at the minute.

[0] https://www.reddit.com/r/RISCV/comments/104dayd/i_designed_a...
The UX from early Mac OS X days would actually be to either have a self-reliant app bundle that you can simply trash or a pkg-based installer which would leave a so called receipt and ideally an uninstaller.

A UX for a more civilized age…
7.88f is -13.4c.
Oh. I’d like to hear that, too. What would be a good format for you?
That washer and dryer combo does weird things to stuffed animals. A good number will come out matted and forever changed in texture.

(my mother washed ours after one of us got lice. Some things didn't survive and others were never the same)
If data validation in the database is your bottleneck, you have a different problem. Horizontally scaling just to validate data is throwing money at the problem instead of solving it.
While I agree, is it possible that we don't see people come back overweight because those who struggle to meaningfully metabolise their fat reserves just die first?
On the Triple Point Podcast, we don't just talk about the weather
We hear from THE actual #leaders and #innovators in the fields of weather, climate, technology, and society.

In the last 22 episodes of the Triple Point Podcast we covered:

#emergencyManagement
#climate
#weather
#technology
#society
#hurricanes
#wildfires
#drought
#EO
#remoteSensing
#wellness
#health
#bigEarthData
#AirQuality
#ClimateSecurity
#WaterSecurity
#NationalSecurity
#InternetOfThings
#weathermodels
#infrastructure
#builtenvironment
#waterquality
#agriculture
#foodsecurity
#mining
#supplychain
#energy
#renewables
#publicsector
I think this may already be happening. I have two friends that were catfish blackmailed on dating sites recently. Including convincing pictures that could not be reverse image searched, nudes etc. Ultimate goal in one case was extortion, in the other it may just have been acquiring nudes.

No way to be sure they weren't manual, just looking at some of the chats my friends shared, they were well within the realm of what could be achieved with GPT-2 level systems. And mostly echoing the sentiments my friends were expressing, or escalating the conversation in fairly stereotypical ways. Most dating chat / sexting is pretty superficial initially. If this isn't automated already, it's purely due to lack of sophistication on the part of the attackers, there's no technical issue.
Have you read Nir Eyal's "Indistractable"? Hopefully I'm getting my books right" but in that he talks about identity. That is, the power defining who / what you want to be indentified as / with. At the right moments, it's a powerful thought to have.

https://www.nirandfar.com/indistractable/
The answer that Americans don't like is that having a Yale Law school legal team makes a difference despite "justice is blind".
Well we know that it certainly isn't colour blind.
This is soo needed.

All big techs use of voice has so far required Internet access and is creepy. Googles is apawling in that it changes so things that did work, stop working.

What voice needed was for humans to adjust a little to make the computer work easier.
e.g. "Computer" "file save"
is much more efficient all round than sending off audio to the bork for AI to try work out what it means.
Does zoning do that though? A single family home could be occupied by a renter or a homeowner, the same as a condo.
Pics or STFU. Seriously, though, you could post a screenshot of one those fake 10/10 faces you are talking about. You're already anonymous. Otherwise, I don't buy this.

If what you say is true, that better-than-real porn can be produced for $200, then porn stars will all be redundant within a year. I think that would be a good thing, as many porn stars are victims of abuse. Although I think more harm will be done to the consumers, it's probably a net win overall.
Move along then friend, it’s a wide internet with plenty of spaces more curated to your tastes. Reddit has lots of subs where 4chan-inspired humor is off limits, I can suggest them if you like. I’m sure when OP chose that name and logo he was worried about wet blankets coming to ruin the fun, well here one is.

If you’re the type to be offended by innocuous 4chan memes, you probably weren’t the target audience to begin with.

Personally, seeing a familiar, endearing meme like that actually brought me some comfort that the author was someone who was also raised online, not a bootcamp grad looking to cash in on a trend.
Perhaps it's better to seek to inform and influence policy, rather than be passively dictated by it.
The BBC is consistently at or near the top of the "world's most trusted news sources"[0]. It's also one of the oldest news sources.

"August BBC" therefore makes perfect sense and is a defensible claim.

[0] https://www.makeuseof.com/tag/trust-news-sites/

[EDIT] typo.
Tbh this reads like a comment from somebody who never visited a red light district, not tried a lot of MDMA and neither saw top quality AI porn. If this is true, why do you think your recommendation holds any value?

I can totally feel the parent poster. This is not about sex per se, this is about absolute sexual beauty that is quite hard to find even in the top secret VIP escort salons, not even talking about the proletariat-style red light districts.

And MDMA has a pretty bad seratonin depletion hangover, if you tried to do it even for a couple days straight, this would be an obvious negative experience and the reason why people actually rarely overdose intentionally.

AI porn definitely has an opportunity to create a pretty bad cheap ecstasy cycle with no massive physical drawbacks and we are definitey heading there.
Twitter to remove 2FA by SMS for non Twitter Blue users
I think you can do this quite easily.
Use docker compose to start an nginx and maptiler/tileserver-gl. Use an nginx config to send requests upstream to tileserver and cache.

Download a region file from maptiler, or make one.

That's it.

It's about 2h work, using certbot for certificates.

If you want to create your own styles, it's slightly more fiddly, but essentially it's https://maputnik.github.io/editor/#0.41/0/0

Host on hetzner for €3/month.