skysight-inc/HackerNews huggingface dataset:
Node.js: A Deep Dive into the Secrets of CommonJS Modularity
Node.js transformed server-side JavaScript by adopting the CommonJS (CJS) module specification, addressing key issues like the lack of a modular system and limited standard libraries.

1. CommonJS Module Specification
CommonJS defines how modules are referenced, defined, and identified.

1.1 Module Referencing
Modules are imported using the require function:

const fs = require('fs');
1.2 Module Definition
Modules can export functions or variables through the exports object:

// add.js
exports.add = function(a, b) {
return a + b;
};
To import in another file:

const { add } = require('./add.js');
console.log(add(1, 2)); // Outputs 3
1.3 Module Identification
Module identifiers can be strings, relative paths, or absolute paths, helping to prevent variable pollution.

2. Node.js Module Implementation
Node.js implements CommonJS with three key steps in module loading:

Path analysis
File location
Compilation and execution
Core Concepts
Core Modules: Built-in modules like fs, http.
File Modules: User-created modules.
Core modules are pre-compiled, allowing faster access than dynamically loaded file modules.

2.1 Loading from Cache
Node.js caches modules after their first load, improving performance. Subsequent requests retrieve modules from cache.

2.2 Path Analysis and File Location
Handled by Module._resolveFilename, which determines the full path of a module based on its identifier. It checks core modules, relative paths, and searches in node_modules.

2.3 Compilation and Execution
Node.js compiles files based on their extensions:

JavaScript Files: Read and executed.
JSON Files: Read and parsed.
C/C++ Extensions: Loaded with process.dlopen.
3. Advanced Module Management
3.1 Dynamic Imports
Node.js supports dynamic imports using the import() function for asynchronous module loading:

import('./module.js')
.then((module) => {
module.doSomething();
})
.catch((err) => {
console.error('Failed to load module:', err);
});
3.2 ES Modules (ESM)
Node.js also supports ESM, introducing a standardized module system. ESM allows static imports and uses export and import syntax.

Example of ESM syntax:

export const foo = 'bar';
export function doSomething() {}
4. Best Practices
Consistent Module Format: Use either CommonJS or ESM.
Use package.json: Define entry points and module types clearly.
Leverage Caching: Optimize performance.
Avoid require.extensions: Not recommended for production.
Conclusion
Node.js's module system, rooted in CommonJS, is robust and flexible, enabling efficient server-side JavaScript development. Understanding module loading, caching, and resolution is crucial for optimizing performance and maintainability in Node.js applications.
In MS classic ASP I made a chart control that was a 1000x1000 table where each cell was 1 pixel wide. No padding or spacing. Then I would loop through each table cell in each row, determine if it was in the pie chart circle or not and then if it was in the circle use some trig to figure out which pie piece it was and set the bgcolor accordingly. It actually worked.
> If you live outside of China and don't know Mandarin

Not just that, China has super apps that integrate everything from payments, food delivery, taxi, social media... To single application. Integrating this app directly into OS as a launcher (or shell) kind of makes sense.
>Of course, there are historical reasons for why the average black family is not as wealthy as an average white one

From what I have been able to understand of writers like Kendi (see also e.g. Robin diAngelo), this statistical fact is itself, inherently, considered to be an example of "racism" (hence terms like "systemic" or "institutional" racism); and the ensuing (supposed) bias of the test towards the wealthy, another one (simply because it is ensuing).
I don't think there's any reason to believe that there can be an explanation for the laws of physics in this sense. Just like the laws of logic, they might just be.
If you read the test of the sentence you cut off, I specifically mentioned "Enterprise" development. I'm not a fan of most Java shops either.

It's not that you cannot use C# in a relatively light handed way, it's not that it often isn't.

Probably the most painful example in practice was The Enterprise Library Data Access Application Block... Which at the time was all the more painful in early VS were go to definition took you to an interface and never the implementation. There was always a single implementation and never any tests so it was layers of misdirection for absolutely no benefit whatsoever in practice.

I like C#... I don't like a lot of places that use C#. In particular large companies and banking in my experience.
> E.g. Elon and EVs.

