skysight-inc/HackerNews huggingface dataset:
man mktime on my machine reveals:

> The mktime() function converts a broken-down time structure, expressed as local time, to calendar time representation. The function ignores the values supplied by the caller in the tm_wday and tm_yday fields. The value specified in the tm_isdst field informs mktime() whether or not daylight saving time (DST) is in effect for the time supplied in the tm structure: a positive value means DST is in effect; zero means that DST is not in effect; and a negative value means that mktime() should (use timezone information and system databases to) attempt to determine whether DST is in effect at the specified time.

So, not specified.

POSIX is no clearer about which choice it will make [1]:

> The mktime() function shall convert the broken-down time, expressed as local time, in the structure pointed to by timeptr, into a time since the Epoch value with the same encoding as that of the values returned by time(). The original values of the tm_wday and tm_yday components of the structure shall be ignored, and the original values of the other components shall not be restricted to the ranges described in <time.h>.

> A positive or 0 value for tm_isdst shall cause mktime() to presume initially that Daylight Savings Time, respectively, is or is not in effect for the specified time. A negative value for tm_isdst shall cause mktime() to attempt to determine whether Daylight Savings Time is in effect for the specified time.

> Local timezone information shall be set as though mktime() called tzset().

> The relationship between the tm structure (defined in the <time.h> header) and the time in seconds since the Epoch is that the result shall be as specified in the expression given in the definition of seconds since the Epoch (see XBD Seconds Since the Epoch) corrected for timezone and any seasonal time adjustments, where the names other than tm_yday in the structure and in the expression correspond, and the tm_yday value used in the expression is the day of the year from 0 to 365 inclusive, calculated from the other tm structure members specified in <time.h> (excluding tm_wday).

> Upon successful completion, the values of the tm_wday and tm_yday components of the structure shall be set appropriately, and the other components shall be set to represent the specified time since the Epoch, but with their values forced to the ranges indicated in the <time.h> entry; the final value of tm_mday shall not be set until tm_mon and tm_year are determined.

... but i think the final paragraph implies that the tm_isdst field in the input time should at least be set to indicate which choice was made!

Java is explicit [2]:

> In most cases, there is only one valid offset for a local date-time. In the case of an overlap, where clocks are set back, there are two valid offsets. This method uses the earlier offset typically corresponding to "summer".

