skysight-inc/HackerNews huggingface dataset:
Before you edited your comment, it was purely about average consumption of grid electricity. However, that’s not even the “personal, immediate consumption”. It’s just… grid electricity. You eat. You have clothes, devices, machines that had to be made and shipped. You heat your dwelling. Everything counts. It’s sometimes hard to quantify what this means, a lot of amortization is always going on.
I wonder why reader mode doesn't work here.
its at least cubic, but the loop here is generalized farther where the sub circle can be phase. so i don't know???

linear search in angle i believe, though depending on the use case i hold onto the index of the last matched point making the next search O(1)

thanks for introducing me to the secant method. at the very least it will help me think about it differently
> All because highly paid programmers are scared of RDBs.

Really? That's not my experience over the last thirty years of programming. As soon as relational databases became something that everyone could use we all jumped in And not just programmers either, a lot of people who never wrote a line of code in their lives became adept at writing SQL in order to get around limitations in ERP systems for instance.

Is this problem something that afflicts only younger programmers?
It gets extra fun when you realize that all of this also applies to the police.
> It achieves this in ways that seem subtle to us-- clearly so, since it wasn't really discovered and applied until the late 2010's

I'm getting a little annoyed by the structured concurrency crowd ignoring the synchronous concurrency paradigm as a historical precedent. It has existed since the 1980s and as far as I can tell there is a huge overlap in concepts. The only major difference I'm seeing is the addition of scoped asynchronous concurrency on top of synchronous concurrency (meaning single-threaded concurrency). That's significant for sure, but also not so much that it's cool to ignore the existing previous work.

Here's Céu, a language from 2011 with scoped synchronous concurrency:

input int KEY;
par/or do
every 1s do
_printf("Hello World!\n");
end
with
await KEY;
end

(Prints the “Hello World!” message every second, terminating on a key press.)

And hey, since we're talking about Lua, maybe we can acknowledge LuaGravity, which has existed since 2009?

Don't get me wrong though, I'm glad structured concurrency is catching on and that new work is being done in this area.

[0] https://en.wikipedia.org/wiki/Synchronous_programming_langua...

[1] http://ceu-lang.org/

[2] https://fsantanna.github.io/luagravity/
That’s absolutely fine. This article is aimed at people who race bikes for fun and for a living.
Degrowth will absolutely remove more enjoyable life-years from the planet than even maintaining the status quo, let alone achieving technological progress that will allow carbon-free 2000MW per person. The latter is certainly preferable to the former.
FTA: What have I learned from YC's users, the startups we've funded?
This seems very misguided. The problem isn't energy usage its the side effects of the energy production. If everyone was using a megawatt but this was in the form of some factory on the moon being incredibly inefficient as they make the new Must Have MoonRockTM that gets teleported to your living room this would actually be just fine.
Simultaneously finding collisions in multiple hash algorithms with 2 random inputs would be a hard task, and if one of those inputs is predetermined (your data), and the other needs to include a change that the attacker wants to see there? that really sounds impossible. But on the other hand, we are talking 500 years...
Lumping C and C++ together implies much about the use of the language - "modern" C++ features go out of their way to avoid memory unsafe and bug-prone operations (avoiding raw pointer arithmetic, no manual new/delete memory management etc). Comparing Rust against the overlapping subset of "C" and "C++" is rather disingenuous. It's like writing /everything/ in Rust in an unsafe block and avoiding all the tools that actually make it a more productive language.

I'd agree today you totally shouldn't be starting new projects in C-with-classes style C++, and take advantage of all the newer tools available in newer versions instead. Sure, Rust and similar may have even better tools to help the programmer, but talking about raw productivity, especially in shorter projects, learning a new language and all the fumbling and mistakes and anti-patterns that can hurt the result, as well as longer-term maintainability, may be worth consideration. Especially, as even if the core project is brand new code, the library ecosystem it's working in may still be more mature around other languages.