Man, Nissan just gets no love at all. They did the EV thing before Elon ran X into the ground (the bank, not the website formerly known as Twitter): https://www.motortrend.com/features/nissan-leaf-ev-history-p...
Minecraft Bedrock Will Remove PC VR Support After March
A new search engine for Gov.uk
Great!
It helps me.
The more incompatible mobile OSes, the more the Web will come back. Cool.
>As the judge of this test, I interpret your answer as incorrect.

This makes you a cheating administrator in this hypothetical,

>I expected the phrase, "the last word in this line" to be underlined.

... because this expectation is not valid.

Quotation marks are not merely needed to make the question "unambiguous"; they are needed to make your interpretation possible.
Lowering voltage on Snapdragon 8 Elite cores
The article mentions that by ditching the efficiency cores and lowering the voltage on their new "performance" cores they have achieved the same efficiency. My bachelor is on electronics eng, and my professional career has nothing to do with it. I know there's more to it that that said in the article: Why they've never tried to lower voltage before instead of having efficiency cores? And what do they mean, they lowered voltage, are we talking 5V range to 3V range?
One of my professors liked to translate it as “un-stirred-up-ness” which I always loved.
Where’s the market demand for that?
Nationalization is not ideal because the operation of SOEs can be tainted by the whims of political incentives instead of operational incentives.

There is a reason why formally socialist China and India are trying to develop private sector players in these fields - a private corporation has the ability to be much more nimble around hiring and capital allocation unlike an SOE.

Also, your argument does not challenge my point how Taiwan, Japan, and South Korea leverage massive conglomerates instead of SOEs or small businesses to cement their lead in the Semiconductor Industry.
A 3D printed (and concrete filled) mini lathe [video]
Well, pure water causes physical damage to the cells by changing osmotic pressure (now, is that distinct from toxicity in your view?).
The global surveillance free-for-all in mobile ad data
This is so frustrating.

Even if it makes financial sense, the fact that we can only quantify a public good in USD (or any other currency) is a tragedy.

Not all things have a monetary amount associated to them, but they are still somehow valuable.
On Earth, with a single Sun.

But apparently this planet has some very strong radiation protection, possibly synthetic, that blocks out the strong ultraviolet light from their second Sun. That ultraviolet is reflected back in the visible spectrum from the surface of their moon though - thus giving the appearance of a crescent during the entire cycle. The "dark side" is still lit, just lit less.

That was fun ))
greet :: forall r. { name :: String | r } -> String
greet person = "Hello, " <> person.name <> "!"

greetWithAge :: forall r. { name :: String, age :: Int | r } -> String
greetWithAge person =
"Hello, " <> person.name <> "! You are " <> show person.age <> " years old."

main :: Effect Unit
main = do
let person = { name: "Alice", age: 30, occupation: "Engineer" }

-- greet can accept the person record even though it has more fields
log (greet person) -- Output: "Hello, Alice!"

-- greetWithAge can also accept the person record
log (greetWithAge person)
a variation of this problem is carrying your shopping cart around. A shopping list that you can buy in place A or B. Also splitting shopping wisely in both.
New concussion sign could identify up to 33% of undiagnosed concussions
Common Lisp comes to mind, but I guess it is debatable to consider it mainstream.
A new theory suggests mistakes are an essential part of being alive Essays
Want to feel old? Excel just entered its 40th year
Show HN: Open-source Advance Wars-like game
I love the page. I find it very inspiring :)
I’m not sure it is. 90% of the time it congests on a specific exit—the one going south, and this is entirely due to all the cycles coming from indreby that need to go to the residential area east of that roundabout.

Having grown up in France, I know the insane capacity that roundabouts can have, and I don’t think CPH traffic is anywhere near that. It’s just poor design in some places.
TCP Fast Open? Not so fast (2021)
Does anyone even consider VR below 90 FPS? Sounds like a miserable experience.

But yes, for resolution the angular pixel size is what matters and since VR covers more of your field of view you also need more pixels for the same results.
The Free Software Foundation Has AI / Machine Learning Apps on Their Radar
VisioPilot: Free AI Browser Automation Tool with Local LLM Server
I’ve been using the Zen Browser for a couple weeks now.

