skysight-inc/HackerNews huggingface dataset:
I think that guy just made up a generator class for fun. It’s not too different from the interator except it doesn’t have a hasNext() method so it either returns results forever or it has to return a sentinel value like null or return an exception to end iteration.

Somebody could make the case that returning a sentinel value or an exception is a better API since there is no risk somebody else is going to call the next() method after you call hasNext() and next(). Writing a generator that wraps a generator is a little simpler than writing an interest or that wraps an iteration because you don’t have to write a hasNext() function, which can occasionally be awkward.

That generator library has a few functions, like map that work on generators, unfortunately the Java stdlib doesn’t come with anything like that. (There is the streams API but it is over-complicated.)

I’ll point out this library I wrote

https://github.com/paulhoule/pidove

which does a lot of what the Steams library does but it works on iterators without creating streams. If you like those generator examples you might like pidove.

As for Python it is kinda accidental that generators would up related to coroutines, that is, generators were an easy way to implement coroutines, later async/await and stuff like that got added.
"Hi there, it seems that you are using a computer. You owe us money"

Oracle must really be desperate.
> but there's little point in electrifying heating until you have a cleaner grid

That's not true. Both endeavours are long - if you wait to start electrifying heating until the grid is fully decarbonised, you'll be waiting for a decade before starting another decade-long thing. If both are done in parallel it sill, of course, be much faster.
That sounds more like a problem with schools in Poland (or with your school in particular) rather than a problem with schools in general.
No, Mastodon is better.
public transport can be efficient if done correctly and funded accordingly (Japan, Switzerland)
If you have freaky type-level metaprogramming in your project (even in a dependency) I think it just means people are playing around. Someone did that stuff for probably more for fun than to solve a real technical problem.
I don’t think they were talking about tories specifically just Britain as a whole being very conservative. Indeed as you’ve pointed out even the Labour Party in the UK is quite conservative. I would say the same is true of America, that much of the Democratic Party is actually quite conservative.
This also applies for wireless technology. My phone generally gets a faster connection via 4G, than via WiFi inside my house (the cable connection is fast, but the WiFi is slow). I think because the 4G connection can always see a tower through a window opening, while the WiFi has to go through multiple walls. (No interest in setting up a mesh network as the 4G is plenty fast enough)
Funnily enough I find the opposite, its most effective for me when using something familiar (though nowhere near 90%). If I'm familiar with it, I can figure out pretty quickly whats a hallucination and whats not, and to what extent it is (sometimes its just a few values that need changing, sometimes its completely wrong with almost no basis in reality). The time I spend attempting to fix its output in unfamiliar territory makes it more of a pain than its worth for me
If your company is selling a product and you want to package the JRE with it, you have to pay for the license
Agreed, my experience programming has been similar. Simply put the hardest part of most big software projects is just building the right thing.
What does the image decoding attribute do?
This is fantastic news, especially for an ex-scener like myself.
Context: Today is the last ever Ariane 5 launch.
eagerly waiting for you to respond in German
Vizia: A declarative GUI library written in Rust
No. Just the Firefox built in enhanced tracking protection for that particular site. Or wait for Mozilla to whitelist the cdn domains.
Not having an “in town checkin” system like Hong Kong (or, indeed, the London Airport of the past!) is one of the most miserable things about flying out of there. Imagine how much easier it would be to take the Piccadilly line without a suitcase…
Barcelona, Madrid, Vitoria, Girona, Rome, Lisbon, Porto. Many european cities are really pleasant.
Most bugs I've worked on relate to some weirdness that requires tracking down a specific nonobvious offending function. How would GPT help with that at all? Maybe if you know a particular function is wrong, and ask it to find a bug, but by then most of the work has already been done.
It should also have a picture of you, Like a current one that slowly degrades over the course as you start eating crap and stop exercising.
> It's complicated in the political sense. They are spelunking former colonies to meet green energy targets, while those same countries struggle to progress.