It totally makes sense to me relegating C and older-style C++ to systems where it's really the only choice (platforms with older/poor tooling, places where the resulting code requires more massaging than usual like resource-limited embedded situations and the developer is already skilled in this with their current toolchain, other situations that no doubt some people will find etc etc.)
48kWh per person per day? That seems like a huge amount. I live in an a place where we have to run the AC almost all day and we use less than this along with all the other electric appliances.
Can C++ be 10x Simpler and Safer?
How do you want to make sure that the hashes themselves haven't been tampered with?
It will certainly be more of an effort with the fully, but I don't see anything wrong there. I'm not even sure we have a lot of so-called gravel trails here (not the UK) but the norm is more: people ride on MTBs and sometimes there's a rider on a gravel bike or cyclocross.

> I already have a mountain bike and a road bike so not keen to add a third!

Why would you say that? :)
As envisioned by sci-fi authors like Heinlein.

The only problem is storage. Carrying a wallet with a few MJ in it may be just hazardous, even if transferring funds is 100% efficient (using superconductivity). So any realistic scheme would include some tokens, with associated energy stored / generated elsewhere.

More realistically, these tokens are associated with the economic and military might of the issuing party; this is similar to what modern fiat money is.
Internet haiku
The past is shrouded in mystery, but the evidence is overwhelming for ancient people having had pots.
Better standup is to have a beer in pub :).
> we need to even begin requiring this via regulation for certain applications, at least for those that involve the personal or financial data of customers

wow that is an awful idea
Is this typical, or atypical?

If it's typical (i.e., they're comfortable doing business this way) then yes it's time to move on.

If it's more or less a one-off and you believe your efforts will be rewarded eventually - and you're satisfied with the company and culture otherwise - then maybe it's worth staying.

In either case, guard your physical and mental health. In this regard, trust no one but yourself.
It's not that hard to build a display controller but it's problematic for projects like

https://www.youtube.com/watch?v=LU5989eVRZs

because that kind of system competes with Raspberry Pi which puts a lot of downward pressure on what is an "acceptable" price.

Real 8-bitters used custom chips for their display controllers, but if you don't use custom chips you need a few handfuls of logic chips and you wind up with something about as expensive as the video card linked to above. To justify a custom chip you need big volume. You can make a display controller from an FPGA or Microcontroller, it's probably cheaper than one made from small chips, but still not cheap enough... And there's something absurd about using a much more powerful part than the CPU to run the display.
Candidate search shouldn’t take forever - especially not when the data is widely available out there. With a mission to reinvent technical and IP recruitment, HardSkills is the first recruitment-centric patent database empowering recruiters with the tools to find qualified candidates for any R&D, engineering and technical role in a breeze.
>which pictures the average citizen of energy poor countries reducing their overall average primary energy usage rate to no more than 2,000 watts

Why the distinction? Why not all citizens?
Yes, this. There's actually not that much US-style "gravel" in England and Wales: basically a few Forestry Commission tracks in mid-Wales, Northumberland and places like that. Elsewhere it's single-track bridleways that dominate. Routes like King Alfred's Way, the Pennine Bridleway, the Great North Trail and West Kernow Way are sometimes marketed as gravel routes but they're probably more MTB than anything.
Hm, from a purely agile standpoint: This seems to reduce daily stand-ups to status report meetings (and then, why have a stand-up at all?). Does a stand-up that is over in 5 minutes (and has 10-15 minutes of prep time) really bring value to anyone but a team lead?
Generate a dot clock with a crystal.
I think Rust is already incredibly successful for what it is.

Rust isn't aiming to replace Ruby or TypeScript. Rust is focused on being a high-performance systems programming language. It makes big sacrifices to avoid having a garbage collector, VM, or other significant runtime dependency. For maybe 99% of programs having a GC or VM is perfectly fine, and you have lots of nice languages to choose from there. But Rust focuses specifically on areas where Ruby and TypeScript are poor choices or even entirely impossible to use.

