skysight-inc/HackerNews huggingface dataset:
The author says “I tried to define ‘main’ as an array of shorts with a modern compiler and it did not like that one bit”, but without saying which modern C compiler or what it didn’t like about it.

This sort of trick should still be possible with modern compilers. GCC has the charming warning

warning: ‘main’ is usually a function [-Wmain]

if main is declared as something other than a function.

Here’s someone who got it to work in 2015, anyway: http://jroweboy.github.io/c/asm/2015/01/26/when-is-main-not-...
What else recently, if you don't mind?
This apparently happened in March. However, my LetGo app recently indicated that the technology merge of the two marketplaces might only now just be happening soon. Not sure how I feel about it. I vastly prefer LetGo to OfferUp, so my fear is that LetGo just essentially becomes OfferUp...
You'd be surprised how many people use even older thinkpads. Graphics aside a x41 would still suit my needs. Actually if it wasn't for hd video and fancy css3 I wouldn't need to upgrade until I die. (I avoid scala and eclipse)
Define easily.

My colleague had a baby. He would like to spend more time with the baby. He asked to reduce his hours. The boss said yes because its the law and we no longer live in the middle ages.
The asyncio cancel is convenient but can be really deceiving. If you want to reliably propagate the cancel across the wire, you likely have to invoke new await-calls inside your CancelledError-block. But doing this requires you to re-await the cancelled function again!

async def process():
try:
await db.slow_operation()
except CancelledError:
synchronous_functions_work()
await db.cancel() # This future will not complete on timeout

p = process()
try:
await asyncio.wait_for(p, timeout=1)
except TimeoutError:
await p # Required for db.cancel() to run!!!

Now fire-and-forget on a timeout is perhaps the most reasonable approach, otherwise you'd get timeout on timeouts, so better implementation would be to restart p without awaiting it, or putting it on a background cancel-list. But it can be really confusing when you are not aware of this behavior.

Edit: Seems they actually fixed/changed this in 3.7: https://bugs.python.org/issue32751. So instead you have to write robust except-blocks that must never timeout.
US universities are always amusing to me. You pay about 100 times more than for a German university and end up with an education where you have trouble understanding the content they teach in Germany after graduation, unless you come from an elite university. But hey, it's really easy to find Standford equivalents in Germany as long as you search for a good university for your major, instead of just searching for a university. Of course it doesn't come with the prestige and the network, but honestly is that really worth a quarter million dollars? In the end, if you are smart and willing to learn, the only thing you really get from US elite university is prestige and better equipment and research opportunities. However, all of that isn't really relevant for a whole lot of people.
AuthBit – Web-based OTP authenticator
If multi rotor cars become standard, we will all be wearing ear protection.
Right, I understand that once you understand how side channels work that you can effectively program to avoid them.

My only point is that it is not something you normally have to deal with when you program. Normally, you are only worried about the inputs and outputs that you are intentionally interacting with. Side channels involve ones that you might not have even known existed.
This is a cool project, and I love it when somebody "takes back" their hardware a little bit or keeps them useful through hacking instead of throwing it away.

But it shows how irrationally our society is set up in some aspects. In an ideal world, you could just send the Lenovo engineer a mail and ask for the firmware source. But the incentives are such that they keep it secret, probably because they make a lot of money with batteries. So hackers spend a lot of time reverse engineering stuff. It seems really inefficient.
Is that how you learned to walk? You observed other kids failing and falling constantly? Adults not falling? And you watched them until you got it and then you got up and have been walking flawlessly ever since?

Or were you thinking that you are uniquely brilliant, just tried it yourself for a while, falling and getting up, with an encouraging pat on the back by your parents every time you did, until you had figured it out?
This is my beginner project. I'm looking for your feedback to improve it.
Its source code is available on Github at https://github.com/thangisme/authbit
Impressive. I would have loved this back when i made all my plots with root 2.x...
Wikipedia runs on HHVM IIRC.
https://hhvm.com/blog/7205/wikipedia-on-hhvm
So many scammers on OfferUp. I even see them on the front page. Just scroll through this search: https://offerup.com/search/?q=Urgent