It is wrong and a lie. Most uranium bought by (EDF) France lately come from Canada, Australia, Kazakhstan and Ouzbekistan. Definitively not countries you can name as "Colonies".
For me it was also a strong sense and feeling of pioneering - new demos/intros with new records, new effects, new hardware, new disks in the mail, new releases on the BBSes, new "feuds" to read about in the diskmags. A very warm and pleasant memory of my childhood and adolescence. There are few chances like it in life.
Working from home and going into the office when you have certain meetings (or when you feel like seeing colleagues) feels like a winning combination in terms of productivity.
“as yet” is doing a lot of work in that first sentence. We all have a gpt number. Like some small number of workers have already been replaced by gpt4, some it will not be until gpt7, some may out code the robots till gpt9.5… Having a higher number doesn’t mean you are a better developer, just that you sit in more meetings and have to use “soft skills” like kissing ass and playing stupid, covering your ass, and other human games that will require more advanced gpt’s.
wow, didn't know Poland is building nuclear
People should complain about emissions and the lack of emission reduction. If Germany is producing a lot more than France, and this concerns you, you should complain even more bitterly about Poland because their emissions are 1) 2x as bad as Germany 2) in contrast go Germany they are not going down since the country is dreaming of nuclear energy.

Renewables can and do replace coal, as they obviously did in Germany. It does not really matter if you are ideologically aligned with another energy source, for whatever reason.
Funny propaganda

We are at the peak of solar energy
And every night, germany imports electricity

The data from january 2023 is really funny, too
> In 60 years time when we're all driving hover cars…

Don’t get your hopes up. In the seventies we were promised personal jet packs by now.
Interesting! Thanks for posting this!
I wasn’t trying to argue the truth of any of the recent timeline claims regarding AI. The question could be taken as any disruption that removes the viability of your career in a short period of time. What’s your backup in that case?
Million Dollar HotSpots of Crime
Solar panels on rail tracks are an interesting experiment, but mind that they complicated maintenance work on tracks and require quite some maintenance themselves. (Think about oil and other dirt dropping from trains; stones and small tree branches etc being thrown around with the force of the train...)

But even if they are useable and beneficial: That's not an argument not to use other available space as well.
Indeed, but it's a perspective shared primarily by sociopaths.
cp defaults to reflink=auto for a while now, but of course some distros are way behind on coreutils.
I lost all hope and quit. Something that happened to me in real life as well.
Nothing new: https://en.wikipedia.org/wiki/Railway_Mania
It's just a distraction from their real problems.
Sandstorm was an attempt to do this, but there isn't much demand. Why install WordPress when wordpress.com will run it for you as a service?
The media has only to gain, imagine the extra sales they will get from publishing all the future leaks that will occur.
Grids in Europe are interconnected. So you can build nuclear and and import wind/solar from the surrounding countries which would effectively be the same.
You're not wrong, however we now finally have the Elizabeth Line which gets rid of that entire headache and you get air conditioning too! :)
The sinalling and designation must adapt to technological realities.

Streets not meant to be used as transit roads should be formally designated as local traffic only. Idealy this should be the default, prohibiting transit passage everywhere except on specially indicated roads.
I really hope that the trend of login walls and other barriers is reversing for the web.
Denthor, author of a famous series of democoding tutorials from the late nineties [0] was from South Africa

[0] http://www.textfiles.com/programming/astrainer.txt

(key quote:)