Rust's popularity has already surpassed other C/C++ alternatives like Ada, D, Nim, Pascal, Cyclone, Checked-C, Zig, and depending how you measure, even Objective-C. It is already confirmed to be in the next Linux release. None of the previous C killers got even close.
That’s awesome. I was expecting a lament on how an amazing startup idea was stolen and monetized by someone else. Glad I’m wrong and the world is a little bit better.
If only there was a universally available program and format for programming API’s we could reach for as a single command. We could call this man (short for manual).

What happened? In C ecosystem this is a no brainer. Why can’t my frameworks offer a simple man page I can download into a folder and it works offline. Why does modern documentation require such fancy things like a web browser?
that sounds like something i haven't tried and may yield results

gracias
I'm confused.

"It noted that "a few items" had been looted from it in the short period of time between its discovery and closure."

and

"The cave was uncovered on a beach Tuesday, when a mechanical digger working at the Palmahim national park hit its roof..."

So since Tuesday it's already been looted?
That's unfortunate.
as others pointed out i misread the article, which says 2kwh per hour. indeed that is easily do-able.
A Jupyter notebook would work in much the same way, and has the advantage of being able to mingle Markdown in with the code.

Neither is as approachable for a non-programmer as the OP, however.
Cyclocross bikes also have higher bottom brackets
If you live alone and use 10 kW constantly, and an airliner uses 40 kWh per passenger per 100 km, that means per day you use 240 kWh, equivalent of 600 airplane kilometers. If your season travel is 6000 km, and you don't need any energy in the destination (since it's a paradise), it is worth it if with that you can stay there for more than 10 days. (2400 kWh). If you travel away for 3 months, you could save 90 x 240 - 2400 = 19200 kWh. If a kilowatt hour costs 10 cents, you save 2400 dollars in electricity bills and of course you pay back some (or all) of it in flights.
uBlock Origin Lite: Description
I know there have been some threads about the mv3 uBO version recently, but this is a new, consise and imho good description by gorhill himself.
I'm of the opposite view.
I worked with many SWE teams, and estimation was, in every case, a waste of time.
Deadlines and estimation don't work well for building software, especially web applications.
In my experience, what works is working on lean features with a small scope, fast iteration with continuous deployment to gather rapid feedback, and constantly changing the project's scope and direction.
It's also crucial to do this kind of testing for users who are disabled, elderly, children, etc.
How to Exploit YouTube [video]
Note that he's revealing 3 other social media exploits in that subsequent "'proof' of exploit" video.
My reading is that Rust doesn't allow overloading of constructors (don't exist as such) or assignments or whatever is actually needed for copying move constructors.
Irrelevant. All the old, problematic approaches are still valid code, and hence from a security perspective they are vulnerabilities. Whether or not you, personally, trigger those vulnerabilities or not doesn't matter: the stack is vulnerable.

Note that you might choose to forbid anything that doesn't count as "modern C++", e.g. by enforced linting. Equivalently, you could instead have your compiler reject such programs (perhaps deciding to rip out various features and modules from the compiler, to avoid them being used). Either way, you're no longer writing C++: you're writing some other language (say, "C+++"), which is a sub-set of C++. In which case, you've done what the author suggested: deprecating C/C++ in favour of something safer!
I think you’re overestimating the ability of most of your competition. As a former racer, you probably have leftover power and you know how to race. It was less about your bike being “light” and more about your personal ability.
Is there a path to upgrading Java on Android? Surely new Android releases could do easily?
Because total greenfield projects in systems languages is still a pretty rare thing. Writing a new game with a C++ game engine isn't going to count, for example, and that means quite few things will.