It’s similar to Arc, but with Firefox underneath. It has workspaces and you can assign different containers to each workspace.

https://zen-browser.app/
I believe Harmony NEXT is built on top of OpenHarmony?
Karl Popper's paradox - you can't tolerate that - it's a mistake a society might be unable to easily undo.
Easiest way is to post csv/json/whatever through the http endpoint into a replacing merge tree table.

Duplicates get merged out, and errors can be handles at the http level. (Admittedly, one bad row in a big batch post is a pain, but I don’t see that much)
* The end state here is that SMBC comic: https://www.smbc-comics.com/comic/captcha
Great analogy as both the ocean and RAM today end up being used as the garbage dump of inconsiderate assholes.
It expires in a full 7 days, this is not news. I am sure they will renew it before it expires.
And before that, used VisiCalc and MultiPlan
You can really see Huawei’s roots as a telecom vendor here.

Their hardware, firmware, and core parts of the software are nearly flawless, at least compared to Apple/Google in 2024, but the moment you need something beyond the shipped product it becomes a hoop jumping exercise. And the documentation is much worse.
Sounds nice at first until you look to see what places these apps are also linked too in mainland China.

But not that it matters in the end considering the chaos the US has where eventually everyone gets to see what we do on our cells to. It is just a matter of speed, China is probably just more efficient.
Vulnhuntr: Autonomous AI finds first 0-day vulnerabilities
Shapelab
May it also be explainable by the additionally needed acceleration of the body mass?
$3.2M per dose Elevidys fails to meet primary endpoint in phase 3 trial
Cue John Cleese
I have a friend that has it.

On his first day of work he missed the bus, so he called our boss and just said "I missed the bus, the next one is tomorrow morning, see you tomorrow".

Working on any kind of problem with him is absolute joy, from outages to designing new features, including once when the server burned down and everything was lost.
You can look for ranked voting systems as a solution that prevents excessive fragmentation - if a proposal has high approval and high rejection, it'll be rejected.

You can also make that with giving people one positive vote and two negative ones to give to any candidate, provided not both negative ones go to the same candidate.
Why this over box-shadow?
You might want to check out Life by XLN Audio, which does some of what you want here as well: https://www.xlnaudio.com/products/life

(disclaimer: I work for XLN Audio)
Somehow LLM bullshit is a step above normal bullshit because they've added an extra layer of bullshit to the bullshit.
I like to picture poking your finger into a loosely knit jumper so that the weave bunches up densely around the outside of a large hole. If you think of an ant walking around on the threads, it would realise that there's an area of increased density. It would also notice that there's a boundary it can't get past, but if you asked it what the topology of the threads are on the "other side" of the boundary it wouldn't be able to give you an answer.

In my mind that is what a black hole is, a spherical hole in the fabric of spacetime with matter bunched up around it in a very thin shell. That's why their area is proportional to their mass instead of their volume, because there is no volume.
6 positions, each 0-F value gives 6^16 options, yes?
This submission title has been editorialized, contrary to the HN guidelines. The actual article title is "Polyhedral Complex Informed Counterfactual Explanations".
Ambulate is GPLv3, source code at https://github.com/oliverfields/tripplanner2.

It depends on Firebase for authorization and a S3 bucket for storage.

Copy dotenv.local_example to .env.local and add relevant info, then use npm run serve, to run locally.

Nice idea to merge trip plan and photos:)
I think the possible changes you mentioned are a desired outcome. The FTC’s consumer protection role tends to be about keeping free markets functional, and under Biden that’s had a lot of focus on removing market distortions. Reviews are tricky that way because people want to trust other buyers but scammers have exploited that trust, and a company removing the reviews section of their site because they don’t want them to be accurate seems like a net win similar to forcing companies to remove false claims. The FTC doesn’t require your product to be good, just honestly sold.
> if you're big enough to setup anycast

Incidentally, if you want to play with anycast on the public Internet, BuyVM[1] will let you do that on $10.50/mo (3×$3.50/mo very resource-limited VPSes). Catching those VPSes when they’re in stock is something of an ordeal, though.

[1] https://buyvm.net/anycast-vps/
Part of growing up, going to school and then college, and then through life is that you learn how to learn. Everyone develops their strategies to learn.

Some think that the strategy they found for themselves is great, and they start preaching it. Like this person here. But it's an illusion. Maybe it even has a name. This particular strategy doesn't sound bad, but there are so many types of people out there, and it's certain that for many, if not most, other strategies fit better.

It's like trying to teach someone how to run. Advice like keep your back straight, or land on your toes, etc. In the end, running is the best teacher. Just go ahead and run, and your body will figure out how to keep the back straight.
I did, but it weights on my heart what is happening in my two motherlands, Brazil and Hungary (and I'm concerned I'm not completely out of the blast radius of whatever is going to happen in the US)
Humidity is massively important to comfort. At least as important as anything else / temperature.
Impact of dietary intervention on cognitive development of Kenyan learners
Infact it was only issues in August, so this is probably fairly regularly rotates
This is because maintaining inertia is efficient, despite the stress on the system. This is the reason High Intensity Interval Training and High Intensity Resistance Training work at all, because you're making a conscious effort in your exercise methodology to eliminate momentum and acceleration from the movements, which increases the work done within the context of your body, reducing the exerted energy lost to mechanical inefficiency of repeated movements.

You don't even need to stop moving while walking to see this effect in action. Just try walking so slow that you've eliminated almost all the momentum from the motion of walking. Just try it for a minute straight and see how it feels. (Forewarning: It's going to look ridiculous, like you're walking in slow motion.)
I don’t daily drive Android, so I’m not sure if there’s an equivalent, but iOS has a system review nag/prompt that can be disabled globally. If the app lets the system manage it (where it waits a while to see how long you’ve used it before surfacing the prompt, and doesn’t redirect sub-five-star reviews to their own internal tracking), then I’m happy to leave a genuine review. If the app violates any of these rules, I go out of my way to leave a one-star review.

Don’t overrule my preferences in the name of growth hacking.
How many more decades of forced-to-own-a-car policy do you need? How many more suburban and rural areas in Europe and the US that had at some point decent public transport that they don't have now do you need? How many more kilometers of noisy highways cutting through the landscape and the urban space do you need? How many price hikes in public transport paired with impoverished services do you need? How many tens of thousands more miles of disused railroad tracks do you need before opinion becomes fact?
Are there any recent examples, in the past decade?
I made this to waste time along with others.
https://trails.aeonax.com/

Learnt a bit about threejs, tonejs. Made using chatgpt in 5 evenings.

After 2 days I shared with friends, it didnt work on their device. Had to rewrite the graphics part correctly. I doesnt look as nice as the original one on my device. but now works on their device.
frame it how you want - it doesn't make their argument any less true or valid.
We are in a crisis of climate change, biodiversity and habitat loss. Thacker Pass is critical wildlife habitat for threatened, endangered, and endemic species including the greater sage-grouse, pronghorn, Lahontan cutthroat trout, and golden eagles. Thacker Pass, known as Peehee Mu’huh in Paiute, is sacred to regional Native American tribes.

It’s too late to prevent Phase 1 of the Thacker Pass Lithium Mine, but there are opportunities to help prevent Phase 2. More broadly, we hope to protect the rest of McDermitt Caldera from Southern Oregon down to Thacker Pass from catastrophic lithium mining.
Bernie is just common-sense.
I typically love quanta magazine but this particular page was very annoying to scroll through
Very interesting, I've considered doing something similar with other regular polyhedra, like the n-simplex (the one you analyzed) and n-orthoplex.

What was the side length in your calculation? did you find an equation for the size of the center n-ball?
This is _exactly_ my problem, and where I've found myself.
I find it interesting how Huawei was able to make a nearly brand new microkernel operating system in a short amount of time, meanwhile Google with Fuchsia...

Despite it being Huawei, I am interested to see how well the OS plans out.
But they are not thought experiments. That much is true.
> Are you arguing that [...] there's no point for CH to exist

Wow, that escalated quickly. You are reading too much into my comment. You should read the comment thread from the beginning to understand which question I'm replying to.
Did you once share this anecdote on /.? I remember this.
Boeing CEO says the company must fundamentally change
When people base their identities on being wrong (without, of course, knowing that), it becomes very difficult to enlighten them.
Maybe the good C code isn't C code at all, it's actual perl scripts! https://github.com/dot-asm/cryptogams
"Freedom is the recognition of necessity"
Looking at this again - the naming convention is a bit worrying... Does the 23 in RVA23 refer to 2023? Do you need annual recompilations of software..? Do you need codepaths for every year since .. whenever the first core was released?
https://crates.io/crates/x
Applying AI to satellite manufacturing – SpaceNews
The article doesn't say what is the best burst duration. From paper:

> Our findings show that the time-averaged oxygen uptake and metabolic cost are greater for shorter than longer bouts: 30-s bouts consume 20–60% more oxygen than steady-state extrapolations.

> After each bout, V̇O2 was measured during the recovery for 7 min while participants were sitting on the same chair

So, each participant (there was 10 participants) done a trial of bouts, each bout randomly 10-240s plus 7min rest.
> I made this because I wanted to loop a GIF image in terminal when I mistyped a command to train me to do better typing.

Have you seen `sl` and `gti`?
After Trump's 'unhackable' phone, O'Dowd is after Tesla
They work fine, but this is a thread on Clickhouse.

Clickhouse sells itself as a DBMS for real time analytical reports, which is exactly what I want. But I can't compare the two because I've never managed to get it all stood up.
All chemicals, not all things.

While you have a point on physical injury, all things are chemicals and your water example is really bad. Dissolution and ions transport are chemicals process, so are dilution and concentration.
Can A.I. be blamed for a teen's suicide?
That conspiracy theory needs work. The federal government pays billions annually for cloud services and it’s “people go to jail” illegal for the government to accept free services which would otherwise cost money (i.e. the government can use the AWS free tier like everyone else but above that they’re paying like everyone else).
In college, I had an internship at JPL writing software to help collate, transform, and combine pictures of Jupiter, for use with NASA’s JUNO mission.

My coworker and I created a GUI application in IDL (similar to FORTRAN), that would allow the user to open up several images of various wavelengths and combine them into a cylindrical map of the planet, showing its entire surface at a given point in time. After working on this for several months and creating a functional, and actually useful program, we realize that there was a blank space in the toolbar and we had no button that needed to be there. So we put in a button with a cat GIF that literally did nothing. We planned on having it do something jokey, but ran out of time.

I will always remember demoing this to my mentor, basically the world expert on all things Jupiter, showing him what the program did, thus justifying why JPL had spent several thousand dollars to have me as a research fellow. The disappointment in his eyes when he saw that dumb, useless, cat button was priceless.
OpenAI's rapid growth loaded with 'corner case' challenges, says Fivetran CEO
Prompts Are Programs
https://www.techtarget.com/healthtechsecurity/feature/What-I... agreement that lets a business associate handle HIPAA-protected data.
I'm not an exercise physiologist but I have an interest in it. The article states that more energy is used when the body is gearing up for an activity and I'm guessing this is because if you exercise for only up to a few minutes at a time with sufficient rest in between intervals then you'll end up mostly using the phosphocreatine and anaerobic glycolosis systems which are less efficient than aerobic glycolosis or aerobic lipoylsis. It's why when you start running without a sufficient warm up, you're always a bit out of breath even when running at sub maximal efforts and later on in the same run, even when running faster, your breathing can be super relaxed. The aerobic system takes a while to "spin up". In other words, you start with poor running economy... using more calories to run the same speed but as your aerobic system spins up, your running economy increases and you use less calories to run the same speed.

It's my understanding that by doing the type of exercise mentioned in the article - short bursts - you'll get positive physiological adaptations to your anearobic capacity but it won't have much impact on your aerobic capcity, which I would argue is the more important system to train for everyday operations of the human body!
WAT? [1]

[1] https://www.destroyallsoftware.com/talks/wat