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

You can expose the browser port via ssh, with a command line flag like `-L 8080:127.0.0.1:8080`. So you can still preview locally


Ah yeah, tunneling it back makes perfect sense - not sure why I never considered that. I'll explore that a bit - thanks for the heads up!


If you're using vs code, vscode is doing that automatically


This is just another tool to find people you follow on Twitter that migrated to Mastodon. So it's still the first sentence you said.


Well I think the joke is that your skin will let you know once you pass the ivy whether it's Poison Ivy or not.


Depends - on YouTube, there's definitely a lot of channels that encourage engineering and science of some kind, though not always in a safe way. We had Shitty Robots into just general engineering with Simone Giertz, William Osman and Michael Reeves with their dumb robots.

I would definitely include some of Simone's builds in the super serious club especially now, but Mark Rober and Build Stuff Better definitely have a more engineering focus to their videos.


Most other compiled languages do dead code elimination, which sounds similar but is a little different. Think of dead code elimination as removing code that doesn't change the output, while tree shaking instead includes code that could run.

To apply this to python is interesting - if you were creating a packaged version, I could see "compiling" the code to a separate package with only the required imports.


> Think of dead code elimination as removing code that doesn't change the output, while tree shaking instead includes code that could run.

Those are both dead code elimination. Webpack even says:

> Tree shaking is a term commonly used in the JavaScript context for dead-code elimination.


Don't worry, won't be likely to happen - the ads that are displayed now as banners are literally bid on when it's loading, so at most the ad serving code would be bundled, but you would still be able to block the binaries they load.


More work to be done, but Mozilla DID get Jupyter Notebook to run on the web with WASM.

https://hacks.mozilla.org/2019/04/pyodide-bringing-the-scien...



Surprised the dup-detector didn't pick it up.

Ahh! The original submission had a query parameter in the URL: "?r=1"


Also engineering.fb.com vs. code.fb.com.


Did they finish rolling them out? I know that is (was?) the plan, but when I interviewed last year at the Santa Monica location, they only had whiteboard.


Indeed not all locations have it, but I believe the major ones, like Santa Monica, should have it available by now.


Not only that, but if you're on Python 3.7 you can use breakpoint() without any imports, which is even shorter.


TIL: Thanks for sharing this!


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

Search: