skysight-inc/HackerNews huggingface dataset:
> This is inaccurate, or at least misleading.

No it’s not.

> Your code doesn’t begin executing until all of the modules are loaded.

This is inaccurate, or at least misleading.

This, or some aspect of it, is both possible and relatively common:

import foo from 'foo';

await foo.bar();

await Promise.all([
import('other'),
import('stuff'),
]);

// Admittedly this is less common but also valid!
import yet from 'more-stuff';

The asynchrony of ESM was controversial before it even became a standard. But it’s necessary because it allows network I/O. And most of the above patterns being relatively common is one of the major use cases for bundling, because it also introduces an indefinite waterfall.

In terms of rarity, dynamic import calls are already quite common for “lazy”/“suspense” or their equivalents in quite a lot of real world code, and likely to become moreso with React Server Components and other similar solutions deferring to server rendering.

Yes, an import statement is [semantically] blocking. But even so it’s important to know that it’s performing async I/O.
No. No. No.

There is no such thing as this "social contract".

I publish software on github with MIT or (A)GPL licenses for various reasons:

* In case someone else has the same issue I did

* In case someone is working on something similar and wants to learn from my code

* As an external backup in addition to my hard drive / private git repo / etc.

* Because I can. (deal with it.)

There is NO expectation or "contract" or anything. People can open issues or politely request things, but getting upset or pushy over F/OSS released on someone else's own terms is just entitlement.
Seems likely connected to this old post of his about no longer wanting to provide free service to corporations:

http://web.archive.org/web/20210704022108/https://github.com...

Also he seems to have somewhat of a Guerilla mindset, based on this:

https://nypost.com/2020/09/16/resident-of-nyc-home-with-susp...
Ask HN: Any APIs available to integrate code execution as a service?
I'm looking to integrate HackerRank type features into my SaaS.

But I don't want to deal with 50 different languages and environment setup.

My use case is like this: I give a HackerRank type coding problem statement, user types/adds code in a codd-editor type form and then I push that code to a 3rd party service check if it's valid, it's running, it's giving desired outputs, etc etc.

Is any APIs available?

I can't use HackerRank's etc directly, as I'm trying to build a similar service.

Please suggest.
I was looking for a linux laptop last week. Dell only showed one laptop (Precision 7760 Workstation) that they support linux on. It doesn't seem surprising that if the reviewer bought a Dell that Dell don't support linux on, then it didn't support linux when the reviewer tried either.
That's my hope as well, but I think it's mostly wishful thinking.

Best case: Omicron gives everyone a baseline resistance, so that future mutations are more like the flu.
We'll get new mutations a couple times a year. Some will contact them, some won't. It will be fatal to those with comorbidities (just like the flu)

I don't think covid is ever actually going away, though. It is just too contagious.
Easy, make --save-exact default behavior. We don't have stable subresource integrity in Node.js yet, but this would be the next best thing.
Started a new job in the past year and it's 50% rails, 50% react. Thought I would chafe after returning to ruby after ten years of nothing but JS and TS, but I quite like it.

I only wish there was slightly less magic and a bit more declaration. It always weirds me out that Ruby just finds stuff without me having to 'import' or 'require' it. I have a love/hate relationship with much of the DSL stuff too (more 'magic') but overall, working with Rails and Ruby is quite nice.
I've always assumed this was to maintain syntactic consistency with comprehensions like [x for x in arr if x > 2].
The next question is

"How long will it take copyright lawyers find out about v2-only torrents?"
"...it isn't legal to maliciously add an infinite-loop to a library that you know is used by other companies"

Um, what?
Can you describe why this workflow is difficult? I'm probably missing or misunderstanding something, as we literally use this workflow at work, and we never had dependency issues with our npm projects...

Edit: npm has lock files and a way to install from the lock file (simples way being `npm ci`)
> Lets fix that

It is not going to happen.
Secret charges and courts corrupt democratic society. Extrajudicial "intelligence" agencies must be dismantled.
Intentionally adding code that has an infinite loop (the for loop literally uses "Infinity" as the target for the 'for' loop) sounds like an attack to me..
Speak for yourself, I feel a strong moral obligation not to eat meat or otherwise support industries which exploit animals. Reducing suffering is a moral imperative.
Also, something that hasn’t been mentioned. Where are you located? Norms for doing business are different in different places, and your approach might be different if you were in Europe, vs US, vs Brazil, vs India etc.

Of course, don’t give anything away that would identify you too uniquely.
https://news.ycombinator.com/item?id=29868165
>"Where did you store the lathe at night? Where did you plug it in? And how did you get the electricity to that outlet, was there an account in your name with the power company as an 11 year old?"

