skysight-inc/HackerNews huggingface dataset:
Is gcc’s IR fundamentally limited compared to LLVM’s somehow? I see better assembly generated by each for different cases.
You misspelled "plethora" as "phletora" on the front page.
Array.from({ length: 5 }).forEach(fn)
I'm about two weeks in from quitting reddit completely.

A. I have so much more time available.

B. I have never been so productive. One programming project that had been languishing for months has progressed from 'hopeless case' to 'aha!' to 'plain sailing'.

C. Those extraneous matters raised by reddit topics aren't cluttering up my brain.
I also expect Intel’s xsmm to be as good or better for an operation of this size.
Using underscorejs or lodash:

_.range(5).forEach(i => {/*...*/})
Hello there,

so when you start at first you do not even need to register for anything. I want people to be able to jump in with minimal effort. After 3 days (or earlier of your own choosing) you will be asked to register an account.

The app will be free forever if you have less than 6 active tasks at all time. If you get over that threshold you have the option to enable advertisments (one banner at the bottom) for unlimited access or stay for free and live with the 6 task limit.

I am planning to give users the option to just buy the product for some euros instead of using advertisements. But that will come at a later point when I get around to it.

So basically at the moment, it is my own implementation of the fremium model prevailent in many mobile apps :)
Oh not bad. I wasn't aware of that!

I'm guessing it constructs the whole array upfront. Maybe there's a generator way to do it too.
On a side note, I'd like to lament the dystopia of reading articles online, where every 4 paragraphs your attention is hijacked by a video ad. Fuck that. Fuck futurism.com.
Uh thanks a lot, every bit helps :)
> imagine they wouldn't be there in the first place if it wasn't for their work

Indeed. Unfortunately in the U.S. we had a recent case about this issue that was decided the wrong way: Integrity Staffing Solutions v. Busk

It's a class-action suit brought by warehouse workers who the warehouse puts through anti-theft screening as they leave at the end of their shifts. They wanted to be paid for this time -- sometimes close to half an hour -- since it's required by their employer. The Supreme Court ruled against them.
It was towards the end of 2017 that I got my hands on Principles a book written by Ray Dalio, CEO of the biggest Hedge Fund firm in the World — Bridgewater Associates. I had already read the summary version of Principles by then and was a big admirer of his efforts to build a team based on meritocracy. But one of the best parts of the book that I could relate with was the section under “Work Principles” where he explains how he tried to build a culture in which it is okay to make mistakes and unacceptable not to learn from them.

He goes onto elaborate how his company ended up losing to the tune of hundreds of thousand of dollars because of a careless mistake by one of his employees. He understood that letting the person go would build a culture that’s averse to failures and came up with a public log where everyone should list down the mistakes they commit, explain how it impacted the customers / company in detail and with reflection on how it could be avoided in the future. Everyone is expected to read the error logs and this has helped them avoid recurring mistakes or failures while also building a culture that encourages the team to move fast and break things. More about our adaptation of error logs in the blog post.
I really don't love it, but

Array(5).fill().forEach(() => console.log('hello'))
Agreed. In Firefox I had to Ctrl+ 3-4 times to enlarge the text to make it readable.
Just argument types are useless.

Either all variables shall have types and so static, compile time analysis can be performed.

Or no types at all.
At least two people who write for the news division are pulitzer winners.

the quiz and listicle division, not so much.
Dependent types. You think I'm joking, but check back in ten years...
Depends. If camera management soaked up a large share of the training capacity of the network, then that might explain why it failed to learn how to handle drop-harrassment.
The author of this post is doing a huge disservice to the almost 600 tech experts listed.

She is clearly suggesting that we should invite these experts not because they are experts but because they are women.

How acceptable is that ?

Hence , I will never get why tech industry believes so much it must be so « inclusive ».

Okay then , can we have the same thing for female dominated industry ? Sociology , Education , Nurses ? Where are the articles complaining about those sectors being crowded with the opposite sex ?

