Hacker Newsnew | past | comments | ask | show | jobs | submit | jpambrun's commentslogin

Am I expected to be able to run this in production on the backend, or do I still need to transpile and bundle? Do we expect the performance and memory overhead to be negligible. What would be the expectations on terms of added attack surface?


Right now, you should use Nub on the backend if you are relying on its augmentations. If you specifically want to disable Nub's augmentations (so you have a guarantee that your app/script will "just work" with regular Node, there's a couple ways to disable it.

  NODE_COMPAT=0 nub index.ts
  nub --node index.ts

I'll investigate a `nub build` that would do the transpilation upfront and properly chunk/bundle a prod build. It's a good idea. But yes, Nub's overhead (both time and space) is generally negligible relative to Node itself.

Re: added attack surface: the most obvious one is that Nub loads .env files (same as Bun/Next/Vite) so be aware of that. All of Node's permission flags are passed through as well. I won't claim there's no additional attack surface, but it doesn't have much surface area, just a Rust wrapper that spawns `node` ultimately.


I'm seeing lots of bots/agents misusing backticks like this. It's because people are writing agent plans in markdown and the agent thinks it's appropriate everywhere. Maybe you shouldn't be running all your comment replies through Claude.


what are you talking about


Backticks ` ` are used to trigger code-style formatting in markdown. Since all the coding AIs are trained almost entirely on github, you see it everywhere in their output. They'll use it even in places where it's supposed to be just plain text, and almost always in git log messages, which by spec have no formatting.


i write markdown-ish text in any text box including using backticks for command names like `cat`, or use * for *emphasis* just like i did on IRC in the 2000s. these conventions in human plain text conversation predate markdown and AI by decades. that was the point of markdown: formalizing those kinds of conventions enough to turn them into deterministic rich styling.

HN itself renders * as emphasis, but not ` for "code"; this doesn't mean HN is a broken markdown machine or that i'm a bot. many hn comments use plain text conventions for links, see examples that use footnote style markdown-like links[0], I was [doing markdown links here back in 2017](https://news.ycombinator.com/item?id=14763397) even though they've never been parsed by HN.

This kind of semantic formalism in text goes way back, its not so different from something like Chicago style citations first published in 1906 [1].

[0]: https://news.ycombinator.com/item?id=47258996

[1]: https://www.chicagomanualofstyle.org/dam/jcr:bba47b07-61ba-4...


Dude people have been doing this since long before LLMs. It's more an artifact of Slack than anything.


Slack uses this? Thanks for the info. I've never been forced into Slack, so I wasn't aware of that. Either way, it's stupid to use in places it doesn't induce formatting.


This title is wrong. It makes it sounds like Anthropic dropped support for and deprecated Bun.


Diffsitter and/or weave?


There is difftastic


This is irrelevant since your steam game license applies to all subsequent versions. The argument is it's immoral sell version specific licenses with no way to get to said specific version.


This is very close minded. It's best to avoid statements like that.

I feel like having a working python environment is not a great requirement to managing your python environment.


My OS has hard dependency on python, so i'll always have working python environment.

Also, i tend to run pip like 4-5 times max (except initial package installations) during whole project lifetime, or not at all if packages are in distro already. Its speed is ok for that. So I'm not sure what "should" i miss.


I worked in a large org with 100,000+ employees. You could just use software with pre-approved licences and I am 99% sure AGPL wasn't one of them.


Google is in that camp, and I would bet they don't skimp on lawyers https://opensource.google/documentation/reference/using/agpl...

I didn't spot it previously but they've even gone so far as to treat it like an actual virus https://opensource.google/documentation/reference/using/agpl...

FWIW they have a similar stance about SSPL https://opensource.google/documentation/reference/thirdparty...


If this happened here in Canada, I would go to weekly protests against this administration. When I was younger I went to dozens of daily protest for something insignificant in comparison [1] and it did lead to a change of gouvernement.

[1] https://en.m.wikipedia.org/wiki/2012_Quebec_student_protests


Not sure how you even tarif movies. I guess Netflix will receive bills based on viewership?

Anyway, as usual other countries will retaliate. American movies will become both more expensive to make and taxed abroad. Meanwhile, we can expect more people will turn to piracy to cope with rising inflation. I can't imagine any scenario where this isn't backfiring.


The tariff would apply when Netflix pays for the distribution rights to a movie or TV show.


My uninformed assumption is that most licencing arrangement have per viewer component? Not just a lump sum that can be taxed once?


I don't think so. Netflix guards viewership numbers like they are nuclear secrets.


Are civil affairs litigated at the border by custom agents now?


yes


They always have been, overstaying your visa is an example of a civil violation, placing it in the purvue of ICE. You have less protections/rights afforded to you in civil proceedings versus criminal ones.


I really like duckdb's notebooks for exploration and this feature makes them even more awesome, but the fact that I can't share, export or commit them into a git repo feels extremely limiting. It's neat-ish that it dodfoods and store them in a duckdb database. It even seems to stores historical versions, but I can't really do anything with it..


You can try marimo notebooks, which are stored as pure Python and support SQL cells through duckdb. (I’m one of its authors.)

https://github.com/marimo-team/marimo


Definitely something we want too! (I'm the author / lead for the UI)


Local markdown file based sql notebooks: https://www.timestored.com/sqlnotebook Disclaimer: I'm the author


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: