HNHacker News
TopNewBestAskShowJobs

naugtur

309 karma · joined January 11, 2012

submissionscomments
naugtur··on Show HN: Run unsafe user generated JavaScript in the browser
There's a related proposal for Compartments and Module constructor is a prerequisite to that. A shim for the entire thing exists, with lockdown and Compartments isolating code:

https://github.com/endojs/endo/tree/master/packages/ses

https://github.com/tc39/proposal-compartments/

It has usage already, eg. metamask snaps

naugtur··on Show HN: Run unsafe user generated JavaScript in the browser
SES-shim is the modern successor to that by Doug's old pal Mark and team. https://github.com/endojs/endo/tree/master/packages/ses

Also, on its way to being standardized in tc39

naugtur··on Tell HN: Meetup.com is offering abandoned meetups to anyone willing to pay
On one hand I understand your frustrations, on the other hand, I'm coordinating a bunch of meetups and one of them lost its crew and was abandoned. Then I got in touch with a guy who bought it and is happily running the meetup now.

The actions you can take can be based on owning the trademark or copyright on the logo of the meetup.

naugtur··on Ask HN: What are the ways you go about getting comfortable with a new codebase?
It's counterintuitive, but stepping through a very complex codebase with a debugger and taking notes along the way was great in my case.

Also, attempting to draw a sequence diagram and fixing it as you go trains the brain to handle a mental model of a large process.

naugtur··on Is DALL-E 2 ‘gluing things together’ without understanding their relationships?
The modular approach doesn't need to be enforced by strict boundaries. One network that starts with various components but can be remodeled and even merged together as it goes could adapt.

What we're discussing here is merely a starting state of something that'd have to rebuild itself.

Or maybe evolving modalities within one network is easier than putting it together.

naugtur··on Faked Crystallography
A friend of mine got his first programming job in 2010 as a programmer assistant of a physics professor who needed to automate the procedures of proving crystal structures from mass produced PhDs impossible using graph theory. He was finding so many fakes, mostly coming from Chinese PhD students he needed to write (and optimize) the software to disprove them at scale.

These PhD papers were apparently the easiest to quickly edit from someone else and push past the uninterested reviewers.

naugtur··on Facebook's TikTok-like redesign marks sunset of social networking era
You mean peer to peer ;)

Keet.io and whatever comes next

naugtur··on Why are McDonald’s Self Service Kiosks so hackable?
If you can match a pin to a database of cards numbers, I can supply you with a database of all pins in existence
naugtur··on Goodbye, Feedly
If you liked it before all the monetization strategies, maybe should have paid for it to keep it sustainable that way?
naugtur··on The Power of Prolog
I'm not an enthusiast of real world applications of prolog, I saw a prolog project fail and get rewritten in Cpp

But! I'm forever grateful for the things learning prolog did to my brain

naugtur··on Tell HN: The loneliness of a pretty good developer
I moved from a role similar to what you're describing (spent 7 years there) into a role where I'm the least senior person on the project. And I'm having a great time.

It's always possible to find people who are so much ahead of you that you'll need to put effort into just following the conversation with them. And when you do, they're your peers and you're proud to be a 0.9x developer alongside them.

naugtur··on Ask HN: Have you created programs for only your personal use?
I wrote a tool to convert a YouTube playlist url into a RSS podcast url compatible with podcast player apps. I use it a lot. handsfreeyoutube.vercel.app

I wrote a simple app to turn an inperson tabletop conversation game accessory (pieces of paper) into something that can be used remotely in a pandemic. totpal.vercel.app

And I wrote a bunch of debugging/diagnostics tools for node.js. some for fun, some I actually needed. NPM: debugging-aid

naugtur··on Node.js packages don't deserve trust
Also, what's shadow realms? I tried looking it up and got a video game. And I'm not much of a gamer so it's not a matter if a bubble ;)
naugtur··on Node.js packages don't deserve trust
There's Endo, which does the loading/importing and dependency resolution. It doesn't have a default user experience at this point, but it creates compartments for packages and runs.

Getting permissions involved will require mapping them to packages in a policy file and there you go - an environment where you can use packages and they can't surprise you with data exfiltration etc.

naugtur··on 100k Stars Chrome visualization experiment
Firefox Mobile on a ~4yo phone fine too
naugtur··on 100k Stars Chrome visualization experiment
I made a less fancy version of that with Mozilla's A-frame VR in 2017 to check how many items a browser could render on a phone twice every frame ;)

https://github.com/naugtur/aframe-point-component

Didn't do the fancy glows and backgrounds though. This is much better looking.

