News for hackers. Stuff that matters.

atmin

Re:Eating fewer calories can ward off ageing on Tuesday January 02, 2024 @02:37PM (#38846002)
799 total calories, 55:33 run duration, 146 avg heart rate. Resting metabolism: about 1800 calories per day.
Re:Eating fewer calories can ward off ageing on Tuesday January 02, 2024 @06:14AM (#38840426)
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.
Re:Bun, JavaScript, and TCO on Sunday December 31, 2023 @03:39PM (#38827348)
Not OP, but interested: can you deploy on a vps having only bun and not node?
Re:LuaX: A Lua Dialect with JSX on Sunday December 31, 2023 @03:28PM (#38827253)
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.
Re:People living on Earth – All on this page, one by one on Tuesday November 15, 2022 @02:58AM (#33606488)
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.
Re:What's the big deal about embedded key-value databases? on Tuesday August 23, 2022 @01:22PM (#32568098)
No mention of SQLite as an embedded SQL database?
Re:GDPR for Developers by Example on Thursday August 04, 2022 @07:19AM (#32341502)
SHAs of entire IPv4 space can be easily precalculated. Include a nonce, that is rotated periodically, to solve this.
Any sufficiently advanced search engine is indistinguishable from hacking.
Re:Serverless SQLite on Wednesday January 20, 2021 @10:14AM (#25847348)
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.

Re:Show HN: Create a QR code with text in the code pattern on Sunday December 20, 2020 @08:23AM (#25486055)
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.

Re:Highly Evasive Attacker Leverages SolarWinds Supply Chain on Monday December 14, 2020 @12:35PM (#25420397)
Maybe these are not their customers anymore and this is just timely update.
Reminds me of http://www.underengineering.com/2014/05/22/DIY-NoSql/

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

Re:SQL.js: SQLite Compiled to JavaScript on Saturday November 07, 2020 @05:43AM (#25014324)
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

Re:RIAA Takedowns Backfire as Pirated MP3s Now Surface on GitHub on Wednesday November 04, 2020 @08:47AM (#24988977)
Citation needed. All I can find are jailed musicians in Japan for drug possession.
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.
And implementation by the same author: https://github.com/csuwildcat/SelectorListener
Re:The Case for Ubuntu Phone on Sunday January 15, 2017 @03:37PM (#13406250)
You kinda can do it on Android via Termux: https://termux.com/add-on-api.html
Re:Maquette – Pure and simple virtual DOM library on Tuesday August 30, 2016 @05:24AM (#12388513)
I created something similar recently, but more minimalistic, es6/jsx-encouraging and based on the real DOM (via morphdom).

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

Re:CSS is powerful, you can do a lot of things without JS on Tuesday July 05, 2016 @09:04AM (#12036081)
- 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

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.

Re:Why We Moved to React on Sunday February 28, 2016 @06:16PM (#11192859)
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)`

Re:React v0.13.0 Beta 1 on Wednesday January 28, 2015 @06:48AM (#8959273)
You may be interested in my functional-reactive object wrapper, https://github.com/atmin/freak