I actually think it is quite widely used in this small niche. Don't have any data to back it up and my newsfeed is probably biased.
Maybe because everything is in tables?
Right. virtual-fido is similar to Apple Passkeys in that respect.
Symmetric cryptography has come a long way since MD5. Any one of SHA-256, SHA-3/SHAKE256, BLAKE2/3 would be fine.
Any non-trivial project would quickly reach RLIMIT_NOFILE as inotify is non-recursive, so you'd need to open a new fd for each monitored file.
Use decent IDE like Idea to take away all those primitive syntax issues.
Which you don't have to attend, because you're the lead IT guy whose job is to solve the crisis, not reassure the meeting people.

I work at an energy company at the moment, the servers are overloaded because more old-fashioned IT and there's an energy crisis ongoing tripling people's monthly expenses and putting them into poverty. Everyone's panicking, but I hope they're not trying to force quick fixes or skipping due process. We're still doing code reviews and going through our regular deployment processes.
Why 2023?
Portugal, either Porto or Braga. Let me know if you'd like to meet!
"so the value of what is taken is lost when it is removed from its context."

You can still sell it to collectors. They know the context.

And about the why people still do this in 2022? Probably because not everyone is wealthy or interested in accurate history.
A good EV will get about 3 miles per kWhr. So 20kwh recharged over night will get you 60 miles per day. IMHO EVs need MUCH larger batteries to facilitate longer range driving or deviations from a daily routine, but that doesn't change the typical energy usage much.
For small handicaps, maybe you can see it that way. But it's harder to call a move "objectively best" when you're technically in a dead lost position.
That doesn't really change the fact that the only job you can really get is in cryptoshit markets.
Seems like Java is ported to RISC-V on Linux now
Testimony to Congress outlines employer anti-union efforts
This is how I accidentally had a test message sent as a push notification to a few ten thousand people; our test/dev mongodb instance was on the same machine as the production instance, the boss asked me "can you switch it to the test db so we can send a test message", I was like "sure ok it's on test now" but it was not. Whoops.
Clock sync trouble with Digium cards and timing cables
And now google "J. Edgar Hoover blackmail" and despair...
For the next 500 years though? I suppose (as a crypto layman) it'll be fine, but given we don't know what will be broken within the next 500 years, isn't it natural to add redundancy and use multiple hash algorithms?
Looks fascinating.

The only concern I have pitching this to my company is security. There isn't a dedicated page (or even a blog) talking about security practices Spinach has taken into account with the platform.

The only thing I saw regarding security was a semi concerning mention in the Privacy Policy:

> Company takes reasonable steps to protect the Personal Data provided via the Services from loss, misuse, and unauthorized access, disclosure, alteration, or destruction. However, no Internet or email transmission is ever fully secure or error free. In particular, email sent to or from the Services may not be secure. Therefore, you should take special care in deciding what information you send to us via email. Please keep this in mind when disclosing any Personal Data to Company via the Internet.

All stand ups we run technically contain "Personal Data".
[Ignore me, I misread. Original comment below.]

