skysight-inc/HackerNews huggingface dataset:
It really depends on the situation. For regex, certain things are much more understandable than a long set of loops for it, as long as the regex isn't too complicated. Ditto for implicit for-loops for addition in say numpy or fortran 90. I've seen scientific codes in C that have like 5 to 6 order nested loops that end up being thousand+ of lines, after which the length requires much much more time reinternalizing after coming back months later, or worse, as someone who didn't write it, all due to the fact that the whole damn thing can't fit on a single page of emacs and be still legible.
Good question -- I appreciate it. The application of human ingenuity to solving problems maybe (engineering in the widest sense). But there's something even more abstract, I think... Something more like _thinking_ most generally. It's almost like reading philosophy in the way it carefully and openly walks through a progression of thoughts...
Think of it this way - Megacorps once upon a time realized they had a lot of lavatories not really being used. So they decided to start renting them out. That became a profitable business. Thanks to how Corporate Robots are programmed, the moment a profitable business is spotted, the next move is to Scale up.

They got a bit carried away thanks to Moores law making lavatory building cheap, especially if you buy a million at a time and so now we have town sized constructs of just lavatories. And all those lavatories need infinite quantities of piss and shit to justify their existence. Conduct hackathons. Fund incubators. Hire the best and brightest and it's possible to get populations to ramp up piss and shit generation. It then takes armies of sales and marketing drones zigzagging the planet day and night incentivizing orgs and people to ditch their own loos.

The stagnating transport industry (Big Telco) woke up when they noticed people taking shuttles to Mega Loo Plaza and started competing with each other to upgrade their own transport infra all over the world. A confluence of all these factory take us right back to where we started. A lavatory excess. But don't worry the Corporate Robot class is on the case. The goal is to get people to piss and shit 24x7 to utilize that excess (you will notice people who produce a lot piss and shit are encouraged). And things seem to be going well.

