News for hackers. Stuff that matters.

gunn

Re:The frame rate of the universe (2009) on Thursday February 18, 2021 @07:20PM (#26187775)
So what does the non-simulated "real" or "outer-world" look like in this view?
React itself is quite small but react-dom is much bigger: 121KB minified, 40KB gzipped - https://bundlephobia.com/[email protected]
I also just found https://hatchinvest.nz/ - has US market access, I don't know about an API
There's https://hellostake.com/ for NZ and AU. They don't have an API yet but would like to in the future - see comment here: https://old.reddit.com/r/PersonalFinanceNZ/comments/fnbmlx/x...

As mentioned, Sharesies plan to allow US market access: https://app.sharesies.nz/us-equities-register They do seem to have a private API at least: https://app.sharesies.nz/api/fund/list

https://www.revolut.com/en-NZ have plans to expand to NZ, I don't know much about their services though.

Re:Deno 1.0 on Wednesday May 13, 2020 @08:42PM (#23173756)
As in .mjs files? Personally, I just want to import my own .js / .ts files and external npm packages which works well - https://github.com/gunn/covid-19-scripts/blob/023579e1cf/get...

The catch for me is that it's probably not suitable for a sever in production as mentioned elsewhere in this thread.

Re:Deno 1.0 on Wednesday May 13, 2020 @08:04PM (#23173415)
You'll like https://www.npmjs.com/package/ts-node - it allows zero processing use of typescript
Re:React Native for Windows and Mac on Tuesday May 12, 2020 @07:02PM (#23161163)
React native doesn't really use css - there are no .css files, no cascading either. It's more like a style engine that uses a subset of css ideas as a starting point.

It uses flex-box (and only flex-box) for layout, adds some convenient shorthands - marginVertical, marginHorizontal, and does some surprising (but useful) things like has transform take a JS array of key value pairs - https://reactnative.dev/docs/transforms#transform

Re:New Zealand PM: No open borders for 'a long time' on Wednesday May 06, 2020 @03:45PM (#23095444)
It buys time to prepare, and for vaccines and other treatments.
This looks useful, but also quite big - larger than react-dom: https://bundlephobia.com/[email protected]
Re:Introduction to Flat-File CMS on Thursday April 23, 2020 @11:27PM (#22964336)
Hey, since you know about this space, could I contact you to to learn some more about it? I'm developing a product that can act as a CMS but is more general and I think more powerful. If you can email me, I'm [email protected]
Re:Is Cloudflare Safe Yet on Thursday April 23, 2020 @10:38AM (#22956517)
It seems to be based on a site by cloudflare: https://isbgpsafeyet.com/
Like it says, <1kB minified and gzipped. But 9.5kB only minified, i.e. The css is highly repetitive so gzip is able to do a lot.

I know it's still small, but I'd be tempted to extract just the rules I wanted. Very nice regardless.

Re:Show HN: Verify JSON using minimal schema on Thursday April 16, 2020 @01:43AM (#22886487)
Why are schemas strings?

It would seem much more natural to make them JSON structures since they're almost that anyway.

I use and can recommend the chrome extension from https://sessionbuddy.com/

Even if you don't use it actively, it periodically saves the state of your windows and tabs (all locally), so you can restore sessions from months and years ago.

Re:Redux – Not Dead Yet (2018) on Thursday April 09, 2020 @11:23AM (#22823417)
Try mine! https://github.com/gunn/pure-store

Super simple, 100% test coverage, 100% typesafe if using typescript, absolutely no boilerplate.

Re:Rome: An experimental JavaScript toolchain on Thursday February 27, 2020 @02:02AM (#22431270)
Thanks for the reply. It looks well organized now. I'll be keeping my eye on it.
Re:Rome: An experimental JavaScript toolchain on Thursday February 27, 2020 @12:56AM (#22430923)
There's quite a lot of code in the packages dir - 76,000 lines of typescript.

It was all added in the first commit 45 mins ago. Why would they hide their commit history?

Also I found this funny - comments in package.json:

  "//": "Look! No deps!",
  "dependencies": {},
  "///": "Only used for static type checking",
  "devDependencies": {
Re:Polymath: A Markup Language for Everything on Saturday February 08, 2020 @09:13PM (#22279953)
Looks excellent. One thing I'd question is why it should deviate from html / css like it does - why choose corners: 4px over border-radius: 4px?
Re:FLIF – Free Lossless Image Format on Thursday February 06, 2020 @10:24PM (#22262967)
I'd definitely hope browsers could encode them for example to allow canvas.toDataURL("image/flif")
Re:Google tracks individual users per Chrome installation ID on Tuesday February 04, 2020 @10:06AM (#22236300)
To give them some credit: it's not sent when in incognito mode.
In ruby you are always calling a method, you can't access a property from outside a class with normal syntax.
Re:America's Biggest Milk Producers Are Going Bankrupt on Tuesday January 07, 2020 @02:22AM (#21977781)
Excellent clip thank you.
Re:Reasons to Learn Redux as a JavaScript Developer on Wednesday January 01, 2020 @02:36AM (#21927106)
Here's the library I wrote to replace redux for myself: https://github.com/gunn/pure-store

It's the simplest API I could think of, has excellent type support, and handles immutability for you.

Re:Rust 2020: GUI and Community on Saturday November 09, 2019 @11:17PM (#21496373)
This is very cool. Especially the animate into compact code view when holding down the alt key. Is there an extension with similar functionality in any other editor?
The released mac didn't work for me, but the webassembly webGL version is excellent - https://michelemorrone.eu/glchaosp/webGL.html
Re:We Will Call It Pala: A Story for the Psychedelic Movement on Friday November 01, 2019 @04:50AM (#21417124)
For anyone who doesn't know it, the name Pala is a reference to the setting of a novel by Aldous Huxley - https://en.wikipedia.org/wiki/Island_(Huxley_novel)
Re:When XML Beats JSON: UI Layouts on Wednesday October 30, 2019 @09:43AM (#21397605)
It also has the advantage over code that it can be modified with a visual interface designer.
Re:When XML Beats JSON: UI Layouts on Wednesday October 30, 2019 @09:22AM (#21397368)
It is ugly:

["div", 0, "The ", ["a", {"href": "https://www.json.org/"}, "JSON format"], " was invented by ", ["em", 0, "Douglas Crockford"], "."]

Re:What’s New in Python 3.8 on Monday October 14, 2019 @10:31PM (#21255071)

Older »