Why on earth do we have conventions with « Women who codes » but not «Women Carpenter » or « Women BrickLayer » etc... or those jobs degrading or something ?

Tech is the only sectors that believes it is so ahead in terms of values that it’s « okay » to choose people based on criterias like gender or ethnicities similar to google hiring scandals[0], and call that « Progress », and « Inclusiveness »

Sometimes I wish I was in the valley to work for top companies , then this type of articles pops up and it reminds me that I would have an arguments with nearly every co-workers on this topic almost every day.

An expert should be invited because he has dedicated a portion of his career studying a problem in depth and has come up with solutions or concepts that help elevates the debate , of which he is willingly to share this knowledge with an audience.

An expert should never be invited because of his or her gender or other criterias outside of his/her work.

[0]https://www.nbcnews.com/news/asian-america/ex-recruiter-accu...
Many excellent indie games are on itch though - take Celeste, for example.

https://mattmakesgames.itch.io/celeste
You’ll have fun if you implement all the generation algorithms in that article. If you want to get rid of the visible bisect structure, you can use your solver with only slight modifications to generate your maze.
That sucks; I'm sorry I don't have any other ideas to help
Thanks - I have not looked too deep into that yet, basically just scratching the surface and back to coding, but I have it on MY chaoslist :)
The story sounds quite familiar in both data scientist and system programming parts - in past years system programming(especially embedded system) is highly undervalued. As I know some of my friends doubled their package simply by switching from firmware dev to embedded ML model deployment, and they said the new job was even easier.
LLVM IR is not portable. LLVM's infrastructure allows you to write portable code generator, but the IR is definitely not portable.
Do you happen to have any public information on this approach, it sounds interesting but I'm not up on the C# world like I used to be.
For a great example of this, I'd recommend reading The Inner Game of Tennis by Tim Gallwey (or watching the lecture if you can get your hands on it).

It's essentially taking a coaching mentality towards your writing, letting the reader take the steps themselves to feel confident in it, and then only afterwards telling them what they are actually doing (e.g. in that context, properly serving).

It's a fantastic process and the book, of course, explains how it works in the context of teaching tennis.
The email trick seems like a great way to avoid procrastinating, and get started:

> The other thing that really helped is that I didn’t allow myself to check my email until I worked on the book.
Interesting, Chromium 71.0.3578.98 on Archlinux requires enableing TLS 1.3 via a chrome flag or perhaps ssllabs client checker won't detect it unless downgrade protection is enabled?

It doesn't apper thet qtwebengine has TLS 1.3 support yet despite it being based on chromium.
Disclosure: I work for BuzzFeed (and was not affected by the layoff)

The layoff affected people who've worked for BuzzFeed since the beginning and made it into the force it is today. These are skilled employees.

There are also other factors about the layoffs that you may be hearing about soon, and I suspect will be very relevant to the HN audience.
Yeah, this

for (var n in 5) // n is in [0..5)

should just work as it does in Sciter.
The submission's title is "Why Is It So Hard to Detect Keyup Event on Linux?". I knew the answer to that very specific question, so I offered it :)

As to whether we need to evolve this functionality today, I would hazard that the answer is "no". I did sketch out how it would be done, if we really need it and people want to implement it. But my guess is that there are too few people with the desire and funding to work on this problem. Reading TFA today is the first time I've ever heard of anyone wanting key up events in the tty -a tty that has some 45+ years of history- so I'm a bit skeptical that this will somehow become such a blindingly obviously highly desirable feature _now_ that it might get done.
Yes. I suggest doing a google search for why there are so few women in tech; you will plenty of articles, including some that point to recent studies. For example:

https://www.inc.com/minda-zetlin/stanford-research-explains-...

It’s also interesting that your sister’s experience is reflective of the findings in various studies. Would your sister have pursued tech without your support?
And neither of those two are on this list. Even if they were laid off, they'd have no trouble getting work. These other 54 were likely laid off for good reason.
Of course, the vast majority of drivers would do so (including me). That would just be incredibly inefficient to do otherwise. Nevertheless, in my home town, it is against the law (Ontario btw, so I confess I cannot speak for the US).

