Lurker News
With the quarantine being placed in effect in a lot of cities across the world, we all likely have a little bit more time to focus on personal projects or learning something new from the comfort of our homes. What are you guys up to these days?

Comments (1,237) 697 threads

Earlier comments
rikroots1 reply#
Over a thousand comments? My project is gonna be lost in the conversation! But here goes anyway ...

I've been recoding my HTML5 library from scratch[1]. Most of the work is done - I'm now onto the fun documentation bit[2].
Something I'm particularly proud of achieving in the recode? Dynamically responsive bendy images in the web browser - with added animation capability![3]
[1] Scrawl-canvas v8 code base - https://github.com/KaliedaRik/Scrawl-canvas/tree/v8-alpha [2] Scrawl-canvas v8 code documentation (incomplete) - https://github.com/KaliedaRik/Scrawl-canvas/tree/v8-alpha/do... [3] Youtube video showing dynamically responsive bendy images in the web browser - https://www.youtube.com/watch?v=LebxNhVWyOQ&t=3s

freeflyer1 reply#
Neat!

Can scrawl-canvas run in a Web Worker and render to an Offscreen Canvas? You'd lose integration with DOM events for interactivity, but you'd be able to perform image processing in a background thread and not block the main renderer thread so that UI elements are responsive.

rikroots#
Thank you!

The majority of the code runs in the main thread; filters use a web worker. OffscreenCanvas currently has less than 70% support (caniuse says), so most of the work is done in regular canvas elements which are created but not added to the DOM, then copied over to the DOM canvas once per RequestAnimationFrame tick

abhgh1 reply#
Very research-y, but I am working on a pet idea of mine called "compact models" in Machine Learning. Essentially you take a model - say a decision tree of depth 20 - and "compact" it to a decision tree of size 10, without losing accuracy. The motivation is "interpretability": models are interpretable by humans if they are small. Another application would be low memory footprint models - but frankly, I haven't thought of this use case much. I have had some success with producing a model agnostic algorithm [1] (i.e. works for any model with some notion of size e.g. decision trees with size being the depth, linear models with size being the number of non-zero terms) - now I am exploring options to speed up the compaction process. The quarantine has given me some time to think about this.

[1] https://www.frontiersin.org/articles/10.3389/frai.2020.00003...

stfwn1 reply#
You might be interested in pruning neural networks. Some networks can be reduced in size by over 90% without performance loss. The lottery ticket hypothesis paper is good place to start, if you don’t already know about it of course.

https://arxiv.org/abs/1803.03635
Some pruning methods have recently been added in the latest feature release of PyTorch.

abhgh1 reply#
I am! And the lottery ticket (LT) hypothesis is something I have thought about quite a bit. I believe the LT hypothesis and our work are related in a subtle way: in the former we build out the larger structure first and then prune, while in our approach we conservatively construct the "winning lottery" so to speak.

Another difference with the LT hypothesis is that the pruning there is very specific to neural networks.
Thanks!

stfwn1 reply#
Pruning in general is about trimming larger structures down. This is nice for using a network, but indeed doesn’t help with training it.

Lottery tickets on the other hand are configurations of weights that rival the full network in performance when both are trained from scratch, with the ticket having far fewer parameters to optimize. Pruning is only the method to find the tickets for now, but the ideal would be to have a weight init strategy that can create winning tickets in one-shot. There is work being done on this front, and also to see if winning tickets for one image classification task generalize to image classification as a whole. This would do a lot to reduce the size of networks from the start, and so far results are promising.
But yes, this is all very specific to neural networks. Do you have a blog or other place where you post about some of the things you’re working on? It would be nice to read about.

Continue this thread — 1 reply

joeblau3 replies#
I wrote this tool (started on Thursday) called Doodle that is designed to give kids a quick drawing canvas. It's a super simple app that I made for my son who kept drawing over all of my Apple notes. You can draw, then press the button in the top right to quickly erase your drawing (Like an Etch A Sketch).

Someone nerd-sniped me and I added in the ability to record a video as well. Technically, you could use it to do quick 5-10 minute drawing/narrated lessons and export them for educational purposes.
Site: https://joeblau.com/doodle/
Source: https://github.com/joeblau/doodle
AppStore: https://itunes.apple.com/app/id1503601939

gliese13371 reply#
I would very much like that for Android. It seems much better than the tablet drawing app my kids currently use.
joeblau#
Unfortunalty, the only reason I was able to make this work in a day is that it uses two proprietary Apple libraries.

PencilKit — which provides all of the UI for drawing and selecting drawing tools.
ReplayKit - which is designed for games but, I'm using it to just record the whole screen.
There is really not that much code outside of just calling into those frameworks which is what allowed me to make this in such a short time. If these types of libraries exist on Android, I could probably create something, but I'm not super familiar with Android's library ecosystem.

1357924681 reply#
Very cool my kid loves doodling on my iPad but always accidentally clicks some part of another app
rooam-dev1 reply#
There is a child/lock mode, need to triple click home button (you may need to enable it), however the problem remains if the app has extra buttons that little ones love pressing.
joeblau#
Yeah — That is called guided access mode. I use an Apple API that requires you to double gesture to bring up any menus or leave the app. This has actually proved sufficient for keeping my kid kid in bounds. You can always 4-finger pinch and leave my app though.
rooam-dev#
Thank you. Just installed it. I had the same problem with the Notes app. I ended up creating a separate folder for our son, but this is much simpler.
kstenerud2 replies#
I'm building a new twin ad-hoc encoding format to replace JSON and friends [1].

It has native support for all commonly used data types, so you don't need to artificially specify custom encodings just to get your data across.
It's a twin text / binary format, where the text format can be transparently converted to the binary format, and vice versa. This means that you can use the binary format for storage and communication, and only convert to/from the text format when humans get involved.
I'm currently building a reference implementation in go [2], which is now running faster than the JSON codec in my experimental branch [3].
[1] https://github.com/kstenerud/concise-encoding#concise-encodi...
[2] https://github.com/kstenerud/go-cbe
[3] https://github.com/kstenerud/go-cbe/tree/new-implementation

lukevp1 reply#
Benefits vs capn proto or grpc?
BatFastard#
That looks amazing! Best of luck.

Load more comments