skysight-inc/HackerNews huggingface dataset:
To elaborate more on the idea that splitting up functions introduces complexity at the level above functions: Conventionally, programming languages provide only a few levels of abstraction. For example, if a bunch of related lines of code are logically related and can be understood as a unit, one may group them into a function. If a bunch of related functions make sense as a unit, one may group them into a class. If a bunch of classes make sense as a unit, one may group them into… a file, say. (If the language allows it: some languages allow only class per file.) And if a bunch of files make sense together, one may group them into a directory. After that, I guess directories can be grouped together for a few levels; beyond that one may group them into separate packages / modules or programs / microservices / what-have-you.

These different levels of grouping feel different (one tends to have a different reaction on seeing a bunch of microservices than on seeing a bunch of functions). There are probably tendencies to avoid much grouping of certain kinds and have groupings of the kinds that an individual programmer/team likes.

What we really want though, is from the other direction (top-down, not bottom-up): we want to start with the system we care about, have it broken down into “not too many” parts (whatever that means: 3 is probably fine, 50 is probably too many), then have each part broken down into not too many parts and so on. When you break up a function that does A,B,C,D,E into separate ones, you may be introducing abstraction for the sub-parts, but you're losing the abstraction you had at the higher level (that A,B,C,D,E are in some sense one unit) and have to now make up for it in some other way: that's (part of) the cost.

(Aside: WEB/CWEB-style “literate programming” provides one way to have grouping that, by being infinitely nestable, is self-similar: you can have the same kind of grouping at many different levels, and you can organize these however you prefer: e.g. group related sections into a “chapter”, chapters into a “part”, then break the entire “book“ if it's too long (though I don't think anyone's done that) into separate “volumes”, or whatever kind of grouping you like. And now you can have less of the language-level abstraction, e.g. an entire chapter may tangle into a single 1000-line function, which now is likely to means something more—that it's called from several places, for example—than merely being the way of achieving grouping.)
Yes of course, but it is a _signal_, not a request. You should _not_ put your signals if there is no room, just to "ask" other drivers to clear the other lane.
Nitpick: The original DRY principle in The Pragmatic Programmer was about not repeating requirements. If two pieces of code are very similar, but have to do with different requirements (e.g. business logic), then DRY suggests you not abstract it any further. DRY, as a principle, is very good, and I've not seen a case of proper use being problematic.

As the parent said:

>The question to ask is not, are these similar, but will they act and change in the same ways (to your best knowledge) both now and in the future?

If they represent different requirements, then the answer to the question is usually "No." So do not couple them together with an abstraction. If you do, you are not invoking DRY. You're just creating spaghetti.
> Isn't it a bit cynical then that a VT100 terminal emulator and the unix shell are still my biggest productivity boost as a programmer? The Windows development environment is a terrible mess. Its command window and batch script language are barely usable.

It doesn't sound like you do Windows development? Batch files are hardly at the center of it. Things just work differently over here, and if you're gonna insist on doing things the way you're used to then there's going to be corresponding friction, just like I would if I tried Linux's GUI dev tools. Though even the CLI friction on Windows is far less now that WSL has come around. (Though PowerShell's been around for a while, which you somehow omitted.)
Many people?
There are no hard and fast rules, but I've noticed that it always seems to take two personalities to create a new tech business: A hacker and a hustler. Sometimes these are two people: Jobs and Woz, Gates and Allen, Page and Brin, Moore and Noyce, Yang and Filo, Hewlett and Packard... Sometimes they are the same person (who are also generally a-holes): Ellison, Zuckerberg (but not always): Benioff. Sometimes a hustler hires the hackers: Ford, Bezos. Sometimes the hackers find the hustlers: Andreessen, Omidyar.

OK, these are probably generalizations, but it seems to fit a pattern, no?
Have you ever tried to drink carbonated beverages through a paper straw?

You might be surprised by the result.