I'm not the GP but you're being obtuse and counterproductive. The idea that no one does anything completely on their own is not particularly revelatory or insightful. It comes off as dismissive more than anything else.
I have experience in recruiting and onboarding at a big company you’ve heard of, and you would be surprised (or maybe not) that their practices come down to lack of internal tools, and sometimes competency of the staff. I would email onboarding to hide attendees/recipients in the Zoom call or to transition to work emails moving forward. I would also suggest that they establish compliance practices with your personal data.

The story of receiving your equipment early is probably made to be a favor to you more than anything. The team that likely initiated the send out did it at their earliest discretion, not because they wanted to hold up your holiday plans. They get a request and fulfill it. The timing was just inconvenient, call it unlucky.

I would share this feedback with the relevant people. If those teams were managed competently, they would use your experience to improve practices.
I don't think they lost control so much as consciously gave it up and stepped away.
I'm a bit more concerned at the idea that Apple wants to enable it by default, and route the entire internet through their servers!
Pidgin maintainer here... I would love to hear what you mean by this...
There are. But

1) the titles will vary a lot (software engineer, ML engineer, research engineer, data scientist etc.) which makes it hard to locate those jobs and to move in the job market in general

2) you still need a reasonable amount of theory (not necessarily too much statistics) to use the tools well. And in all likelihood you will be tested on it in some way during the interviews.

3) the interviews/job descriptions that don't emphasise the theory often will be for jobs where you get a title like Machine Learning Engineer but you focus more on the infrastructure rather than on the ML code
> Why mess with that?

Because the bubble might burst? corps are constantly trying to lowball devs, but for competitive leverage they might succeed. Unions are a way to build the profession while the going is good and bargaining power on our side - good luck getting that foosball table when there are more devs than jobs.
Most of those chips have zero impact on latency, and many aren't even involved in the actual packet flow.
The theory of the matter is that you take what's working and you apply it and discard what's not working. The practice of the matter is that if excess deaths goes up due to drug use increasing during lockdowns, the public health reaction is to increase lockdowns.
My latest job is at a place where we have an extremely 'old-school' Rails app. The vast majority of UI is server-rendered HTML, Javascript (at least that we wrote, we do use Turbo) is very, very minimal, and we're just one very large service.

The previous place I was at was a microservice heavy (the count of services was almost on par with the number of developers) React and Node based application.

I'm orders of magnitude more productive with the Rails app, it's more well regarded by our customers, and using it, there's no obvious telltale signs that it's not using the modern SPA approach.
a) This is a false dichotomy, it isn't a binary choice between education and death. 0-17 accounts for 678 *total covid deaths* [0]

b) This IS a problem of people 60+ and 50+. Collapse affects everyone, but the vast majority of deaths and hospitalizations are among individuals in this age cohort (~93%). If hospitals collapse it won't be because the kids went to school.

The goal of this rhetoric should be to guide everyone towards consensus so we can plan better for the next time around. If it sounds extreme, maybe that's because it should be treated with urgency.

[0] https://www.statista.com/statistics/1191568/reported-deaths-...
dotgov website would work, if the feds wanted to help.
I love this post.

At some point we all figure out that if every line of code was perfect, the computer wouldn’t do very much at all.
Npm has lock files, and the documentation tells you why they exist and when to use them (eg `npm ci` being the shortest/easiest way to avoid this incident).
Yet we have cities with multiple ISPs which have incredibly cheap internet at blazing speeds. In my city we have 1Gbps fiber for $70/mo and the price goes down quickly as you reduce the speed. That's better than some areas of SF I think, and we only have 2 major ISPs here.

Amazing what a little competition can do. The city was smart enough when the competitor moved in to install the capacity for more ISPs to utilize the existing conduits in the future.
Node did make modules async (just ESM modules). They can’t/won’t make CJS async because their synchronous semantics are a guarantee they determined not to break well before ESM. If you want async modules, ESM is the solution for that.
List of Unusual Articles
Imagine a logistics system that uses the existing capability of NFTs to give all interested parties a clear and transparent view of ownership transfers, eg factory to container ship to port etc. The data underneath can only be modified by the current owner of the NFT. The off-chain data could be encrypted and fit the particular companies standard.

The blockchain need not contain 100% of the business logic for a use-case, but instead only the parts that are relevant to being trustless and public.
Well, $900 was the total power bill. I also had one window units running in that room, and another window unit running in my bedroom, and I also actually had an Apple XServe running that I was using as a media server.

I think what caused such a catastrophic power bill was the surge pricing in NYC that happens in the summer, and the servers pumping out a ton of heat, forcing the AC's to run harder and longer.
A blockchain isn't needed for that. Authentication needs "crypto"graphy, but not "crypto"currency.

This wouldn't be a complete thread without someone mentioning Rust, so I'll do it. cargo-crev is a nice web-of-trust type code review system for Rust crates. https://github.com/crev-dev/cargo-crev
Sure, I'll start holding my breath now.
LogRocket | Remote US or Boston, MA | https://logrocket.com/

LogRocket combines session replay, performance monitoring, and product analytics – empowering software teams to create the ideal web and mobile product experience.

LogRocket’s Engineering team is responsible for architecting and building the system that processes millions of events per day for LogRocket’s core product, along with a host of other tools, systems and applications that power our business’s growth day to day.

As we continue to grow the company >100% year over year, we have a lot of interesting and complex challenges to solve across our stack and in a variety of different domains (some examples below). To support this growth, we are looking for strong, multi-disciplinary engineers to help us continue building a best-in-class product and team. If you’re looking to make meaningful contributions to a rapidly growing startup, we’d love to discuss some of the problems we’re working on with you and see if there’s a mutual fit!

Open Roles

Site Reliability Engineer
Senior Mobile Engineer
Growth Engineer
Software Engineer (Core Product)

See all open roles here: https://jobs.lever.co/logrocket?team=Engineering

Questions? Feel free to reach out to patrick.morey@logrocket.com!
We’re distant cousins, it’s not surprising we have common traits.

AFAIK, there is no single trait that is qualitatively human. We distinguish ourselves quantitatively (our fine motor skills, the size of our working memory and culture).
Now your friend is going to spread misinformation.
You could predict a pandemic at some point (and given the parameters of a pandemic say it would have to look something very much like COVID), it's very difficult to predict any given pandemic. In the same way that you could predict that there would be another war in europe, and roughly who would be on each side, but not the exact circumstances by which it would break out. And it's usually easy to find someone predicting any given event after it happens, because there's a lot of people saying lots of different things about the future (see market crashes for another great example).
Yeah because no one has established that "having and NFT" really gives you anything. Have there been any cases yet about ownership? Keeping the URI alive? What happens when the originator of the NFT who provides access dies/dissipates as a corporation? Sure you can make any contract but is it enforceable or will the judge laugh at you for buying a poop icon and "dismissed"
> I'm very unlikely to recommend it to anyone over alternatives that default to end to end encryption, or even require it.

Which are they? Alternatives that require you to reveal your identity (via a phone number), or to reveal your whole social graph/usage patterns (by being organized around a single actor in the middle knowing about everything and everyone in the network)?

Federated and P2P networks are the only true alternatives for the privacy/security conscious.

> On XMPP, encryption is optional and not even the default.

OMEMO encryption is widespread/practically universal these days. You are pretty much guaranteed to be able to establish an E2EE session would it not be the default for any reason.
There's a similar art piece I saw once that isn't a perfect 360 degrees but is composed of several video walls that you walk through so you feel as if you're walking through a house, looking into rooms, watching musicians perform a piece, with all the video and audio in sync. It's pretty great - I think it was this one: https://www.thebroad.org/art/ragnar-kjartansson/visitor
But apparently your Danish counterparts to the north are doing just fine without?
Does he also avoid the DRM on DVD/Bluray?

At least with games there's a lot you could play together on GOG, most movies never get an official DRM-free release.
So what's the upside for you with Sinatra? I'm embarrassed to having been doing Ruby for 8 years and never touching it. Just never saw the need - Rails in API mode seems adequate.
Go doesn't mitigate that somehow. You get the code that you specify, not the code that someone else has decided is better.

In practice, for both npm and Go dependencies, you'll get a Dependabot PR that upgrades the dependency for you. Obviously that is Github-specific, so if you're on a different platform, you'll have to subscribe to security updates in some other way. I am guessing there are many services that you can subscribe to that do the same thing.
There is very clear bribery going on though… speaking engagement fees, expensive vacations that are under the guise of lobbying, etc.

And it’s very clear that at least people in congress are very happy with this situation.
30km/h is not an uncommon speed in European urban areas. For example, in France within towns 50km/h is the default speed limit for main arteries, but it is 30km/h for areas where pedestrians are expected. Most of Paris has made the switch, so has Brussels. I would go as far as saying they are a majority of streets, while yes, roads are always faster, but that would be playing semantic games.
I never understood 9/11 truthers until someone explained it that it was more comforting to at least believe someone was pulling the strings in the background because at least there was a plan, even if it was sinister, compared to accepting a militarily inferior enemy half way across the world can upend everything about your life seemingly randomly.
If they're running this kinda psyops against their own employees imagine what's being done to the general public.
Honest question, do you just open the files, or do you change them and write them back out?

I, too, have dealt with huge files. My primary large file use case for vim is as an interactive grep, opening files, then just performing iterative filters reducing the file to something "manageable". If the file is too big, I might resort to raw streaming filters to temp files before going all vim on it (even vim has issues with huge files -- huge files are issues all their own).

But it's more a matter of pragmatism as to how far one wants to take a pet project like this. There's a curve of diminishing return depending on what someone wants from such a thing.

A single RAM buffer is a bad idea, to be sure, but raw horsepower of modern systems and CPUs cover up a lot of bad ideas. Simply the idea that you COULD mmap or even malloc a 2G buffer to suck the file in, and it would WORK, is enough to make ones teeth itch. I remember long a ago an article from someone encountering an early workstation with 1G of RAM, and the worlds it opened up. We have come far from those days.

If the OP is interested in buffer mechanics, then starting with an API backed by a simple buffer goes a long way. If they're interested in screen painting, window management, etc, then the RAM buffer may be all they need. Otherwise, they can work on replacing their back end with all of the assorted structures folks have mentioned, see what they like best, as they all have tradeoffs.
It can't be illegal if the software is provided as-is without any warranty as most OSS licenses do.
Not when what you write (compromises) literally mean something radically different. That’s not syntax.
> Suppose Bob was the copyright owner, last year, before the work entered the public domain. He never distributed any copy without DRM, so no DRM-free copies exist. This is fine? Section 1201 of the DMCA was created to eliminate the public domain?

No law compels Bob to provide people with new copies once the work enters public domain (and remember, Bob's publication might contain separate works with their own copyrights like cover art or an introduction). Once it does, Bob can't stop you from distributing a version you created by buying a print copy and scanning it or taking screenshots of his DRM version and running them through OCR (as long as you don't include the cover art or introduction). If Bob's DRM was unique to this one book, there might be an argument that breaking it was the same (as long as there's no cover art and no introduction). Since Bob's DRM is likely used for other works not in the public domain, it's going to be hard to distinguish your breaking it for this PD work from the fact that you've broken it for lots of other in-copyright things.
> There is nothing anyone can do about the fact that [IP] can be copied.

Disney's lawyers seem to be doing just fine.
The timeline of this is very strange:

- in august he had been put on administrative leave

- he was imprisoned on the 9th of december

- on the 13th of december an independant commission set up by parliament (consisting of three judges) exponerated everyone implicated in this case

- on the 14th of december, the minister of defence welcomed him back to work

- today, 10th of january the public learned for the first time that he was imprisoned and still is imprisoned.

So even though he was exonerated by the independent commitee AND welcomed back by the minister, he is actually in prison. Very strange situation, makes we wonder if there are aspects of the case the public does not know about, or if someone has made an enormous error.
As did nearly every other vendor
I’m a member of a union here in Denmark. It’s cheap, it provides some safety, but they do not interfer when I talk salary with my boss. We’re paid well enough that the union don’t have to interven.

The only time I’ve seen my union take action was when a previous employeer started bullshittimg about our pay been “industry leading” while in reality it was just average. Having a union that remaims friendly with the industry but isn’t afraid to callout single companies and use it’s leverage in that industry to make that company behave is extremely powerful.
I simply don't understand why roundabouts aren't just shared. Do separation as much as you like 10m away from them, but in the roundabout, there's exactly zero excuse for a speed difference between motor vehicles and bikes. When drivers are expected to let segregated cyclists pass on leaving the roundabout, they actually have to go slower than they would merged behind even the laziest cyclist. I really don't get it.

(yes, the answer will be "but children!", but I'm a believer in "treat cyclists like children and only children will ride bikes!" and I'd be a firm believer if the Netherlands didn't have this annoying habit of proving me wrong ;))
Their corporate motto is literally "Do Some Evil"
YC’s $500k Standard Deal
Same as the rest of the modern internet, XMPP relies on the DNS network. Your account is basically `nick@service.tld`, just like email.
But speaking cynically, computer programmers have a lot of the clout that unions enjoy, due to market demand and also creating barriers to entry (programming languages and code bases that are difficult to learn). I refer to it as a guild. Doctors and professors are guilds in a similar fashion.

My dad spent his career at a unionized company. There were both union and salaried workers. He was salaried. He experienced all of the frustrations of working in a union shop, such as practically having to bribe people to do things for him like plugging something into an electrical outlet (required an electrician). At some companies, they literally had to bribe people.

Non-developers experience many of the same frustrations dealing with software. It's no secret why "shadow IT" is such a game changer for people who can engage in it.

My point is that it may be technically true that programmers don't need a union, because they have something that functions like a union.