Same thing goes for the left turn on yellow light. If there is a gapless traffic coming from the other direction, you will probably just creep in the intersection and turn at the end of the yellow, when the other cars have stopped.
Nevertheless, by doing so, you are doing two illegal things: 1) going further than the stop line and 2) passing on a yellow (or even a red) when you could have stopped (easily, you were already stopped). Is it a bad thing that people (again, including me) do this? Probably not, doing otherwise would be a huge loss of time for everyone and it does not really increase the accident rate. Yet, it is against the law.
A pretty neat example of this is mbostock's A* search: https://beta.observablehq.com/@mbostock/best-first-search
True or not, itch has always been categorized in my head as "the place you put your game if you can't get on steam/GOG", like having your website hosted on geocities instead of your own domain.

I don't know what could be done to change that stigma, maybe a "killer app" as someone else in the comments said, because as has been pointed out, everything else about the platform seems favorable.
A note on your trailer video - “cancel handy contract” might not make sense to American English speakers, since “handy” is not a term we use to refer to a cell phone.
Isn't that exactly the discussion?

It is against the highway code to do that, so can't be programmed in, as this would be ultimate premeditation of breaking the law.

On the other hand, in the real world, this is how people sometimes use turn signals, so autonomous cars are at a practical disadvantage and can't merge when a human driver could.
There's a limit to the 'energy' the system can store: the amount of heating that can be pre-buffered and used effectively later.

This comes with the downside of leaking energy a lot faster than batteries. Moreover, the more energy stored, the faster the leakage.

All that is not to say this is useless. Just to say the role played by heaters is different from batteries. Notably, neither are a good solo solution to the volatility of renewables.

I know that in the Netherlands, stuf like this would require infrastructure upgrades. There is simply not enough copper running to consumer houses to handle the amperages.
The fact that you succeeded doesn't matter

You don't get to determine that for someone. It is not my nor your, nor anyone else's place to tell someone what matters to them as an individual in their career goals or decisions.

It's fair to assess a choice as one you perhaps would or wouldnt take because your situations or living requirements may be different but one does not have any right or any authority telling someone what matters to them or why they are right or wrong for making decisions they feel are in their own best personal interests.

Especially if that individual is satisfied with the outcome and has found it beneficial for their career goals.

I don't think there's much that's going to change my mind on this.
There is a ton of value in legacy. Maintaining backwards compatibility is a big deal. At some point you end-of-life a feature, but you generally don't want to make breaking changes. The tty is probably going to be with us for many more years yet (decades), so I don't see it getting end-of-lifed.
The two most popular statically typed OOP languages for servers are still C# and Java. Besides JavaScript, the most popular scripting language is Python (let’s ignore PHP for now) which is class based.

In the mobile space, Swift, Java, and now Kotlin are all class based.

“The zeitgeist” is different than “what companies are paying real money for”.

Besides, even with OOP based inheritance, the language is still “lying” just as much. Most developers who don’t understand how the lowest level of computers work don’t understand that when you call a function it’s always basically passing in a this pointer to one static instance of the function.
The market for cyber-insurance is growing
Would you mind sharing how to fix build performance using hard links? Is that similar to setting all projects' output dir to the same physical directory?
In what way does it lie?
> It’s mind blowing that even skilled software engineers were fooled into thinking that self driving cars were only months away. The hype was blinding.

Waymo was giving out multi-million dollar bonuses. You too will learn to believe in whatever it is required for you to believe to get those bonuses.
Useless to you maybe.
For me, Pomodoro is a technique to help you get started, and to focus. Vs procrastinate all day.

For the case you mention, I would adapt the technique to whatever benefits you the most. If you're in the flow, defer the break. If you defer too much, and start feeling burned out, adjust.

For some people, 25 minutes is too long. Find what works for you.
Why should every city have a theatre?