> 5kW (that's 5kWh per hour)

It's 5kW for an hour - but I think you understand that, and implicitly mean something like 'per hour continuously/on average over time' (where the 'over time' makes us dimensionally ok again).
Is there something rocket-scientific about putting those anti-shoplifting tags on baskets ? Asking for a friend.
Ask HN: MacBook M1 development workflow?
The battery life on the MacBook M1 is pretty amazing but not having Virtualbox has been a pain and we are exploring options for our new team. I have mostly worked for companies with actual teams dedicated to providing build tools.

Past attempts to Dockerize all the infrastructure dependencies (e.g. we run our own database and DNS servers) and tying all of that with the build scripts was deemed more effort than its worth so that never got off the ground. Maybe its different from scratch?

I have tried a bunch of these projects so while interesting I'm not sure about building workflows around them:

https://mac.getutm.app/

https://github.com/KhaosT/SimpleVM

https://github.com/danielrfry/toyvm

https://github.com/evansm7/vftool

https://multipass.run/install

https://github.com/features/codespaces

https://medium.com/@paulrobu/how-to-run-ubuntu-22-04-vms-on-apple-m1-arm-based-systems-for-free-c8283fb38309

I know architecture differences will cause pain, hell here we are already. I think everyone will benefit from crowd sourcing experiences and hopefully we can save each other chunks of life thrown away.

==

What tool do you use to {edit code, build artifacts, run unit tests, deploy artifacts, run e2e tests}

Why do you use X?

What where you using before switching to X?

When did you switch and how much did it cost you in terms of $ licensing and workflow changes?

What else did you consider before choosing X?

What did you not like about about the alternatives?

==

1. I develop primarily in Java for services that get deployed on Linux boxes

2. Sublime Text used to be my default but I begrudgingly accepted IntelliJ in my previous job since we used Java

3. An IntelliJ license was provided by the company so the powers that be handled that side of the equation so I have no $ value.

4. I inherited the previous development setup so not sure what the adoption cost looked like

5. We have scripts that wrap Ant tasks to locally run "integration tests" but so much is mocked out it doesn't match reality so you can't green light anything until you have actually deployed and tested the code in staging

6. We deploy our code to EC2 instances for e2e testing since there are infrastructure services we need as mentioned earlier e.g. the database, memcache etc
That's quite readable and actually makes me wanna try C++20 or whatever it is.
>> I live in an a place where we have to run the AC almost all day and we use less than this along with all the other electric appliances.

They're including transportation costs.
YouTube May Force You to Watch 10 (Or More) Unskippable Ads in a Row
My First Time Learning Go as a Python Developer
The hero we need!
Moreover, when stating about "new projects", it's too easy to forget that these new projects often start in an existing environment which includes in-house and external libs to integrate with and likely some in-house expertise and engineering skill that goes with it.

So offering these shops to consider Rust or any other "it's better" language is similar to Enterprise Java push back in time, which simply turned local weed gardens into weed prairies with even wilder variety.

Meanwhile considering safe practices and features of whatever modern C++ is a normal and indeed organic process for such organizations, be it for new or supporting the existing projects.

As for starting an "independent" new project, well, that's a whole new story. I guess the choice would still rely on the need and availability of external components for it. Ah, least we forget about the costs!
I agree. I ride a Niner RLT Steel with drop bars, 1x10 gearset, 650b wheels, and Panaracer Pacenti tires.

I specify those things because my Bike of Theseus went through MANY variations before I got it to where I was happy!
Me too - boatman at list.ru
But from what I hear of it Android is a mess, rife with malware, and a blatant rip-off of the success of iPhone and iOS. The sideloading support while convenient also opens up opportunities for abusive apps like spyware that unethical people use to track their household members without permission. I would not hold any of that up as a model.
Yeah carlleche nailed it. `std` is where libs go to die in Python sense.

I didn't imply anything about Tokio. I just wish some libs didn't need to be bikeshedded (like async runtime, time, decimal, etc.)
It's actually refreshing to read about airport that has been properly decorated with signs. Without proper information it can get really messy. This plus the stress that often comes with visiting airports makes it a really tough UX case.
I'm glad that this terminal was tested properly, I wish some airports could do the same in following months!
Also, worth nothing,
“wide enough to open the door and roll in a bag without bumping into anything,”
This sounds like an absolute opposite to hostile architecture trend that spawns public places nowadays.
Technical talk on go-DSP-guitar: Real-time simulation for audio applications
> Finally, there’s the mighty inconvenient fact that a large amount of safety-critical software (a well-defined term and domain!) is written in C and C++ with a track record of multiple decades

Well stated.
>(while your anxiety about being phoneless builds up)

This is a truly terrifying thing to me about today's younger generations that have "always had" a device and have use the social platforms just as long. I don't mean for that to sound patronizing or belittling. It is just so out of my own experience it is hard for me to empathize, but I do sympathize as I realize that some of that dependancy was/is intentionally juiced by the social platforms.