HNHacker News
TopNewBestAskShowJobs

gunn

233 karma · joined September 24, 2012

https://github.com/gunn
submissionscomments
gunn··on The frame rate of the universe (2009)
So what does the non-simulated "real" or "outer-world" look like in this view?
gunn··on Github1s – One second to read GitHub code with VS Code
https://github.com/Microsoft/monaco-editor
gunn··on Show HN: I built a 4kb alternative to React, Vue, etc for building web UIs.
React itself is quite small but react-dom is much bigger: 121KB minified, 40KB gzipped - https://bundlephobia.com/result?p=react-dom@17.0.1
gunn··on Show HN: Trade stocks from the command line with no commission
I also just found https://hatchinvest.nz/ - has US market access, I don't know about an API
gunn··on Show HN: Trade stocks from the command line with no commission
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.

gunn··on Deno 1.0
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.

gunn··on Deno 1.0
You'll like https://www.npmjs.com/package/ts-node - it allows zero processing use of typescript
gunn··on React Native for Windows and Mac
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

gunn··on New Zealand PM: No open borders for 'a long time'
It buys time to prepare, and for vaccines and other treatments.
gunn··on React-flow: a library to create interactive node-based graphs
This looks useful, but also quite big - larger than react-dom: https://bundlephobia.com/result?p=react-flow-renderer@1.1.0
gunn··on Introduction to Flat-File CMS
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 arthur@everdb.net
gunn··on Is Cloudflare Safe Yet
It seems to be based on a site by cloudflare: https://isbgpsafeyet.com/
gunn··on Show HN: Pattern.css – CSS-only library to fill empty background with patterns
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.

gunn··on Show HN: Verify JSON using minimal schema
Why are schemas strings?

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

gunn··on Show HN: Tablist – a chrome extension to copy and paste lists of open tabs
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.

gunn··on Redux – Not Dead Yet (2018)
Try mine! https://github.com/gunn/pure-store

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

gunn··on Rome: An experimental JavaScript toolchain
Thanks for the reply. It looks well organized now. I'll be keeping my eye on it.
gunn··on Rome: An experimental JavaScript toolchain
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": {
gunn··on Polymath: A Markup Language for Everything
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?
gunn··on FLIF – Free Lossless Image Format
I'd definitely hope browsers could encode them for example to allow canvas.toDataURL("image/flif")
gunn··on Google tracks individual users per Chrome installation ID
To give them some credit: it's not sent when in incognito mode.
gunn··on Yukihiro Matsumoto: “Ruby is designed for humans, not machines”
In ruby you are always calling a method, you can't access a property from outside a class with normal syntax.
gunn··on America's Biggest Milk Producers Are Going Bankrupt
Excellent clip thank you.
gunn··on Reasons to Learn Redux as a JavaScript Developer
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.

gunn··on Rust 2020: GUI and Community
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?
gunn··on glChAoS.P: Real-time 3D strange attractors scout and hypercomplex fractals
The released mac didn't work for me, but the webassembly webGL version is excellent - https://michelemorrone.eu/glchaosp/webGL.html
gunn··on We Will Call It Pala: A Story for the Psychedelic Movement
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)
gunn··on When XML Beats JSON: UI Layouts
It also has the advantage over code that it can be modified with a visual interface designer.
gunn··on When XML Beats JSON: UI Layouts
It is ugly:

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

gunn··on What’s New in Python 3.8
Here you go: https://github.com/tonsky/FiraCode
Page 1 of 4Next →