Is there any reason to "leave features to others" if they make sense in your own language? The only issue I can come up with is that some language might die off because it doesn't have any unique features. But if that happens and the momentum is not enough to keep it alive, that doesn't seem like loss to me anyway.
> How do you manage your digital life?

You just don't. It's like not turning on the TV, not buying the Newspaper, walking past the Bar and not going in. You just "nope". Sometime it takes a mindful "I will not", sometimes it takes a simple "I have someplace better to be". It depends.

Other times you have to actively "fuck off". You do the "unsubscribe me". You "mark as spam". You do a new email address. All of this as you needs must at your pleasure.
The State of the Octoverse: Machine Learning
That will be D language then: https://dlang.org/
Shadows used to peer around corners
China’s Economy, by the Numbers, Is Worse Than It Looks
Exactly- a new language, not a retrofit on an existing one
There's a trade off here, right? Between focussing on these platform specific UX details, and actually implementing more functionality jn the app.

Also: modern smartphones are very similar to each other. Sure there are differences, but for the most part they are minor.
Maybe I clicked the wrong link but I would hardly call that PDF a picture book
I don't think so, and even where it would be, GCC's IR can evolve. But GP was talking about the limitations of C, not GCC. C's memory model puts some limits on what a compiler can do that other languages might not. Fortran is usually given as an example of a language that can be faster than C, because the compiler is allowed to do more. Rust might get there as well, at least in very specific circumstances. Given that GCC also has a good Fortran frontend, I'd assume that their IR is already more powerful than what's needed to compile C alone.
As netizens are unhappy over Chrome changes, Googlers say: It's not set in stone
Not sure, but my guess is because Spanx sells a brand as much as a product, and trademark enforcement is likely easier than patent enforcement.
A Study on Driverless-Car Ethics Offers a Troubling Look into Our Values
Perhaps, it can't outrun every human under all circumstances.

But, 25mph is still very impressive.
Game loop based systems have trouble using more than one CPU effectively. This is a big problem, since we can now get more CPUs, but not faster ones. The audio guys are happy - they can finally get their own CPU, or a big piece of one, and get out of the game loop. (Audio guys liked the Cell. Nobody else did.) The AI guys are usually running on a much slower schedule than the frame rate, so they're OK with this. The rendering guys think they own the game loop. The physics guys are struggling; they always need more CPU time. The asset loading guys are I/O bound anyway. Back in the main loop, the name of the game is not getting stalled on locks on shared data.

(Somewhere in the Second Life viewers, there's a lock conflict which causes disk delays in loading assets from the local cache to stall input processing in the main loop. All the disk I/O is in other threads, and those threads can talk directly to the vertex buffer memory in the graphics card, so this shouldn't be happening. But it is.)
Without type safety, there doesn't seem to be much to gain from this besides for a bit of syntax checking?
I have to redo all the videos as soon as the new design is completely done and implemented. I will keep this in mind than. Thanks a lot :)
There are a bunch of real journalists doing real work at Buzzfeed News.

See, for example, Emily Dugan who used to work for the Independent: https://www.independent.co.uk/author/emily-dugan
Impressive effect.

I didn't realize openmp was so easy to use. It isn't realtime but you could bake up some cool effects with this.

AMD FX8320 3.5GHz

$ time ./tinykaboom

real 0m4.176s
user 0m28.631
sys 0m0.012s
Western companies, yes. Western governments... we'll see. The Trump administration is not going easy on the Chinese government, for one. We'll have to wait and see about the rest, or about how serious the Trump administration is about tending to Chinese issues (it appears to be mainly interested in trade imbalance).
Show HN: See if your “AI-powered” tool truly uses artificial intelligence
fixed thanks again
Weekly Robotics #23
It's a doctoral dissertation. Typically this means that it itself is not published in a peer-reviewed journal, but was reviewed and accepted by the person's dissertation committee. That being said, dissertations typically contain information that the candidate has previously published during the pursuit of their degree.