[ There they sit, the preschooler class encircling their
mentor, the substitute teacher.
"Now class, today we will talk about what you want to be
when you grow up. Isn't that fun?" The teacher looks
around and spots the child, silent, apart from the others
and deep in thought. "Jonny, why don't you start?" she
encourages him.
Jonny looks around, confused, his train of thought
disrupted. He collects himself, and stares at the teacher
with a steady eye. "I want to code demos," he says,
his words becoming stronger and more confidant as he
speaks. "I want to write something that will change
peoples perception of reality. I want them to walk
away from the computer dazed, unsure of their footing
and eyesight. I want to write something that will
reach out of the screen and grab them, making
heartbeats and breathing slow to almost a halt. I want
to write something that, when it is finished, they
are reluctant to leave, knowing that nothing they
experience that day will be quite as real, as
insightful, as good. I want to write demos."
Silence. The class and the teacher stare at Jonny, stunned. It
is the teachers turn to be confused. Jonny blushes,
feeling that something more is required. "Either that
or I want to be a fireman."
]
It isn't quite as classic(?) as some of the others, but I remember being blown away by Exceed's Heaven7. The fact that you could do all that raytracing in real-time just amazed me.

https://www.pouet.net/prod.php?which=5

(I have to admit I probably turned the text off though...)
This sounds a bit like the "windmills cause cancer" or whatever conspiracy FUD people who are resistant to change would like to believe. A lifetime of dumping carbon out of the tail pipe and into the atmosphere is such a handicap to a gas car that it's hard to get much worse. And sure the electricity that moves an electric car around isn't carbon-free, but it's not like the production of an ICE car is carbon-free either. Moreover, electricity can in theory come from wind, solar, or nuclear (don't wait up on that one), so it could be much better in the future.
Do-notation is a language feature though, and that's a superset of async/await.

Incidentally there are papers that are trying to improve on async in C++ by trying to sneak in generalized do-notation.
I think it's pretty much a myth that a projection was chosen to accentuate certain countries, the simpler and less nefarious reason is that they're easier to use for navigation.
Minutes – Make your meetings async with voice and video
Not only most of the bought fuel comes from other countries, including Canada, but 17% of their electro energy is generated by reprocessed nuclear fuel, also produced in France
I feel like that’s supporting the parent, right?
50 123/1 000 000 = 50.000123
Perhaps, but it was until now not electrifying heating and transportation, so reduction is obviously a positive thing. Nothing beats emissions of a kWh you saved. The question might be, was there something sacrificed to do that, e.g. did economy suffer? This would be bad, but it's not the case, the GDP is still going up. The savings are related to energy efficiency and this will reap benefits basically forever.
Ariane 6, which suffers from some delays. Vega and Vega-C are also supposed to fill the lower segment gap, but they are grounded after a series of mishaps. Tough spot for ESA launchers, but we'll get through this!
So what do you do when your customers say "this is great, when are you adding screen sharing"? Where do voice calls fit into this architecture, do we just add another UNIX util and stream the bits over SSH?

Furthermore, debugging may be "easier" insofar as the units are discrete (though any good modular architecture will have the same advantage), but what do you do when you find a bug? If you're running a business, you can't be in a place where you're just submitting it upstream and telling your customers that every single bug is waiting for a vendor fix. So now you have to take ownership of maintaining and repairing each and every UNIX utility you use. In what world is that easier than having 500k lines of Go in a consistent company style?

Joel Spolsky's advice is pertinent [0]:

> If it’s a core business function — do it yourself, no matter what.

https://www.joelonsoftware.com/2001/10/14/in-defense-of-not-...
They wanted to replace Ariane 5 in time with Ariane 6, but it got delayed a lot. Ariane 6 will be ready next year at the earliest.
Quantum Simulator for the Commodore 64
I joined the scene in 1997 and in 1998 I wrote my first "Is the scene dead?" diskmag article.
> nor is it a literal mile.

The cost problem of the last mile is not for the 2 meters between the fiber router in the home and the living room. The issue with the "last mile" is that it used to be excessively expensive to lay fiber everywhere on the, literally, last mile outside people's home.

I could plug a network card with an SFP port and have actual "fiber to the desktop" for the last three meters at my place but I don't. I'm not sure that these three meters where I run ethernet are called a "last mile" (off by a factor of 530x calling 3 meters compared to a mile) ad mean I don't have FTTH or that the last mile ain't fiber.

> ... most residential bandwidth increasingly comes from wireless techs.