Their site has been like this for over two years. So many people must be getting scammed. Hopefully LetGo has some engineers that know how to deal with fraud.
LG G5 has all those things (4 GB RAM, USB-C, headphone jack, user-replaceable battery).
Unless Blink is getting a share of that money to AWS then no.
I built a tool to do this and supported it for 6 months, but I couldn't really find users. The basic idea was a web page that you could collaboratively work on through a server running socket.io, which included editing css, fonts, and the content of the website. The collaborative idea sounds cool, but in practice, it seemed easier to have a team pair program on a zoom call and edit a page live with google dev tools. Is there a reason this solution doesn't work for you?
> What matters is, that you have that powersource in that moment.

And if that moment is during the night, you don't have it. If power outage is a part of your threat model, you want something that you can reliably switch to in a very short time and that will reliably provide the power you need for as long as you need to get the primary power supply back up.
People actually doing good work get to make new and interesting mistakes. They hope not to of course, but that's just how it goes.

But what you and so many people want is permission to go on "experimenting and learning" by making the same mistakes the previous cohort of people "experimenting and learning" made, and those before them, and so on ad infinitum. That's futile. Stop it.

Since the horizon of your imagination seems to be computer software let me expand a little bit with an example from a quite different discipline which is entirely illustrative of my point.

Some years ago, an elderly couple were struck and seriously injured (one of them died I think) by a speeding tram. The accident investigation report found as you would expect a long list of causes, but one of them is particularly relevant to us here.

On the _mainline railways_ subject to oversight from the same authorities and investigations by the same team, it had for many years been the practice to require Compliance as a psychological trait of drivers. Compliant people are inclined to obey rules, all else being equal. If you tell a Compliant person that the speed limit is 45mph they will tend to go no faster than 45mph whereas people who are less compliant might ask "Why?" or just decide it seems safe to do 55mph instead since what could go wrong?

The driver of the tram was not tested for Compliance, his employers hadn't picked up on this requirement, and their drivers hadn't ever killed anybody by speeding before. Sure enough during the accident he was driving the tram faster than the maximum speed shown and was unable to stop it striking the elderly victims.

You don't need to make your own mistakes to learn from other people's. Stop it.
I didn't say that monads aren't useful; I said that the abstraction is unsatisfactory. The world needs a new clearer concept to use instead of the monad, just as raft can be used instead of paxos.
Debt,eviction,hunger:Millions fall back into crisis stimulus safety nets vanish
The rest of the package makes up for it, for me. The keyboard is fantastic, the CPU is more than fast enough, enough ports, they're rugged as hell, and I can get at the parts to swap them out when they fail. It's always been a desktop replacement for me, so lugging it about was rare. I can forgive the screen. Mine spends most of its time plugged into a monitor anyway these days. I think the graphics chip might be on the way out, though, I'm starting to see rendering glitches...
I think that you're forgetting that people with dark personalities are all too often the perpetrators against victims.

In that light this is just another instance of these kinds of people victimizing people by abusing the system to reap benefits that are meant for victims.
It’s a little weird because the main investor in raising money for OfferUp to buy Letgo, is one of the majority owners of Letgo itself. Is this a common thing? Kind of like a reverse takeover where Letgo just wants the OfferUp name?
Gates did some bad stuff in relation to MS, and now he is doing some good stuff in relation to philanthropy, shock and horror, people are not always saints.

This is the very foundations of `cancel` culture, find something in someone's past and criticism them on, no matter how they have grown as a person or to whatever level they have changed, you should always judge them on their actions of the past.