[1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/m...

[2] https://docs.oracle.com/en/java/javase/11/docs/api/java.base...
>How much energy does watching porn consume?

I guess if you got stats on how much porn they watch in Argentina you would be well on your way to answering this question. Same for the rest.

I think the more interesting thing is: as bitcoin becomes more difficult to mine energy needs go up, but countries are working hard to bring their energy usage down. Can bitcoin be overtaken on the downward journey by a country, or will it always be bitcoin overtaking countries on its upward swing. Is there some country decreasing its usage as bitcoin increases its, and the two pass each other like ships in the night.

What is the next country most likely to be surpassed by bitcoin?
I used it once years ago. A client wanted rotating ads in banners in Flash for a web site. I wanted to be able to reuse the code for JS. We negotiated the copyright staying with me for a discount on the feature. I did it in Haxe (then stylized as something like hAxE or HaXe or so) and compiled it to both targets. It's not a complex thing like Dead Cells, but it was a quick and easy language to pick up and use from zero prior experience with it.

I've not touched it in years, but if I ever do a side project it'll be one of the tools I'm likely to use.
The identification part seems pretty slick. I'm curious about the "curtailment" part - if a bird is heading toward the chopper, what can you do? Slamming on the brakes on 100m+ blades seems... intense.
Crypto Is Going Mainstream – It's Time for Your Financial Tracker to Catch Up
The resulting product is fine, yes (assuming proper filtering at the end to remove contaminants). The nasty things happen along the production process, similar to why an awful lot of the US Superfund sites are in the "Silicon Valley" - the production process leached chemicals in the landscape: https://cleanair.camfil.us/2017/11/21/toxic-danger-silicon-v...
The market won’t decide optimally because the costs (climate change) are socialized across the whole population but the benefits are not.

It’s basically saying if you don’t like pollution don’t pollute, which is flawed in ways I don’t have to explain.
I can see where you're coming from and it's consistent reasoning. I also agree my scenario isn't substantiated (at all) yet, even though I believe it to be not uncommon in the crypto community.

I will put my thoughts on this together, and if you're interested ever hearing about it put some contact in your profile. In that case I'll ping you.

This exchange turned out productive. Thanks for that.
You pay electicity with fiat money.
I think video games are a silly waste of time but I don't necessarily want to outlaw it. If playing one round of Mario Kart consumed several megawatt hours of energy though, I don't think anyone would want it to be allowed.
If you're in a big Western city or can relocate, you can definitely find better circles ;-)
Many solar panels are made by putting quartz and coal into an oven, and using coal to heat it to like 1800 degrees.

This releases a bunch of C02 and other much nastier stuff like silicon tetrachloride and radioactive uranium into the environment, and out comes purified polysilicon for making "green" PV panels. :P

In contrast Bitcoin can run on green hydro or nuclear power.
If you want to analogize 1:1, a bitcoin transaction consumes approximately five hundred thousand times more energy than a visa transaction [1].

[1]: https://www.statista.com/statistics/881541/bitcoin-energy-co...
Personally I love a bit of work drama like that, when someone blurts out something not realising the boss is there listening.
Kind of but not really. People aren't upset at _how_ bitcoin is using electricity, they are upset at how much bitcoin is using electricity.

If you want to save the environment, regulate the production of electricity irrespective of how that electricity is put to use. Let the market figure out how to allocate the electricity to various tasks.
> Also regarding the standard library, as far as I understand it's not entirely true that it never resorts to unsafe rust.

I think you're misunderstanding the parent comment. The stdlib constantly resorts to unsafe code. Tons of methods like `split_at_mut` and `make_ascii_uppercase` are just safe wrappers around an unsafe one-liner.

Rather, the observation is that _with the benefit of the stdlib and common crates_, most programs have no performance reason to reach for unsafe in regular code. That's true in my experience.
Compared to the cost of lighting a cigar with a matchstick, it'd be more like lighting it with a penny. Despite Visa transactions being cheap, bitcoin transactions are also very cheap -- you spend more power turning on your living room light for a few seconds. Probably best if we keep things in perspective.

Further: https://hackernoon.com/the-bitcoin-vs-visa-electricity-consu...
Well I mean, clearly they make their money elsewhere. I don't pay anything for having an account, debit card for it, or for making any transfers - that's with barclays. So their entire money making process is elsewhere.
I really feel like D is in a tough spot these days. In the early 2000 I remember being interested in it but I dismissed it because of the licensing issues that existed back then.

Now it's sorted out but I think it crippled the language early on and now it's sandwiched between other "managed" languages with far better adoption and better support on one side (Java/JVM languages, C#, Go) and low level system language with better adoption and no GC on the other (C++/Rust in particular).

While I personally find D interesting and vastly better designed than some of the competition (cough go cough) it's very hard for me to imagine it getting big in the mainstream without some massive industry backing.
Aggressively Helpful Platform Teams
Sent you a message by a form on your site.
Getting people's attention on my post! :(
https://news.ycombinator.com/item?id=26089745
Software jobs are being automated away, but not by AI. If you think about it, any time-saving library, service, or tool is going to reduce headcount at an efficient organization.

For example, I currently have a company that I technically manage. It has one employee who does maintenance on the infrastructure (AWS Elastic Beanstalk), database (AWS RDS), and code for five different products. The only other people who touch the code are security auditors.

That just wasn't possible 10 years ago. Managing servers alone for those products (~50 EC2 instances, ~10 load balancers, 10 database instances) would've been a full-time job.
Why can't congress delegate implementation to an agency?

Congress can always override the agency if needed. If you think congress is incapable of oversight then you are just for complete deregulation.
A sneak peek at MetaHuman Creator
Can you really not find a single use for bitcoin?

Here is the most obvious one - true sovereignty over your capital. When you have bitcoin, you have have physical ownership of a digitally transferable asset. Not legal ownership where a custodian ultimately decides whether you can access it.

In theory nothing prevents individuals from carrying entire national budgets as seed words in their heads.

You can argue ethics, legality but surely you have to acknowledge the power it gives individuals.
What positive impact on global politics is it that Bitcoin has had that motivates all the energy spent?
Could you solve this in Java using the SecurityManager stuff that was used to sandbox applets, or is all that considered broken these days? (I'm not sure if you can different SecurityManagers for different parts of the app though.)
I detest Google, so I absolutely have to say this is an absurd way to look at the world. Google doesn't care if it's actions are pro or anti consumer, they care about money and power and go about pursuing it in a way that tends to be anti-consumer.
I guess they don't have to. Cell phones and IP phones have terrible voice quality compared to a land-line; median quality is far worse than the worst long-distance connection I ever got in the 90s.

People use them because they are cheap and convenient though. It's the same with algorithms. If you charge margins high enough for good customer service you will get out-competed by those that don't on price.
> PoS lacks fairness.

I dislike the way that cryptocurrencies have managed their initial allocations, but it's way better than the way that fiat currencies have managed their initial allocations (usually encoding generations of violence, rascism and oppression).

To 'participate' in PoS (by which you mean mining a block I suppose), you can buy all the stake you need from other people, just like if you want to 'participate' in stock ownership, or land ownership or ownership of nearly anything else in the world.

> PoW, on the other hand, is akin to buying Bitcoin with electricity - a borderless natural resource.

Well.... if you try to mine BTC these days with a standard computer on a standard electricity tarif, you're not going to have a fun time.

Given the fact that to reasonably 'participate' in PoS you need only the kind of computer you already have and an easily acquired stake, while to reasonably 'participate' in many forms of PoW you need unusual, expensive custom hardware and cheap electricity, I'm not at all convinced that PoW has anything better to say about 'fairness'.
Acquiring new clients for my software development company!
Can the ovens you mention be powered by electricity from nuclear or hydro?
Except that, though I can afford a bigger tv than 55" tv, I still am not going to buy one. And buying the 85" they recommend is _enormous_. It might make for a cinematic experience, but it poses additional problems beyond price:

1) You can never sit closer to the TV. I always sit ~12' from my TV, but walking by the tv at close range (between two doors on either side) is going to be jarring for passers-by. If I have friends over for a movie night, we would have to huddle at the far end of the room.

2) It doesn't fit the space, both physically and design wise. I couldn't put that big a tv in the space if I wanted. Even if I did, it's going to be ugly as sin unless the space is very specifically designed for cinema experiences.

3) That's going to be an obnoxious way to watch non-cinema content.