What good does it make to laptops and phones using WiFi if the router is doing 40 Mbps max over DSL? It's once you bump that DSL link to FTTH that suddenly all these wireless devices can enjoy much faster speeds. In all the countries I've lived in people at home used WiFi, even from their phone, instead of 4G because 4G means lots of $$$ / EUR.

I think you're underestimating the gigantic speed boost many people are enjoying thanks to fiber (and not thanks to 4G) now that they're having FTTH.
Or, in the form of a comic strip https://xkcd.com/882/

(I have this in my head when p-hacking comes up)
Yes! And the shorts are very entertaining too! And, can you believe it, my wife watches them for recipes!
That's not what's happening in this report. This is answering the question of whether an all-encompassing metapackage should prefer to match upstream or integrate more with Debian's philosophy. "Upstream only tests with NM and only supports NM for some features" vs "if it's not a hard runtime dependency, it's a Recommends or Suggests, not a Depends." It's packaging trivia. Decade-old-plus packaging trivia for a single distro. You can install gnome-calculator without any of the rest of the GNOME shell so this is a horrifically disingenuous comment you've got here.
Evidently you can't have both unrestricted free use, and capture all the value you've created.
Static-analysis – A curated list of static analysis (SAST) tools and linters
And you can't use any fancy extensions to hide shorts on a Roku or other tv yt app.

I'm currently still paying for premium but now it's like my cable bill. I sorta have to, but I don't feel like it's a voluntary transaction where I'm paying to get something I want. Now I'm paying to reduce about 50% of what I don't want and there is no option to get what I want at any price.
I think it is pretty well established that simply re-reading can trick you into thinking that you know the material (via recognition) instead of actually remembering/understanding.
> If this is true, then these problems are already solved

There's a lot of induced demand in software development. We have spent the last 70 years on incredible productivity improvements through better tooling, language design, frameworks, etc. But all that has done is create more demand, both for functionality and usability. Now that animations are cheap to add to UIs, people want to have them. Automating tasks that can be done quite cheaply by humans is becoming cost effective in ever more fields. Software of complexity that would be unimaginable in the 50s is used for purposes as mundane as many-to-many short messages.

Lots of software is unique, but at the same time there's also lots of software or software features that just recently became cheap enough to implement to be worth doing. And those can sometimes be quite simple in their requirements.
After Winning at Gettysburg, George Meade Fought With–and Lost To–The Press
Emotional Capital Blocks Free-Market Capitalism (1998)
https://blog.gripdev.xyz/
The surveillance state isn't an exclusively conservative idea though. It has a long and storied tradition on the Left as well.
haha that would be perfect. Receding hairline, expanding waistline...
It’s cute and fun if you’re the kind of person that enjoys terminal UI’s and can keep an encyclopedia worth of CLI tools and options in your head.

I don’t enjoy Slack and the like due to the notification overload and FOMO burnout. The UI is a memory hog for what it does.

But for the computer user that wasn’t born at Bell Labs with a keyboard in their hands, it’s pretty decent. If you can navigate gmail or a word doc you can probably figure out how to use Slack.
Or you can build solar and wind, which is what Germany is doing to replace coal. Successfully. Don't really see your point.
This in some ways evokes for me the worst of Google engineering and culture. It’s documented in a nice way and with a gentle tone, but it’s fundamentally a method on top of broken behavior and a ton of tech debt. Yes, it’s not uncommon for folks engage like this in software; but once you’ve worked with individuals that think deeply about these kinds of issues and regularly, you start to see there’s another way.
I don't begrudge people who want their residential neighborhood streets to be residential. The issue is usually the development choices. The main cut through like you're describing near me recently had large bumps added to prevent speeding. No problem in my book except they should probably remove the traffic lights at either end of that street now. The lights either encouraged it to be a cut through or were added because it was, but in this case, there are not enough residents on that strip versus others to justify one, especially now.
We call them indicators in the UK now.
This reminds me of Running with Scissors, the game company who made Postal games. Maybe the author was a fan of those games?
In what ways would writing things the Typescript way make your code worse than the JavaScript way? I can't imagine the typing system preventing me from doing things that are better, other than cases where I want more expressive typing itself, which isn't even applicable to JavaScript.
Same here. I must type "int he" as much or more as "in the".
Sorry, no. Check the data.
Any bakery in Twente
Because I'm a sour individual :) did reuse demoscene teachings in homemade post-processing (CPU! thanks to all the in-talk about raytracers being fast on CPU, and well drivers).
You much overestimate how politically involved the UK public is. Most people don’t know what this bill is.

In the UK there’s a concept of the “Westminster bubble”. Politicians believe that people care deeply about “online safety”, which is all that matters really.
Some time ago I watched this movie: https://www.imdb.com/title/tt0416675/ (Dark matter). I don't know how accurately captures the essence of getting a PhD, maybe someone who went through it can expand on that, but I've always wondered if it's actually how is depicted in the film.
> However, that same reason doesn't apply within a single app, because a single app by a single author _can_ safely co-operate with itself. So co-operative time sharing can work and make sense within single app.

That's not the case in any non-trivial app. Any real program truly has dozens if not hundreds of authors whose code you're using sight unseen, and which may be difficult to modify.

And your program getting stuck can be just as bad as the OS getting stuck. Suddenly your program doesn't reply to API requests, or doesn't relinquish some expensive resource (like an expensive VM), or some such.
> The public have been sold a lie. Just like the “Patriot Act” was just to keep everybody free and protect people from terrorists.

The public tend to believe what they've been informed and the press tend to be inept when it comes to Gov surveillance.

The history of editors and journalists is 1) they reprint Gov Natsec claims w/o analysis or a single thought about Gov's history and 2) will only report surveillance wrongdoing when their nose has been dragged to it and they've been booted from behind.

And to clarify here, NatSec and Child Safety are just different food colors in the same poisonous water.
I've yet to find any non-engineer creatives in America who are familiar with the MindCandy DVD releases. I saw the first volume playing in a bar in SF once as background visuals, but no one around knew its significance.

Cracktros and their music are also worth preserving. Razor and such. There are many vintage ones for DOS, Windows, Amiga, Mac, and probably others. I'm sure they're difficult to find and some maybe lost.
Is it that more expensive if you take into account all the externalities from burning coal? Increased cancer risk due to high radiation, other pollution etc. CO2 is just the cherry on top..

> That would imply that Germany should be criticized more than the US, but this cannot be.

This is tangential and there is also no need to resort to whataboutism for no reason.
Germany has more energy generation capacity installed than it had last year. I certainly wish there would be a push for even more renewable and storage capacity, though. The fact that Germany is generating less energy has nothing to do with the phase out of nuclear though.
You could save some money by using GPT-4’s API and a self hosted frontend like YakGPT.
Captain Okai should be in the Airplane cockpit with Roger Murdock, Victor Basta and Clarence Oveur [0]. Missed opportunity.

[0] https://www.youtube.com/watch?v=2OBZf0QdKdE
Whenever I've faced this problem (usually converting legacy JS to TS), it's because the original code was structured in a complex or unique way. Sometimes it's unavoidable, but for most code, refactoring it to make it simpler and easier to read also simplified the typing for the code

So maybe, TS working as intended

Also depends on your TS config probably, but TS does a pretty good job with inference, so I find that I don't need to write that many type annotations, especially when assigning variables
> it's super easy to use the output of one program as the input of another, and to integrate it in bigger scripts

This can be done with Python/TypeScript code and it would be much more maintainable and typesafe. I don't know anyone who enjoys writing bash scripts over TypeScript code.

> I'm telling them about `--help`

Auto-complete in a text editor is far superior.

> - it always works. usually the same. and everywhere: on my laptop, on my server, on my phone.

This is a good point.