naugtur··on Detecting Node Event Loop Blockers
We could break blocked-at into two layers so that you could provide the data collection mechanism. You could report to datadog while using the false positive filter.

Also, there's a bunch of tools you could use before you deploy blocked-at or async hooks at all.

Note it's midnight here and I'll stop responding very soon :D

naugtur··on Detecting Node Event Loop Blockers
If something is blocking the eventloop indefinitely, it's unlikely to reach production and even if it does, a simple crash report or perf inspection will reveal it. You don't need more tools than node-report for that case. Permanent eventloop block is the simple case.

Regular eventloop blocking by synchronous processing is the middle ground.

Performance issues with utilization of resources, too many promises or broken backpressure - that's where the fun begins.

If you can run your software locally and simulate load, just use node clinic. It's the best looking one ;)

naugtur··on Detecting Node Event Loop Blockers
Hi, blocked-at author here.

Get in touch over email if you want to explore further.

Some quick comments:

- I didn't notice the node version or you didn't state it. The impact from async hooks is _vastly_ different between node versions

- I need to update the package a bit, I've got a known perf improvement to add AFAIR.

- your implementation is likely to produce false positives. The trick to prevent (some) false positives is the most valuable part of the lib.

Also, take a look at the event loop utilization metric introduced last year https://m.youtube.com/watch?v=WetXnEPraYM&list=PL0CdgOSSGlBa...

And for more of my diagnostics experiments see debugging-aid package https://www.npmjs.com/package/debugging-aid

naugtur··on NPM package compromised by author: erases files on RU / BY computers on install
I agree with the sentiment here.

Theoretically though in representative democracy you choose the government to represent you and be an agent for making your decisions. You are responsible for what your government does in part that equals 1/Population

naugtur··on Npm Audit: broken by design?
Compare with npm-audit-resolver in terms of how the ignores are defined. It's important to not be too vague when ignoring things.

Let me plug this as it contains a lot of references https://dev.to/naugtur/do-you-need-help-with-your-npm-audit-...

Meanwhile I'll try to get someone from IBM involved in the OpenJSF collab space

naugtur··on Npm Audit: broken by design?
Let's talk about solutions. I'm late to the conversation here, responded on Twitter and went to sleep.

There's a push to address the npm audit situation. It's an initiative under the OpenJS Foundation. I kinda started the whole conversation by implementing a tool that makes it acceptable instead of ditching npm audit.

It's called npm-audit-resolver and I've written about it here https://dev.to/naugtur/do-you-need-help-with-your-npm-audit-...

Also check out the collab space and the tool itself https://github.com/openjs-foundation/pkg-vuln-collab-space https://www.npmjs.com/package/npm-audit-resolver

naugtur··on A URL Lengthener
Here's the repo https://github.com/naugtur/ripper/
naugtur··on A URL Lengthener
I needed to send data over GET in 2012/2013 and built my own tiny LZW-alike compression to squeeze as much as possible into the 100kb which seemed to be the safe limit for non-ie browsers at the time
naugtur··on The future of web software is HTML over WebSockets
Just a random thought - wonder if anyone tried a p2p protocol instead of a database or message broker for spreading information. Wonder if it'd be any better than broadcast to every stateful instance.
naugtur··on Ask HN: Do you have inspiring spontaneous conversations while remote working?
I responded with a no, then deleted because in fact the count of I spiring conversations didn't go down that much. It's the smalltalk and politics and jokes that is not there anymore.
naugtur··on Solving the chaotic three-body problem using deep neural networks (2019)
It's not magic, so is it safe to assume the ANN is quickly narrowing down the search space by eliminating the possibilities that were not showing up as patterns in training set therefore limiting the search to a finite subset of infinite set of possible behaviors of the system?

If the chaos produces a new kind of behavior the result of the ANN may be totally wrong. In other words - it works well, often.

Is my simplistic thinking right?

naugtur··on Data structures and algorithms I actually used while working at tech companies
If I liked spending time memorizing long stretches of text, I'd be a doctor, not a software developer.
naugtur··on Advice to Young Web Developers
Actually, it's less than that. Safari doesn't share some of the features. IIRC one if them is service workers.
naugtur··on Nobody reads privacy policies, senator wants lawmakers to stop pretending we do
Do for privacy policies and ToS what we did for software licenses.

So that I read the lawyer explain ApachePrivacy1.0 and can reuse that knowledge going forward. And it seems like startups would benefit from that a lot. They tend to copy-paste the lawyery bits anyway.

I'm scrolling the comments looking for this and having trouble believing nobody thought of it. Is it obviously impossible or something?

← PreviousPage 2 of 4Next →