Whether it's a moralistic holy war, to drink carbonated beverages at all. Whether drinking straws are necessity to begin with. Whether canned pop-top beverages are getting their tops licked, and handled by freaks with dirty hands and long fingernails on bodega refrigerator shelves. Whether fast food was ever a good idea. Whether eating things that come from factories is safe. Whether agribusiness megaconglomerates are commissioning bogus researchvertisements.

All I'm trying to say is that there might be reasons why some materials are selected, and others not.
I kinda disagree. At least some of the article is specific to Linux's console implementation. Not the "why", but the specific workaround given for the terminal doesn't necessarily generalize to other POSIXs. I think it's fair to specify that in the title.

And the complexity of the article's answer is certainly interesting to people who care about receiving keyUp events.
Restraint.
Also, why didn't he start a Kickstarter campaign? I would imagine that crowd-funding would be the perfect approach to something unable to attract investors. He seems like a smart guy, I'm sure he must have considered it?

I agree too, the author really could have dug deeper and asked some questions instead of just focusing on his 30-years of failure (with some uplifting moments).
This is somewhat overstated. Unix-like systems have a whole framework of "termcap" and "terminfo" descriptions of terminal capabilities, and it wouldn't take much to add a keyup-reporting mechanism to these that's shared between e.g. xterm, the Linux VGA console and the modern Linux FB-console. This is similar to how "terminals" have been retrofitted to enable, e.g. mouse support, or 256-color support, or viewport-size reporting.
AWS console recorder
There's a left out qualification here: "without breaking backwards compatibility". Sure, you can fix it, you just might have to change the entire stack a little bit and say goodbye to running all the programs currently out there. And then you can have a subsystem for backwards-compatibility, or in the worst case, a VM.
This isn’t really python is it?
It's not uncommon to correct click-baity titles in a submission. By "submission" I'm also referring to the original article.
I'm pretty sure a GUS still in its box would turn up a rather good price from nostalgia enthusiasts.

I mostly remember it for the fact that a great many demoscene demos and even some games would only play sound (music) if you had a GUS, a Soundblaster wasn't enough.

I think it had something to do with it being easier to play MODs on a GUS, or something. I imagine this was because you could load sounds into its memory and trigger them? I'm really not sure, someone please clarify :)

Either way, make sure you get a good price for that GUS :) Or better, make sure it finds a home with a loving enthusiast :)
Zuckerberg is an alien/lizard. But seems like yes.
Let's make leveraging technology to harm or control those who cannot effectively wield it illegal, or at least compensate for such power imbalances.
Yeah holy crap, this didn't actually get published anywhere did it?
Looks like it's just benchmarked against inverting a 5x5 matrix? Would the results still stand for larger matrices?
Being able to have a constant that is not constant makes me feel like i am being played for a fool somehow.
So you need a bit of knowledge about what keeps you from getting sick, but actually preventing the sickness is very, very easy. In fermentation, there are several ways of doing this, but salinity and acidity are the most important factors, and those are built into your fermentation recipes. Kahm yeast can be scooped off the top when you see it form, and while molds can (but don't always) ruin a ferment, they're uncommon if you're maintaining proper salinity, using fermentation weights, and starting with very clean equipment.

You don't leave your ferments uncovered, and while you can do fermentation in ways that you'd need to worry about pests, cheap fermentation equipment that will make the question irrelevant is easily available.
My wording was bad, I admit it.

My point was that signals should be given only when you have the _opportunity_ to do such maneuver. If the lane to your right is crowded, putting your right signal on achieves nothing. In other words, your signals do not give you the right of way.

I do not think Waymo cars are unable to use their signals, but they are probably programmed not to put them on when the turn/lane change cannot be achieved anyway.
Its extremely hard to detect hypoxia in yourself. Since your own detection apparatus is faulty it usually doesn't work. Your best bet is to see if anyone else looks like they have hypoxia, and if so should trigger the thought that you might as well. Think of it like being able to tell if you are in a dream, it takes most people some practice to tell, even though it seems like it should be simple
>It doesn't sound like you do Windows development?

I do, although I have only done it part time for about 16 months. And I don't do business software. I'm working on a compiler in my spare time, and on an industrial dashboard for work. Both are written in plain C (plus OpenGL and FreeType for the latter) and run under Linux as well.

Command window and batch files are still way more productive for me than using a pile of junk that I don't understand, hidden behind an IDE that I cannot automate.
But that perfectly describes “about to execute a turn”. Not what the article is describing, which is to request that other cars open up a new (previously non-existent) space to allow for a lane change.

Human drivers will sometimes do this, but in my experience they’re just as likely to cut you off once they see you want to change lanes in front of them.
Science Has Only Two Legs: https://m-cacm.acm.org/magazines/2010/9/98038-science-has-on...
It kind of does. The "paid software" will probably have some half-arsed attempt to "fix the damn problem" that makes everything awful, because a manager wasn't interested in hearing about "whose fault it is".

It won't work properly, and you'll constantly be screwed over by it, but hooray, you've got "paid software" which your boss knows was able to "fix the damn problem" so there's no point even saying it can't be done, even though it can't be done - after all they paid good money, and whoever heard of a manager spending good money on a product that doesn't work...

Most of you have probably used software built to this philosophy, a lot of the middle boxes for example. Most anti-virus software. Back in the day "RAM doublers". Because you may laugh at the idea of paying for software to pretend to increase your RAM rather than just actually buying RAM, but remember, "fix the damn problem". Nobody wants to hear about it being impossible, I want software that doubles my RAM, now write it...
>$15k-$18k a blade

Seems like even less of a viable approach for a mass-market product.

Actually, Seymour would probably have been better off selling his boots in this price range as toys for people with too much disposable income.
This reminds me of the Moller M400 Skycar. Although the inventor behind it was likely years ahead of his time, after 50 years he is still trying to get it off the ground. Sadly at this point the company is characterized as “no longer believable enough to gain investors”.

One interesting thing I see in common between the two is a great deal of effort spent quite early on retaining IP (patents, etc), vs successful companies who seem to rely more on execution velocity and first mover advantages until they’re much more mature.
I think you just mean different things by "heating" - if you're talking about heating in a closed system, they're the same - 5 joules of energy are needed to increase the total heat energy by 5 joules, with either approach.

The advantage of the heat pump is that we are, for, say, 3 joules of energy, heating part of the system by 5 joules and heating the other part of the system by -2 joules.

This is great for home heating and the like because we don't care about making the outside slightly colder.
As I said somewhere else, wind energy output is much higher (on average) in winter. Also, no one in their right mind will currently switch to electric heating in Germany, why would they? There is natural gas (for now), maybe later on biogas and already now wood pellets for heating.
I know people would complain incessantly about it, but I wish we had real-time electricity pricing.

A smart dryer could react minute by minute to draw the cheapest electricity over 5 hours. Same with car charging
"With it, you have the power to keep running With it, you will no longer waste the annual fee of fitness card. With it, you can use your footsteps to measure the length of your life. With it, there is health With it, walking on the road, you are the most special one."

this sounds like one of the chinese knock-off companies that just ignored the patents.
IIRC /dev/input/event* gives you that
I can’t imagine a world where I’ve spoken with dozens of delivery drivers.
Based on the limited info we have, I would guess that he's a perfectionist. I've known a couple of people who have ruined great ideas and initial traction due to their perfectionism.
America pretends technology wins wars
Credit Specialist
I applied for a loan but I was disqualified due to my terrible Credit Report, I surf online for a solution to my credit. After the death of my late wife life has been perilous for me and my 3 kids, my business too was not in good shape. I had late payments, Eviction, a large history of bills, couple of collection. My credit was a mess with low score Trans 527 Equ 479 Exp 590. 2weeks ago I was on a Credit Repair Site following instruction and Video lesson on how to fix my credit when I came across a review of a lady testifying about how she got her credit fixed using the help of a Credit Specialist. I contacted him on DPROTOCOL7@GMAIL.COM, +1 320 245 4036 and explained my situation that I really needed help although I was skeptical about the whole thing, I just had to give it a try. I followed he’s instructions and did all he asked me to do within a period of 7 business days my credit was fixed and my scores are excellent. Thanks to DPROTOCOL. Contact him for your credit repair, nothing to worry about. Cheers
"the U.S. has dispatched lawyers, diplomats and intelligence officials to corporate and government offices around the world to press its case that Huawei must not be allowed to run their 5G networks"

and

"U.S. officials, mindful of Huawei’s market advantages, are even trying to develop packages of U.S.-made gear to provide foreign companies an alternative to buying Huawei"

I think this is the crux of it. If Huawei was a security problem, the US would just worry about itself. But Huawei is actually an economic threat to them, which is why we've seen this anti-Huawei sentiment recently.
Treatment against granulomatous meningo encephalitis
I'd love to support this service. They do everything right - they take 0% of the game and give the entire amount to the devs. In contrast Steam takes 25% (earlier 30%). The tools itch offers to devs to package/upload their game are considered to be best-in-class in the industry and they're all open source [0]. There's an excellent article that talks about the difficulties in creating a competitor to Steam, and the kicker is "the service you're thinking of already exists - it's called itch.io" [1].

And yet when I think of an indie game I want to buy, it's not there. Just today I saw an excellent review [2] for a game called Hollow Knight. I couldn't find it on itch, ended up buying it on Steam instead. FWIW, the game is also available on gog.com, the Humble store and all consoles, so it's not like the devs haven't taken the effort to make their game accessible.

[0] - https://github.com/itchio

[1] - https://www.fortressofdoors.com/so-you-want-to-compete-with-...

[2] - https://www.youtube.com/watch?v=ksexEs7FKf4
Merging is different than changing lane or turning. In some states, you may have to give the right of way even if you do not change lane yourself.

But I agree it was bad wording on my part. My point was about those drivers who just leave their signal on for 2000 ft and expect that it gives them the right of way over the other vehicles in the lane they want to move -- and usually get angry when they do not.
If that's the entire list of shortcomings it sounds they re in pretty good shape. There are audiences for which this car is an essential, and hopefully drivers will adapt to robocars , just like horsecars adapted to autos.
A built-in way to conveniently iterate n times.

Anyone have a sensible pure JavaScript example for:

range(5).forEach(fn)

I haven't found one that felt small enough to use inline. It end up using traditional for loops.
FindMySpot – Python command line script to spoof FindMyFriends
> People will get in touch with you

I found this out in the bad way about a year go. Emergency contacts are a thing. If you have "Just No" family, that's a multiplier against the Bad. If that sounds bonkers to you, consider yourself lucky.

I'm glad that 911, 411, and "welfare checks" work even if I'm on the wrong end of them. I am still trying to understand and deal with otherwise.
Suppose you're in the center lane during some stop-and-go traffic. You want to take the next exit. Do you really just drive along in quiet desperation, hoping for a gap?

I—and everyone I know—would leave their blinker as they creep forward, "requesting" that someone leave a gap big enough to take the exit.
In the long term human brains are input and computationally limited.
Since everyone is coming from different language backgrounds, I wonder if it’s better to treat JS/WASM as a low-level compile target, and simply compile peoples’ language of choice to JS (OCaml via Bucklescript, Scala via ScalaJS, Haskell via PureScript, Clojure via ClojureScript, etc).

That way you avoid bloating the core language with everyone’s pet features (I’d also love pipe syntax, but am not sure it belongs in JS core).
Itch is awesome, been up for years!

I run a semi-competitor called https://simmer.io. My focus is:

-WebGL Games (only, no downloads)
-Youtube style presentation (and embedding)
-Being the easiest place to upload a game, no rigamarole. Drag your webgl build onto the page and call it a day.

We have about 2500 games and developers signed up. It's currently mostly a place to show off your work, but working on more monetization options right now.

Feel free to reach out if you have any feedback or ideas for the site. rocco@simmer.io
You made a nice post but that's not the question being asked. The historical record is different from the question of whether a terminal needs/deserves it this decade. ("need" obviously being non-literal)
To summarise: Use Python to output LLVM intermediate representation (IR) and then compile the IR.

C was created in the PDP-11 era whereas LLVM IR was designed for more modern processors, so coding in the latter allows for more performance optimisations that C compilers can't always make.
Am I the only one who thinks being able to bring a vision you had at 12 to life is a remarkable success?
Espanyol vs. Real Madrid EN VIVO ONLINE: Liga Santander 2018-2019
https://qiita.com/hunted/items/d9a33a0d7e688beb6b91

https://qiita.com/bvgfbcfb/items/98343d8b8203216912da

https://qiita.com/live2hour/items/9accb7e84b535be03213
Yes, but termcap/terminfo are about output, not input. Some output sequences could be used to alter terminal behavior, of course, but if no terminals implemented a protocol for sending key up events, then that wasn't going to get implemented. Recall that termcap/terminfo are about abstracting differences in terminals, not about driving terminal evolution. And again, any in-band protocols for sending metadata like key up events would have required much more than merely a terminal capability abstraction layer like termcap or terminfo: it would have required something like a variant on tty/pty driver raw mode so that legacy applications need not be modified to understand this. Or, alternatively, it would have required shells at minimum to understand these new modes so that they could still let you type `tputs ...` to recover from apps putting the terminal into that mode but not restoring the terminal to its previous mode upon death/stop.
I wouldn't exactly call anyone who has worked at Buzzfeed "super talented."

I don't think anyone sane would.
One thing to note is that you can deactivate your Facebook account but still use Messenger, which is what I did. I'd prefer not to use messenger either, but I have so many friends from over the years that I use messenger a new primary way of talking with them that it's not likely I'd ever be able to convince all of them to switch to another platform. That being said, I still see this as a huge improvement; not having a news feed to look at has been a net win for me, and since college I hadn't used groups very much, so at least in terms of the amount of time I spent idly on social media, deactivating the account has been a huge success. I'd guess that one of the bigger roadblocks to doing this for a lot of people would be losing access to the events features, since many people use that as their primary way of notifying others of an event they're planning. The only advice I can offer here is to let your friends who often plan events know to tell you directly (or text/message/etc.), which may or may not work well depending on your set of friends.
What is the max speed this thing can go? The article mentions 25miles/hour? It can’t outrun a human...
> I believe they also say please don’t comment explaining why you downvoted.

You shouldn't comment why you downvoted, so much on why you disagree in the first place. The thing is that there are always someone who disagrees. Especially when judging something based on a few sentences. I would say at least 10% of my comments where someone responds they have something else in mind than I did when writing it. Disagreeing over click doesn't make much sense.
I am pretty profoundly anti-nationalist. Nevertheless this, as framed, is disturbing:

> Taken literally and self-critically, the description of a transnational professional class whose members are increasingly more at ease among themselves than with many of their fellow citizens fits the tech community quite well. The same characteristics that make this community special - the strength of the network, the willingness to help each other, the ability to form bonds across countries - also make it more and more detached from the rest of the population in each nation.

I think it's the last part -- "more detached" -- that worries me.
> my wiki

This is an interesting idea. How is this more involved than a personal blog? Do you literally auto-bio your entire self into a wiki?
It's total loop unrolling, so, no. If you did this on a 5000x5000 matrix, you'd have a huge sequential code block that wouldn't fit in cache.

This trick is only useful for code that makes no control flow decisions based on the data being processed.
Is Alexa Dangerous? (2018)
Why? Buzzfeed is among the trashiest of news sources. I don't think anyone that worked there would qualify as a "journalist" in the traditional sense of the word, especially the self-proclaimed opinion writers. Starbucks is probably looking for baristas.

I'm guessing a voting ring got this to the front page.