You can find the author's published works here:
https://scholar.google.com/citations?user=m0y4wxsAAAAJ&hl=en...
It is a signal that I am going to get over into that lane one way or the other. You can choose to keep me from doing so in which case I'll get in front of one of the following vehicles and merge there. I don't know where you drive but that is absolutely normal and expected behavior where I do.

It seems like just one of the challenges for autonomous operations. Driving that is pretty much necessary in some locations (and to do otherwise would cause other drivers to route around you in unsafe ways) would often be seen as hopelessly aggressive in others.
Don’t hate the player or the game; hate the scrubs on the sideline.
I would add that the accepted meaning of “handy” as a noun rather than an adjective in the U.S. and U.K. is ah... a sex act.
Isn’t it perfectly possible to signal intent even when there is no ability to do so?
Perhaps this is my pessimistic view but wouldn't any government that monitors it's civilians for a potential of being "against" the government (thus, threatening that government's power) be authoritarian?

Let's take the second amendment in the states for an example. The right to bear arms is meant to stop oppressive government but you cannot purchase anti-aircraft or anti-tank or anti-anything-really weapons. So, the might of the government's force is disproportionately in favour of the very government that the amendment is proposed to prevent oppression from, yeah? (Not that I'm in favour of overthrowing the government of the states, whatsoever; this is just an observation.)

When the Snowden revelations came about, this was the equivalent of China's list of people to send for "re-education". Granted, in the states, there's been no re-education (that we're aware of), it's only a small step from taking that information gleamed from those "lists" and doing just that.

At what point do we draw the line between authoritarian and not? Shouldn't the very notion of putting people on a list count? After all, it was a list of people that suffered the consequences of the Night of the Long Knives, was it not?

I fail to see how an open society would be considered "open", if it includes secretive programs like that. Isn't the principle of secret programs against a government's citizenry the antithesis of an open society?

Maybe I'm missing something here but to say that there are any open societies left (while probably dystopian in nature and bereft of any hope of the future) is beguiling the very fact that there doesn't seem to be very many (if any at all) open societies left.

(I'm probably talking bullshit circular logic, so feel free to ignore this tirade of discontent.)
I agree, it's an apples to oranges comparison. The human has 10 fingers, a max amount of input keys it can reach with 1 hand, input lag between eyesight/motor-reaction/mouse-movement from point a-to-b. If we were trying to measure intelligence, we'd need a human with some more hands/fingers and input devices or an AI that has similar input limitations.
Battery. Electricity is more useful than steam.
In this code please remove the when keyword if possible. It's only noise. The Elixir equivalent works well without it. Other than that I'd love that kind of pattern matching on JavaScript.

case (resource) {
when {status: 200, headers: {'Content-Length': s}} -> {
console.log(`size is ${s}`);
}
when {status: 404} -> {
console.log('JSON not found');
}
I wonder what logic the first 6 would be, as opposed to the first 4. Credit cards, at least in America, have numbers composed of blocks of four digit numbers.
> Yes, but termcap/terminfo are about output, not input.

Termcap itself--the older system of the two, and the one that's mostly subsumed by terminfo nowadays--supports input-related features already! See e.g. https://www.gnu.org/software/termutils/manual/termcap-1.3/ht...

Anyway, surely some sort of keyboard raw input exists already, if only so that X can use it? AIUI, X does run without root privileges these days, and keyboard input was never the main obstacle to X running without root - video output was. So, I think the article is not quite right in its assumption that detecting raw keyboard events necessarily involves root-level access.
LLVM IR isn’t portable in the general sense, but if you’re careful to maintain specific ABI details it’s possible to have IR that works on multiple platforms.
Oh of course, Itch does have several games. It's just that it didn't have the game I wanted when I went there. It might be a long time before I want to try a game and check out itch once more.

Coincidentally the video I linked reviewed Celeste in addition to Hollow Knight, but Girlfriend liked the latter much more. That's why I went with Hollow Knight.