I am not saying that you should not take a person as the sum of their actions, but we shouldn't just them on a slither of their actions. I would not say that Gates is a good person either. Hey welcome to people being people.
“Pleroma is a free, federated social networking server built on open protocols. It is compatible with GNU Social, Mastodon, and many other ActivityPub implementations.

The project consists of several components: Pleroma is the server implementation, and comes bundled with PleromaFE, the default frontend. Other useful utilities are also provided, such as an ActivityPub relay.”
That's what to do when it happens accidentally. It would also make sense to do so immediately after you left. They already made sure that you left behind all relevant keys, documents, and your work computer. It would be natural and in both parties' interest to ensure that all other credentials have been revoked as well in time.
How a Popular Feature Declined by Svelte Got Life in Malina.js
Want to Become a Better Writer? Copy the Work of Others(2014)
Saudi Arabia isn't so tiny these days. They're #41 in population and climbing rapidly. Their population is larger than Australia and will soon eclipse Canada and Poland. In ~10-12 years they'll catch Spain and Ukraine in population.

Iran - as with Iraq and others in the region - is of course seeing a similarly rapid population expansion.

> middle-income country

Iran isn't a middle income country. Their GDP per capita places them at #95 (below Iraq) - around $5,500 - they're a very impoverished low-income nation. That's comparable to Jamaica, South Africa and Guyana, far away from middle income. To break into the middle income group you plainly have to approach the global average on GDP per capita (or higher), around $11,000 and above will get you into that discussion. Poland and Chile are middle income nations, with roughly $15k in GDP per capita.

> Sure, they're a theocracy, but we also overthrew the only democratically elected leader they've ever had

Mohammad Mosaddegh was not democratically elected at all. He was specifically appointed by a king (the Shah of Iran) and feudal lords that ruled the Majlis. It's one of the great propaganda myths of modern times that Mosaddegh was somehow democratically elected, while it's a total fraud of a premise. Iran has never been democratic, not even remotely close, not at any point in their entire history.

Even Wikipedia openly supports the fact that Mosaddegh wasn't democratically elected, and instead he was appointed:

"On 28 April 1951, the Shah appointed Mosaddegh as Prime Minister after the Majlis (Parliament of Iran) nominated Mosaddegh by a vote of 79–12."

https://en.wikipedia.org/wiki/Mohammad_Mosaddegh#Appointment...

The Majlis itself was not democratically elected. It almost exclusively consisted of large land owners that were de facto feudal lords.

This would be like Jeff Bezos, Donald Trump or Barack Obama (a former President or similar) appointing the new President after the US Senate voted on who to nominate. Absolutely nobody would think that was a democratic process. And it wasn't a democratic process when Iran did it.

Today, the same people that claim Iran was a democracy in 1951, simultaneously claim the US is not a democracy. It's a rather hilarious spin if one is capable of being objective about the propaganda behind that myth-building push.
Thanks, dang. I've been checking for reposts, before posting lately, but forgot with this one.
> If cables and pulleys give better torque without loss of speed why aren't they in more widespread use in robotic arms ?

Because it requires more parts, so there's more to break, it's more complex, it loses accuracy, and it fundamentally limits range of motion.
What is more innovative? More Mhz? Vector calculations? JavaScript? Depends what's important to you.

