Better HN
topnewbestaskshowjobs
Log inSign up

atmin

17 karma · joined Sep 30, 2013 (13y ago) · 23 submissions

[ my public key: https://keybase.io/atmin; my proof: https://keybase.io/atmin/sigs/kPxAW0EUxVYd1b-QI9udz1qDzaJ0D6WBWkOJHD3gfuc ]
Submissions

comment 2y ago · link · parent

799 total calories, 55:33 run duration, 146 avg heart rate. Resting metabolism: about 1800 calories per day.

comment 2y ago · link · parent

I just ran for a hour and burned about 45% of my resting calories. I do this every other day. 3.5 hours of exercise per week sounds reasonable to me.

comment 2y ago · link · parent

Not OP, but interested: can you deploy on a vps having only bun and not node?

comment 2y ago · link · parent

The main argument (“I hate static sites”) can be more efficiently (dynamic page, guaranteed fast response, mainstream tech) addressed by deploying normal JavaScript jsx on the edge.

comment 4y ago · link · parent

Yes. It's one background image, tiled 8 billion times, but you never see more than a screen of tiles at a time. Virtual scrolling is fast.

comment 4y ago · link · parent

No mention of SQLite as an embedded SQL database?

comment 4y ago · link · parent

SHAs of entire IPv4 space can be easily precalculated. Include a nonce, that is rotated periodically, to solve this.

comment 5y ago · link · parent

Any sufficiently advanced search engine is indistinguishable from hacking.

comment 5y ago · link · parent

Very cool. I had similar idea and glad to see it implemented and working well.

Workers KV imposes 25MB limit per key. Worker memory limit is 128MB. Concatenating several values from the store or using sqlite's ATTACH DATABASE should make possible querying of about 100MB large databases, would be my guess.

comment 5y ago · link · parent

I used qrpixel to draw my avatar https://avatars0.githubusercontent.com/u/714648?s=460&u=2bca...

I'd be very glad to see it online again.

comment 5y ago · link · parent

Maybe these are not their customers anymore and this is just timely update.

comment 6y ago · link · parent

Reminds me of http://www.underengineering.com/2014/05/22/DIY-NoSql/

What I'd love to see in Pydis is durability option.

comment 6y ago · link · parent

sql.js does this

> sql.js uses emscripten to compile SQLite to webassembly (or to javascript code for compatibility with older browsers)

> By default, sql.js uses wasm

comment 6y ago · link · parent

Citation needed. All I can find are jailed musicians in Japan for drug possession.

comment 6y ago · link · parent

Not just some member, but the leader. He did know how to behave in this role (including allowing such stories become widespread), he was the leader for 45 years.

comment 9y ago · link · parent

And implementation by the same author: https://github.com/csuwildcat/SelectorListener

comment 9y ago · link · parent

You kinda can do it on Android via Termux: https://termux.com/add-on-api.html

comment 10y ago · link · parent

I created something similar recently, but more minimalistic, es6/jsx-encouraging and based on the real DOM (via morphdom).

https://atmin.github.io/funponent/

comment 10y ago · link · parent

- CSS can be tested, e.g. [1]

- use simplified program model and enforce it, [2]

[1] https://github.com/jamesshore/quixote

[2] https://github.com/unframework/airtight-css-lint

comment 10y ago · link · parent

I did something quite similar couple years ago [jtmpl.com].

Main difference is Monkberry uses Jinja-inspired templating language and jtmpl uses Mustache (with slightly changed semantics, so, for example, a partial can be dynamically requested via XHR). jtmpl is a bit bigger and provides a bit more features.

comment 10y ago · link · parent

Thanks for the insightful explanation. Adding https://github.com/atmin/freak to the comparison (disclaimer, I'm the author):

* it supports set operations, `model(‘fieldName’, newValue)`, like Backbone and unlike Redux, which trigger only the necessary update actions in the (implicitly built) dependency graph. set is idempotent, even if your computed properties have side effects

* it has .on() method

* "You can log every action and see the entire state tree before and after the action.”. In freak, too:

    const model = freak(statePOJO);
    const history = [];
    model.on(‘change’, prop => {
      // change is called exactly once per mutation
      history.push({...model.values});
    });
freak’s README is a literal test suite, consisting of state changes and assertions.

Probably it's a good idea to add 'beforeChange' event, to make it possible to cancel a mutation.

* it's currently implemented internally using mutable data structure, but this is implementation detail and can be changed to immutable data in the future, allowing simply `history.push(model.values)`

comment 11y ago · link · parent

You may be interested in my functional-reactive object wrapper, https://github.com/atmin/freak

23.

Mustache + data-binding = Live templates(jtmpl.com ↗)

1 points · by atmin · 13y ago · discuss