864 karma · joined Nov 10, 2014 (12y ago) · 178 submissions
Co-founder and CTO of https://friendlycaptcha.com.
Github: https://github.com/gzuidhof
61.
Enabling COOP/COEP without touching the server(stefnotch.github.io ↗)
1 points · by protoduction · 5y ago · discuss
comment 5y ago · link · parent
comment 5y ago · link · parent
I personally would feel it is less manipulative and think of it higher.. but perhaps your goal is so people never find out?
comment 5y ago · link · parent
comment 5y ago · link · parent
I would say that by using setInterval you are buying into this kind of behavior and would have to create your own synchronization.
If you are saying that this transpilation step changes the semantics of the code, then I completely agree!
69.
What if JavaScript had a synchronous async flavor?(guido.io ↗)
38 points · by protoduction · 5y ago · 53 comments
70.
Testing Web-Based Notebooks(guido.io ↗)
2 points · by protoduction · 5y ago · discuss
comment 5y ago · link · parent
* Medical settings in which patients are slowly losing the ability to move or communicate, being able to look at a keyboard to type messages to your loved ones or perform basic actions (e.g. turning music on) make a terrible situation a tiny bit better.
* Entertainment/gimmicks: you go to Disneyland and you put on a cap/helmet and suddenly you can interact with objects just by looking at them (they have a flickering light next to them that pulses in a certain binary pattern) - it's like magic.
The second usecase is very difficult today though, the tech that I worked with (+5 years ago) needed to be trained for every new user and a training time of 10 minutes was considered very short. That of course makes the Disneyland usecase more difficult. Also you need to make sure you don't move or blink too much - maybe fNIR has less issues with that.
comment 5y ago · link · parent
Outside of that use-case, I think notebooks are great for the first 20% of the effort that gets 80% of the work done. If it turns out one also needs to do the other 80% of the effort to get the last 20%, it is time to "graduate" away from a notebook. For instance if I am participating in a Kaggle machine learning competition I may train my first models in a Jupyter notebook for quick iteration on ideas, but when I settle onto a more rigid pipeline and infra, I will move to plain Python files that I can test and collaborate on.
This "graduation" from notebook to the "production/serious" environment should be straightforward, which means there shouldn't be too much magic in the notebook without me opting into it. Documentation in my eyes is not so different, I should be able to copy the examples easily into my JS project without knowing specifics of Observable and adapt it to my problem. Saying "don't be lazy and just learn Observable", or "you must learn D3 itself properly to be able to use it anyway" is not helpful. Observable being a closed, walled garden doesn't help: not being able to author notebooks without using their closed source editor is a liability that I can totally understand makes it a non-starter for some companies and individuals.
I think it's ok to plug my own project: It's called Starboard [1] and is truly open source [2]. It's built on different principles: it's hackable, extendable, embeddable, shareable, and easy to check into git (i.e. I try to take what makes the web so great and put that in a notebook environment). You write vanilla JS/ES/Python/HTML/CSS, but you can also import your own more advanced cell types. Here's an example which actually introduces an Observable cell type [3] which is built upon the Observable runtime (which is open source) and an unofficial compiler package [4]. I would be happy for the D3 examples to be expressed in these really-close-to-vanilla JS notebooks, but I doubt I can convince the maintainers to do so.
[1]: https://starboard.gg
[2]: https://github.com/gzuidhof/starboard-notebook
[3]: https://starboard.gg/gz/open-source-observablehq-nfwK2VA
[4]: https://github.com/asg017/unofficial-observablehq-compiler
comment 5y ago · link · parent
I see you are passionate about defending Observable, and that's cool - it's a great piece of tech, but please remember that everybody's requirements are different and valid too.
75.
Dynamic scientific visualizations in the browser for Python users(xcorr.net ↗)
1 points · by protoduction · 5y ago · discuss
comment 5y ago · link · parent
If you're looking for next steps: You can actually run user code using `import`, which will allow your users to import code from external websites using familiar `import {x} from "https://some-url.com/bla.js"` syntax at the top of cells. Here's how:
const exportsInCell = await import(URL.createObjectURL(new Blob([USER_CODE], { type: "text/javascript" })));
And with some transpilation you can support top-level await in eval [1]. Just some pointers![0]: https://starboard.gg & https://github.com/gzuidhof/starboard-notebook
[1]: https://github.com/gzuidhof/starboard-notebook/blob/master/s...
comment 5y ago · link · parent
comment 5y ago · link · parent
We are a small, profitable company providing a privacy-friendly and accessible alternative to Google ReCAPTCHA based on proof of work. We are looking for a fullstack developer to help us further improve our anti-spam tools that don't carry an accessibility and privacy cost to end-users. The ideal candidate is a generalist, has strong knowledge of web APIs, has experience with open source, and has built a SaaS product before.
Technologies:
* Typescript, Go, HTML, CSS (and likely React in the future for a revamped customer/admin dashboard)
* Serverless (Cloudflare Workers) as well as good-old load balanced services (in Go)
* Redis, FaunaDB, Postgres, Clickhouse
* Git, Github Actions, Sentry, Stripe
* Plugins for Wordpress in PHP, and Flutter (Dart)
Reach out to me at guido@<our domain name>.
comment 5y ago · link · parent
Building a website or SPA entirely backed by Python seems like the wrong use of this technology. The same goes for crunching large amounts of data.
comment 5y ago · link · parent
A sibling comment introduces JupyterLite and Brython, which are Jupyter-but-in-the-browser, whereas with Starboard I'm trying to create what Jupyter would have been if it were designed for the browser first.
As it's all static and in-browser, you can embed a notebook (or multiple) in a blog post, for instance to power interactive examples. The bundle size is a lot smaller than JupyerLite for the initial load - it's more geared towards fitting into existing websites than being a complete IDE like JupyterLab.
comment 5y ago · link · parent
Alternatively you can create your notebook in starboard.gg and embed it using a standard iframe. It depends a bit on what you want your app to do, if you want to integrate "tightly" with the notebook the first will be the better choice.
comment 5y ago · link · parent
The difference between this and Jupyter (which I assume you may be familiar with) is that this doesn't talk to a backend server. Most other notebooks do (Jupyter, Livebook, rmarkdown, Spyder, VSCode+Jupyter), which has benefits and disadvantages.
Everything here is in-browser and within a sandboxed iframe, which has the benefit that I can post a notebook where you can actually make changes/interact to an audience of millions without having to spawn a container per user. But also you can embed a notebook on your blog, it's just a webpage.
With WebAssembly being a thing now you can even have Python cells through Pyodide (which includes common scientific packages such as numpy, pandas, matplotlib), and from Python you can interact with Javascript code in the dom. So you could make a notebook that is something like: "Drop your CSV file, parse it using Pandas, visualize it using matplotlib". That's actually really powerful for distributing small programs (<1k LoC) to people who don't have Python installed on their PC.
The about page has some more thoughts on all of this.
83.
Show HN: Starboard Observable – An open source ObservableHQ notebook editor(starboard.gg ↗)
156 points · by protoduction · 5y ago · 19 comments
comment 5y ago · link · parent
In my case I am trying to get Javascript/visualization/web developers to embrace the literate programming paradigm. The tough part here is that those familiar with something like Jupyter don't often know web APIs very well to really build a simple "app" in 100 lines, and those who do have probably never used a "notebook" at all and wouldn't even consider it.
How I am currently adressing this issue is by embracing content authoring first. The base of my tool are now WYSIWYG blocks, with the "super powers" being use-as-you-learn. Think gitbook but it's actually notebooks: that's not too scary. In your case it may mean some pre-built drag and drop no-code visualizations.
Importantly: don't give up now. My project has gotten some attention, but not nearly as much as I think it deserves. Follow the advice of others: see who really has a need for your product and let them help guide your next steps.
Finally, check out ellx [1] too as it's quite similar in its target audience.
[0]: https://starboard.gg [1]: https://ellx.io/
comment 5y ago · link · parent
Think Jupyter Notebook but built for the web.
[0]: https://starboard.gg [1]: https://github.com/gzuidhof/starboard-notebook
comment 5y ago · link · parent
[1]: https://exchangerate.host/ [2]: https://starboard.gg/#visualization
comment 5y ago · link · parent
It's amazing what browsers can do these days without any build step!
[0]: https://starboard.gg
89.
Show HN: Magic Login – Passwordless login and transactional emails as a service(magiclogin.net ↗)
9 points · by protoduction · 5y ago · 1 comment
comment 5y ago · link · parent
What it needs is actual adoption in the real world. I want to be able to buy a pizza with it, but nobody seems to offer it as a payment option yet.
Perhaps what will make it take off is some video game or other digital economy adopting it as their in-game currency. It seems perfect for that.