The new CPUs don't put much more power, but they're crippled by the mitigations (old ones too but weren't when you used them), use way less power, many are fanless (saving more power), and it's not like anyone was struggling with not enough power on computer anyway. Intel had innovated a lot, especially their video decoding and graphics.

I'll take a crappier CPU with a better screen any day but luckily I don't have to choose with these.
TFA didn't mention how long apple orchards are normally economically viable.

I'm used to seeing roughly 30-year orchard lifetimes. How does that compare with your fruits?
This was the inspirstion for nano's use of proof of work too. They don't use PoW for the chain itself but do require every transaction to include a small proof of work to avoid spamming the network, almost identical to hashcash.
Reposts aren't a problem after a year or so! See https://news.ycombinator.com/newsfaq.html. The reason I post links to previous discussions is just because they're interesting sometimes.
I think I know exactly which line you are referring to.

I have read the book multiple times, and that line never fails to move me to tears, even when I know it is coming.
Go is imperative and could really use some monads, especially for error handling. It has nothing to do with a language being pure or not really.
I agree with him as far as there is definitely a specail relationship between Britain and it's ex-colonies. It's just not always positive.

I'm South African, and I've definitely noticed it. There's often a mild animosity towards Britain from the many groups that comprise South Africa. Especially amongst the indiginous and Afrikaans people, but also the English speakers. Of a similar sort to what I percieve in the US media.

The postive side is almost always from the English speakers. In fact the Afrikaans people have a nickname for the English South Africans: soutie, which is short for 'soutpiel'. Literally 'salty-penis'. The idea being that they aren't real South Africans: one foot in England, and the other in South Africa, with their penis dangling in the ocean. Even this characterisation is becoming anachronisting though, as newer generations simply see themselves as South African.
Nobody said the raw number of deaths is meaningless.
Haskell only "needs" monads for IO (there are other alternatives to implement io in a pure language too though). The reason that they are popular in haskell is that they are convenient and the reason that they are not popular in ML is that it lacks higher order types and things like typeclasses.
I think the big driver for a lot of these research lab consists of two parts. First, the company having a lot of money (many times from having a monopoly) and a desire to keep a bunch of smart people from going to any potential competitors. They really did t need the smart people to make any money, they just needed to keep them locked away from competitors. The best way they could do that was to have these research labs that provided decent money and a lot of support and resources to pursue their intellectual curiosity.

In addition, given that capital funding was a lot harder to acquire back in the day, it was about as good a deal as a smart person could get.

Nowadays, a couple of things have changed. First, a corporate job is no longer expected to be lifelong. In addition, if you have a brilliant idea, it is a lot easier to get funding and do your own startup for that idea, and maybe get acquired by one of the big companies.
Keep reading.

And don't forget about "Rubber Hose crypto attacks"

(But yes, the article needs to be taken with a grain of salt)
Including your “answer”.
Well, most of php is just calling C functions. So if they add a JIT to that, it could be a believable claim. Why not?
It may also be a way your body is saying it needs a break and you should stand up if possible!
Could you please stop posting unsubstantive comments to Hacker News? You've been doing it repeatedly, and we're trying for something different here.

https://news.ycombinator.com/newsguidelines.html
What does this have to do with speech? And yes, the courts can compel you to do something you don't like. That's what the law is.

If you steal an candy bar, the government can "compel speech" in the form of forcing you to return the stolen property.
The idea of a strategic reserve of large power transformers has been discussed at length to help ameliorate the impact of something like this from an order of literally 6-24 months, compounded into multiple years, down to... perhaps a couple of weeks/lower order of months.

It seems completely insane that we're not prioritizing this sort of reserve. We could basically order 50 or so LPTs for < $2B which is a goddamn steal for the peace of mind and short-ish turnaround time we'd have for replacing critical infrastructure. There are some issues in that many are bespoke for their specific implementation, but the report discusses that as well.

https://www.energy.gov/sites/prod/files/2017/04/f34/Strategi...
This project seems to be abandoned or at least dormant (last tweet from november 2019) but to anyone looking at cross platform JVM-based desktop apps check out JavaFX with OpenJFX and a recent JDK version. You can use any JVM language with it (Java 14, Kotlin, Clojure, Scala etc).

The split from JavaFX inside the JDK to OpenJFX outside of the JDK was a bit messy so a new project takes some time to setup with Maven or Gradle but aside from that it's still a nice environment to make desktop apps in.
The new keyboards are good too. Where are you getting the screen from? They're way overpriced when I find them (12.5in screens, 14in and 15in aren't much better either).

Wait until you get a T440P. About the same, but way more powerful and the screen and battery life are way better. Only like $120 usually and even less pretty often. The batteries are cheap and genuine too. I'm looking forward to more devices like the surface so Keyboards aren't attached to laptops anymore. The new Lenovo keyboard is pretty good but it's expensive!
Yes we did. I was on transhumanist mailing lists twenty years ago and the exact same comments were being made then as are in this thread today
I watch a lot of cooking shows. America's Test Kitchen, Cook's Country, Good Eats, Milk Street, I watch Bon Apetite's YouTube channel, I read dozens cookbooks, all sorts of things.

Not a single one of them is a substitute for standing there in the kitchen and cooking. They help, they help a lot, but eventually you have to get hands on with something to actually gain experience with it.

Now, do you want someone to learn from their (incredibly common) mistakes on your production crypto system? No. Very Much No. But people learning from working on side projects and prototypes and whatnot? That's great, so long as they have a way to get feedback on what they're doing wrong.
Would you please stop breaking the site guidelines like this? We've already asked you once recently. I don't want to ban you, but if you keep posting unsubstantive and/or political-battle-style comments, we're going to have to.

https://news.ycombinator.com/newsguidelines.html
Correct; incentives are not aligned. Even for Apple.
We need better evidence on non-drug interventions for Covid-19
Why do spacecraft charge in sunlight? [pdf]
I was in a similar boat until recently. One thing that has worked brilliantly for me is to use any service that gives you a notification/curates your feed for the top posts on HN. I personally use Pushbullet for this. Since I was already using it in my phone as well as my laptop and desktop (it's a pretty handy tool to share stuffs quickly between devices), I set up the Hacker News 500 channel which sends me notification for the top items on HN. I usually get 2-3 posts throughout the day, which is more than sufficient for me.

I encourage you to look into it: https://www.pushbullet.com/
Considering this, it also seems negligent to not provide computers to your employees. Employees are free from worry about leftovers of the employer's secret sauce and credentials on their machines and employers can eliminate a big source of trouble. It would pay off very quickly if even one big outage like this gets prevented.
> for those who aren't as familiar with tower defence games

Is there some universal Tower Defense rule for how they should walk? In the TDs I've played they always take the shortest possible route.
I agree. The focus on extra curricular activities is ridiculous. Even for students who demonstrate them, it must be frustrating to have to devote time to those activities instead of your personal life or other passions.
> Hofmann says pay should not be reduced in line with hours though

It was a good idea until there.

Why not just get the money off the money tree and pay the unemployed an unemployment wage.
A very American assumption, that a lack of regulation equates to more freedom.

In both cases, the individual is limited in their choice. Without legal restrictions, the individuals choice is restricted by economic and social constraints. E.g. in low paying jobs, less hours is not an option, because of low pay, and in "high" paying jobs, it isn't because you won't have the job long. Precisely because of the implication you give "more hours -> wanting to work harder". And partly because your employer doesn't want to go through the hassle of having to handle different work schedules, managing more people.

The "European" variant is a collective choice countering the socioeconomic pressure.

In Europe you are "forced" to have a medical insurance, in the US, you are free to choose/lose it with your employment.

I would claim, socioeconomic constraints are limiting your choices much more, than laws do.
Unless we are speaking about Java before Java 1.2, it is definitely not interpreted, there are plenty of JIT and AOT implementations without any kind of interpretation step.

Since 25 years, time to learn that implementations and languages are not the same.
Sorry if I did not make that clear but I fully agree that their endeavor towards better electrodes should be encouraged, and maybe even saluted when they provide evidence of improvement over the state of the art.

The question of information in the brain, including whether it is encoded is a really hard one. Of course we can easily find some areas of the brain whose response is _correlated_ with aspects of the outside world. But what does it mean? Who (or what) is decoding it, why? Many different metaphora and analogies can be (and are) readily applied to the brain. As of now, it is safe to say that a comprehensive theory of neural processing has not really been able to answer all of these questions. It’s just all very complex.