Having a TV at the other end of a 12 foot room is not going to be an uncommon affair. Having a room where an 85" screen is appropriate is another matter all together.

I feel like the article should have a big disclaimer at the top "This is the maximum size you can enjoy, not the maximum size you should necessarily buy".
But if it is built on top of cryptocurrencies then you don't have the trustlessness that makes it different from cash and banking. Why would banks and businesses choose to transact primarily in btc?
Oura was quite good with warning me that something is not ok and I should take it easy on the morning of the day when I started to have symptoms. I was tested positive later that day. Interestingly, nobody I met days before I was warned was infected, so in my case warning came in right moment.
Why would you want to simulate the experience of looking through a small window from a few feet away?
Maybe a better comparison would be mutually assured destruction. Enormous, world-level resources spent towards trying to ensure an outcome for something that no one wants to have happen. Those enriched along the way were the purveyors, not the population.
From my reading, many respiratory illnesses can cause these symptoms, but right now if you have a respiratory illness at all, odd are it's COVID-19, so it's worth at least getting a PCR test. And if it's not that, you have a very serious flu or something which probably requires treatment as well.
Apt supports TLS via apt-transport-https (as you are probably already aware) but I don't think it's default in either Debian nor (X)Ubuntu derivatives. I'd like to know why TBH.

The packages themselves are signed though, so I guess the risk is now on server authenticity as opposed to package integrity.
Yeah. JavaScript is probably the closest to being there (with things like SES[0], LavaMoat[1], etc.) but we're not quite there yet. It's just shocking that this sort of thing is as seemingly obscure as it is; it's like the whole industry has collectively thrown up their hands and said code execution is unavoidably radioactively dangerous. (While simultaneously using package managers that... well.) But it doesn't have to be!

[0] https://github.com/Agoric/ses-shim

[1] https://github.com/LavaMoat/LavaMoat
The kind of outlet one sees for 240V is to keep you from plugging your 120V iPhone charger into it, not because it's any kind of limitation on the grid. You can have European-style (or Australian, or Vietnamese, or...) outlets in your U. S. house if you like, and pull 220V out of every outlet in your house, you'll just have to do a ton of rewiring. (Theoretically; if I've forgotten something, it's because I've never heard of anyone converting a U. S. house to use non-U. S. appliances.)
Well not really. Most people buy coins because they believe the price will climb and never use them for buying. For the retailers who accept bitcoin many are in smaller countries where the law wouldn't apply and many semi-legimate uses (ordering weed by mail) would continue to accept payment this way because their activity is more illegal (carrys a bigger punishment) than the new bitcoin law would.
How many products and services are bought every day with conventional monetary systems?

How many products and services are bought every day with Bitcoin?

I suspect BTC will have as much impact on conventional currencies as a fly landing on an aircraft carrier.
Private keys can be stolen if you leave them lying around.

Nobody can steal your bitcoin if your private keys are well protected. And of course, the best protection is a brain wallet.

If a State attempts to implement an EO6102 equivalent for Bitcoin, they will be unable to enforce it.
Daryl here - I write a lot of our software, would appreciate any feedback or suggestions for the site, and would love to hear about your nice dinner needs :)
Our perception abilities are not that simple; just because you can't discern individual pixels at a particular distance, doesn't mean you won't notice done details in an image.

Also, it is fine too be too far away to notice every detail in 4k, when the alternative is going down to 2k or 1080 where you then might be sitting way too close. Real world situations tend to involve compromise.

Another factor is that typical viewing is done on streaming services. That 4k streaming video is far more detailed than a 1080 stream, but the difference between 4k streaming vs 1080 uncompressed/Blu-Ray is not quite as significant. So if you are pixel peeping or using a calculator, it seems reasonable to factor this in and feel ok sitting a little farther back than some ideal.
> The difference is that a man can rarely convince the others of a chance that is not in the interest of the many, but only in his own.