And ofcourse you can use your own loo at home. They are very cheap these days.
Definitely a thing on Reddit (https://www.reddit.com/r/Wellthatsucks/comments/9l6jsa/this_..., https://www.reddit.com/r/whatisthisthing/comments/dj0v2d/2_h...) and Twitter (https://twitter.com/search?q=2%20hour%20ad%20youtube).

Some posts go back to 2018 when the whole Lego movie was an ad.

YouTube guidelines say 6 minutes maximum for an in-stream ad (https://support.google.com/displayspecs/answer/6244563?hl=en) and 3 minutes for a TrueView ad (https://support.google.com/displayspecs/answer/6055025). I think these ads are TrueView ads because they show up on TVs etc. but maybe they're from some other program.

YouTube is a black hole though so either they've already noticed it and deprioritized it to 10 years out or, more likely, it's just not something they're monitoring closely enough to notice.
Sure you can. But it isn't nearly as certain to generate the same kind of output when changing printers; platforms or programs. PDF at least does that part well and I totally support the authors choice and think .png would be a terrible format for this.

They're meant to be posters, pdf is entirely appropriate.
Autonomous car trials: Are they smart or reckless?
I stopped watching real time stuff (news, local, etc) and like watching old series an episode or two a day. TNG was great and it took a few months.
They don't sell Hilux in the US. Comparable to a Tacoma I guess? Which is the "small" truck market, which is what I bought into if it wasn't clear. Not one of those 6 wheel HD5000 monstrosities...
They've been displaced by a new moral majority. For example, the producers have decided to erase the Michael Jackson episode of The Simpsons from history. Now that the Right People are burning books, book burning is A-OK with the Simpsons crew.
What not to do? He made $700m, who doesn't want to do that?
Ah, the smell of eugenics in the morning.
I agree, sharing code is better for the research community. But once you share everything, you sort-of lost your edge.

And since we live in a very competitive society, that's a big problem. Not just for academia, btw.

As for ideas: I think AI and code offer us new ways of capturing expertise(search engines already do so to some extent) - and that may mean everybody could build a cross-disciplinary team "on the cheap".

But even with that, inventing important things still feels like it would require a lot of work and experimentation and tools - so it would be an expensive business.
Agreed! PHP was the first language I learnt, and to this day I still feel like I must be missing something obvious when getting lost in other projects' documentation.

Case in point: python! I tend to find the C interface, or decades-old RFCs long before I get to what I'm actually looking for.

Only language on a level with PHP has been Ruby.
https://www.thewrap.com/disney-plus-subscriptions-more-than-...

Early hype for the Mouse House’s upcoming streaming service, Disney+, appears to be building, with 24% of Americans saying they’re “extremely likely” to subscribe once it’s available in November, according to a Tuesday survey from UBS. That would come out to about 30.2 million U.S households. Another 19% said they’re “somewhat likely” to subscribe, which, if grabbed by Disney, would add another 24.2 million U.S. households to its fold. Disney execs, on the other hand, have projected Disney+ will pull in up to 30 million subscribers by the end of 2024
Of course when I play fake blackjack I make 10x my initial bankroll within 5 minutes.
Huh, that’s another really interesting hypothesis.
> They don't sell Hilux in the US.

Wow, really? That surprises me - I thought they were the universal pickup - used from war zones to farms, by charities to terrorists, all across the world. I thought there wasn't a place on Earth you wouldn't come across a Hilux.
More important is that states can’t control immigration and cross-border trade, making a variety of policies infeasible or much more expensive, compared with the same implemented nationwide.
This doesn’t help if you have pre-existing debts.

Also, there are no Platinum plans where I live (western WA), some counties, especially rural, low-density areas, sometimes only have one plan provider for individuals for people who don’t qualify for Medicaid - and they aren’t obligated to provide even a Gold-level plan.

We need universal coverage, now.
Many things happen in the Linux kernel. It doesn't matter which distro you use as long as the kernel supports your hardware. Lots of distros have taken credit for things that happen outside of what they do.
Agreed, and people forget that you are not locked into contracts for any of them. That's the killer. Alternate them as you see fit, don't need to have them all at once. And since they all allow you to watch what you want when you want it, it's more like choosing a show to watch every month and paying only for that by subscribing for that service only for that month.
> You are probably reading it in an Info hypertext browser, such as the Info mode of Emacs. You might alternatively be reading it TEX-formatted on your screen or printer, though that would be silly.

I'm read a PDF :/
C++ devs are encouraged to do loopless programming by using algorithms in the standard library; plus C++20 ranges should improve the ease of loopless programming.

Where J shines is array based programming. The C++ algorithms are concerned with vectors, but in J you can combine matrices, vectors and scalars in concise expressions.
It's funny how people like to bash long Java stacktraces, while they help immensely in the situations like these. It's obvious from the start where the error is and all those stacks can help you to find out every little detail that lead to the problem.
How will there be a race to the bottom on price, when companies like Netflix are barely cashflow positive right now?

Will subscribers really decide to pay $5 a month for a subscription with a bunch of shows they don’t want to watch instead of $10 a month for a subscription with a few shows they really want to see?

How are these companies going to deliver more video ad value per viewer than someone like Google does with YouTube? They may have all of the big brand advertisers lined up, but will they ever even reach parity the revenue per user of Google and Facebook?
Had no idea these were online. Thank you!!
I could balance equations in chemistry and do some algebra and trigonometry at GCSE level. But this blows my mind. Higher tier GCSE Maths. I should have paid more attention. I think I know of what regression is in a simpistic term. It's like taking a rolling graph and predicting the next point on the x / y axis, using the previous data as a training model. I hope.
> Whether through dual class shares, or retaining a large % stake, it's the same.

But is it the same?

In one case, the family owns the majority of the company and controls it. In the other case, the family only owns a small percentage, yet still controls the company.

Can a family that doesn't own a company be trusted to act in the company's best interests, or can they be trusted act in their own interests, using their control to extract as much money from the company into their own pockets, destroying the company in the process?

That's what I think the story is getting at, but it's poorly written.
Plastic bags were supposed to help save the planet
If you care about 1.5s and other measures in the same sizes, then this post is for sure of interest to you, because you can save 100MB+ of RAM and have a perfectly functional and beauty DE with LXQt!

By the way, I use Plasma on my everyday job and I can't complain of it.

It's fast, feature full and works very well. (I never seem to understand how people complain of it being slow, bloated, whatever... Mine isn't!!)
The thing I love the most in it is being able to set it in whatever way I want. I never get tired of it and so far it hasn't let me down.
I'm always amazed that, whatever crazy idea I think of that can speed up my work, or make me more comfortable about my DE, they have an option for it!!!

It's a kind of freedom I can't find anywhere else.

For older computers where every MB counts (plasma uses around 350-500mb), or for people who don't care about extreme customizations (that are happy with an XP/7 like DE), then LXQt is used
I don't use CLJS a lot, but I do have some production CLJS code running on Lambda which uses promesa - it's much nicer than core.async IMO. I'm on a slightly older version, but it now contains versions of let which work transparently with promises:

https://funcool.github.io/promesa/latest/#promise-compositio...
Sound familiar. I had a boss that wanted to clean up our error messages and stack traces from our library/api and make them cleaner and more useful.

To make it cleaner, he wanted to absorb the whole stack for any error raised in our library and only print the error text. To make them more useful and helpful, he wanted us also include some guides on how to debug and solve the problem, based on the error, in the error text.

Fortunately I was able to convince him this would make things difficult for everyone, in a calm collective way.
I didn’t make that argument. The argument is that those attending the institutions are dumber than the Asians and whites they’re replacing (edit: at the margin, obviously), because schools unfairly discriminate in their favor. These aren’t pygmalion geniuses from the ghetto, they’re middle-class kids with cell phones and laptops. Half of black Americans in the Ivy League are from post-civil war immigrant stock. An over-represented minority.
Often it's the other way around. The solution is found, and it is justified with a rationale. But the rationale came later, it is built with knowledge of critical theory and analysis of solutions.

The trouble is you can't teach the intuition.
> if a device could* function without such a backend it should be able to function without such a backend*

How would the device receive security updates? Or is the hope/expectation that the device would have no security vulnerabilities? (That seems hopelessly naive.)
Ask HN: How do you stop the “employee mindset” when pursuing entrepreneurship?
I seem to get some comfort from having an authority figure to work with and offload some of the responsibilities to that I would have as an entrepreneur. Also the authority figure can be a source of pride when they acknowledge my work.

I find that if I am unemployed it is really bad for my self esteem.

How do you get out of the employee mindset and let go of the needs fulfilled by being an employee?
Maybe, but I've never seen "heat haze" curl & wisp, and it doesn't reek of tires & chemicals.
just popping in to say thank you to the dev team if youre seeing this. pop os is slick. i ditched win10 for it and it gives me a hope for the linux desktop i havent felt since 1999!
I work in a related area. We have algorithms that run in O(N^9) time or worse, so we can use only molecules with 5-10 atoms. In each atom you must consider about 5 orbitals, so the run time is more like O((5N)^9) if you allow me to abuse the notation. We have other algorithms, some run in O(N^12), some O(N^4), some ... well you can trade physicals accuracy for computational complexity. Once we got a x20 and we were very happy. For us, it means 1 or 2 more atoms in the best case.

Back to their work, they are probably using some algorithm that runs in O(N) because the images have a lot of atoms and anything that is not linear is too slow. In some cases the O(N) algorithm reach a good enough result, but sometimes it has a few hidden approximations and restrictions. It's very difficult to do better than O(N) in this systems, so you can't change the asymptotic complexity. So you only can change the big constant that is hidden by the O. A x3 is nice, it means 3 times more atoms.
I started with Clojure but ultimately ended up using scheme. Clojure has built in solutions to some of the things that you’re asked in exercises which I think takes away from the experience.

I’d suggest going with a scheme such as racket.
To the extent that people believe that they are part of a much greater whole, then this takes on an entirely different context.
My thoughts exactly. Let’s all be adults here.
Catalonia has created a new kind of online activism
> add each number in a list x to each number in the corresponding row of a two-dimensional array y

I mean, I could write a function `add(x, y)` that does that in any language. You could even inspect the data or type to make it polymorphic. I believe NumPy does this, for example.

Skimming the rest of the article, I don't get how this is different from any other language. The primary difference seems to be the function names are all one or two characters long for some reason. I must be missing something...
Can you expand on your answer, please. I haven’t been following Linux kernel updates and wondering if you’re implying that they did a better job at supporting hardware or was there an organized push to support more hardware?

Also, just out of curiosity, did additional hardware support take away from other areas of development or was this just natural since more Linux kernel devs just use different hardware and saw direct benefit?
I’m on neither side. I also wholeheartedly believe in anthropogenic climate change, but I think the commentary on climate science is about as ignorant and anti-scientific as the views espoused by young earth creationists. Climate models are flimsy as hell and have an atrocious track record of making predictions. Yet “the science is settled” (or a close approximation to it) is the only acceptable view in most circles. This gives climate change deniers a remarkably strong platform, because they can just say “climate scientists (or more often climate science communicators) are full of bs” and then point to countless examples where that is absolutely true. Science is never settled, in any case that you think it is, you’re not dealing with science, you’re dealing with an opinionated dogma. A statement which almost everybody would agree with, on any topic except climate change.
What's the difference between COMEFROM and attaching a hander to an event?
I feel like, in Go, the ideal is to handle the error in situ. If it has to be passed up, it goes the shortest possible distance before reaching code that can handle it. This is a difference from exception-throwing languages and so it changes the importance of a stack trace. You don't need to know where it broke because it broke here. The same approach as in C. You test the result where you made the call.
I've lived without a car for more than a decade. I'm not specifically looking for a place that bans cars, but I would certainly like to see a more people-centric, less car-centric US.
I'm seriously thinking about it. I'm just addicted to creative cloud for stuff. Anyone know how to get it working with after effects and adobe xd?
In many places consumers do pay a recycling fee for plastic bottles.
The right to repair movement is not about doing everything yourself but making it possible and fast for skilled people to repair.

The cost difference between paying someone to completely deconstruct a MacBook and spent ages with a plastic card and glue melting chemicals and having to source a hard to find unofficial battery vs using a screwdriver and an official battery is enormous.
goto is one of those things that you're actively discouraged from using or ever thinking about without ever knowing why or having to read "Goto Considered Harmful." goto at least in C is the only way to implement exception handling in a way that properly separates the good path from the bad path without having many sets of nested conditionals after which most of the line becomes whitespace. It is also the only way to exit a deeply nested loop as well. It should be discouraged, especially jumping backwards, but it is necessary in some few cases, at least in C particularly.
Well done! XD
I agree it's challenging, but I don't think it's impossible, at least in aggregate and as a first-order estimate. Or that fiscal is all we're left with.

The case of inventions long going unsung is a whole 'nother aspect. Or of inventions that came around at one point in time but really didn't hit their prime until far later.

Example: The drilling rigs which were used during the early part of the petroleum era -- 1859 - 1900 or so, were based on a 1,300 year old Chinese method for salt brine drilling. The main change since has been the introduction of rotary cutter heads (in the early 20th century, possibly late 19th), rather than a fixed bit at the drillhead itself. And yes, there've been incidental improvements in metalurgy, diamond-coated cutters, carbide steel, drilling muds, and more recently, hydrofracking (itself dating to the 1950s).

For measures of impact, I'd look to the work, again, of Vaclav Smil, who's quantified a bunch of this stuff and has some good thoughts on how to go about that.
Who's talking about cultural works that people can't access?

What we're talking about is how much money they can access them for, and how many services they have to sign up to access them, and whether every single person needs access to every single work.

Your analysis is way too simplistic for this conversation.
No. Above I explained to you why my experiences has made me to think "dev" is special. I don't get your reaction.
Just finished updating my laptop as I make this comment. Super smooth, loving it!
Just FYI, the code-formatted block quotes in your comment need a lot of horizontal scrolling both on mobile and desktop because of the very long lines. Unfortunately HN doesn't provide any kind of nice formatting for block quotes, so it's understandable that people try to use code formatting for this.

Sometimes commenters will use code formatting with manually entered line breaks, e.g. keeping lines to 72 characters or less. But that is still hard to read on mobile devices.

Instead of code formatting using leading spaces, here's a good alternative for block quotes (the '>' goes in the first column, no leading spaces):

> *A paragraph of block quoted text.*

This renders as:

> A paragraph of block quoted text.

If the quote has * characters within it, don't try to italicize it, just do this:

> A paragraph of block quoted text.

which renders as:

> A paragraph of block quoted text.

Either way the quoted text will be wrapped correctly on any device.

Give each paragraph its own '>' indicator and a blank line between them so they don't get wrapped together.

In case you don't get a chance to edit your comment, here's a more readable copy:

- - - - - - -

> Looping - performing a computation repeatedly - is what programs do. In most computer languages, all loops are expressed by one of two statements:

> Do While - repeat a code block until a condition is met

> For - repeat a code block, with a loop index indicating how many times the block has been repeated.

> Programmers trained on scalar languages have spent many years internalizing the Do-While and For paradigms. Discarding these paradigms is the biggest re-think they need to make when they learn J.

A lot of languages have these kinds of semantics and arguably in a more streamlined / better organised way - Haskell typeclasses for example. I don't know if it's true that 'most languages' only support for/while loops, but probably not. It also doesn't take 'many years' to internalise for/while loops, these are fairly basic constructs which are learned by most novices in the beginning of an introductory programming course.

> (x + y) is an expression rather than a statement. The J programmer can embed (x + y) in a larger expression, perhaps a matrix multiplication (w +/ . * (x + y)) which adds the equivalent of three more nested loops, but is still a single expression. Expressions can be combined; statements cannot.

(x + y) is going to be an expression in almost any language...

> Many modern languages have iterators, which slightly streamline the For loop, but without addressing its fundamental deficiencies.

What are the 'fundamental deficiencies'?

This seems like a pretty low-effort write-up.

- - - - - - -

(end of reformatted version of NOGDP's parent comment, please direct any replies to the original)
Regarding "Auto promoted to not-nil interfaces", here's what it looks like:

https://play.golang.org/p/7Gs76Nt-h4b

That issue is one of the reasons everything has to return 'error', not your own struct that might be more convenient to work with. I've run into it in the wild in dozens of codebases, so it's definitely a real issue.

Without generics and covariance, it's an uphill battle to create usable monadic error handling in Go. If all you've used before is C which has int returns and globals for error handling, I can see how go's error handling looks nice, but compared to most languages invented in the last 20 years, it feels far worse.
You’re exactly right. It’s fitting a higher-dimensional line or curve to the data.
Documentation in general is pathetic these days. Remember when software used to come with enormous, bound tomes? Even Apple used to provide like 10lbs of documentation for Final Cut.

https://www.flickr.com/photos/primeval/44956561934
1. Have two video cards and run Windows on the pass-through via KVM.
2. Dual-boot
3. Keep asking that Adobe make their software compatible with Linux.
This is happening in Kansas. Everyone feels bad, but not enough to actually vote based on the issue. That suggests it isn't really a major issue for them.

Not only do they suffer, but numerous people in progressive states also suffer because right-leaning states like Kansas vote the country towards these types of repressive laws.