So political propaganda rarely works? Every political action is sold as beneficial to the many, but how many of them actually are? I feel like political dynamics are rather a bit less straightforward than you're portraying.
They're emotionally invested in cryptocurrency being the future. When people challenge them by suggesting that it's basically bad all the way down, they lash out.
Why do you stop taking into account scale? Gaming as a whole does provides entertainment to a large number of people and thus consumes large amount of energy. While bitcoin is providing benefits (real or imagined) to a very small fraction of people and consuming more electricity than a _whole country_. If red dead redemption was played by 10 people but consumed electricity equivalent to 100 people's daily life then we would be talking about regulation there too.

BTW, afaik bitcoin has 5million users and Argentina's population is 44 million. Also, this energy consumption by 44million people includes all the activities you can think of to add to this argument.
it's a loop, isn't it?
That's a fair point. And it's a good point. There's a difference in types of contracts and the relationships they represent. An employee/employer relationship is distinct from a customer/vendor relationship.

An employee/employer relationship is defined by a few key properties. As an employee, you sell your time and your expertise to your employer, and you agree to submit to the authority of your employer in exchange for a salary. The extent of your responsibility - and this is absolutely key - is captured in your contract.

It also means that many things simply aren't your responsibility to begin with, even though you deal with them on a day-to-day basis.

As a systems administrator you, quite likely, won't get fired for failing Cisco gear or services because you're not the one who ultimately signs off on the contract with Cisco on behalf of your employer. Responsibility has always resided with the executives who cover and sanction your actions and decisions.

An executive, though, usually won't get fired over failing Cisco gear/services itself, but they will get fired over any ensuing loss of revenue, damage to brand/image, litigation over exposed liabilities,...

A great example of this is President Harry S. Truman who famously had a sign on his desk stating "The buck stops here".

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

As for the systems administrator, your role is to actively engage in day-to-day operations. You're basically hired "to keep the lights on". Whether the proverbial "light" was procured from Cisco or handcrafted in-house is inconsequential to your employer as far as your individual role as an employee is concerned.
Rapid API bought Kong's marketplace and Kong now focuses on their API management product. They are separate companies.
True. Let's let one guy, then, decides how our energy should be consumed.
What if the externality is not into the price? When the externality of it (pollution, global warming, etc) is not within the price, then yes, we do care, because you aren't paying the true cost and you transfer that cost to me.

If you have a carbon tax? Then sure. But if you dump all your emission on the rest of us and wash your hand because "you paid for it", then yes, we will question the value of a waste of energy because that's really the only thing we can do.
>Maybe only those who lived in his era can understand who he was and that's about it. Everything else is a nice story created by professionals.

Even if you were alive then, your understanding of the guy was still mediated by professionals, and now it is mediated by the distance of time. Usually the formation of a legend is already well on its way during that person's lifetime.
Dude tell me more about your project
It is shocking to me to read the number of comments saying how this is tier 1 UI and how amazing of a job the author has done with the UX and comments praising the UI/UX. Wtf happened to HN? This is a fucking wrapper around an open source text editor, there is zero UI by the author.
But then again, gold actually has legitimate uses that benefits most people (electronics).

Automobiles pollute, sure, but the vast majority of people benefit from vehicles.

But what, if any, benefit does bitcoin offer to the public - other than being a speculative asset?
Ulysses is Irish though.
Understanding Bitcoin really can also convince you that it might not be a superior store of value. Think of the consequences of someone breaking SHA256 which, given, at the moment looks absolutely unfeasible, or of some entity or coordinated entities to actually control the main branch, or the cost of energy to mine (and the fees) exceeding the value of bitcoin at a point in time, or more mundane things like loosing the private key of an address.

edit:typos
I’m not doubting that you use it, only pointing out that it’s not free to do so.

Similarly, maybe you haven’t hit a transaction yet which a government made an effort to block but … are you certain that nobody will ever try to do so or be interested in your past history? If you’re trying to obscure your identity, consider how that would look under existing money laundering if any party led to your real identity being associated with those transactions. If you aren’t confident that no government with jurisdiction will ever care, that’s a factor to weigh on every transaction since you’re leaving an immutable public record.
They are, but information about if a project is still actively maintained or if it's simply feature complete (data structures come to mind), should be automated in some way, otherwise information becomes stale if the maintainer of that site isn't actively maintaining it (ironically).

From what I've experienced, these sites largely go via passive maintainance, ie, based on pull requests and issues, not actively developing or updating things.
id rather argue that his book was one of the major reasons why we ended up in over engineering hell.

i was affected by that as a junior and even medior as well and i caused a lot of harm :-)

luckily i learned to step away from it.