Hacker Newsnew | past | comments | ask | show | jobs | submit | gunn's commentslogin

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/result?p=react-dom@17.0.1


I see, that number came up in search but I did suspect it wouldn't be the full story. Thanks!


Jesus, that's jQuery levels of obesity.


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.


I also just found https://hatchinvest.nz/ - has US market access, I don't know about an API


Thank you


You'll like https://www.npmjs.com/package/ts-node - it allows zero processing use of typescript


Word of warning though - ts-node can be excruciatingly slow. We recently switched a project from using ts-node in our dev environment to compiling with tsc and running with node, and shaved around 5 minutes from our startup time.


Well, that answers something I was wondering about recently.

I noticed in a couple of popular TypeScript (+React fullstack) boilerplates, that they were using ts-node to run the server in production.

Unlike babel-node, there's no mention in the documentation to avoid using it in production - but I figured there'd be performance impact, since it's transpiling on the fly (I suppose just once per require).


You had 5 minutes startup time?!


More then one second and people will test their code less often. Five minutes and people start relying on the type-checker. Like with the chicken and egg problem, what came first, the type-checker or the need to have a type checker?


Zero processing is a little generous, for things like like ES Module support (and interop), ts-node can be a struggle to get going.


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.


It doesn't really help that much with TypeScript native NPM-packages being published with JS and D.TS (TypeScript-definitions) instead of the original source, does it?)


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


It buys time to prepare, and for vaccines and other treatments.


Yes, this point is being strongly overlooked. Worst case scenario they end up like the rest of the world now with a struggling economy and thousands of cases.

By closing their borders it gives them time to build up their healthcare infrastructure, wait for vaccines and other experimental treatments to be vetted so by the time their borders open up again it won't devastate the country like it has everywhere else. These are all luxuries every nation wishes it could have taken advantage of. Criticizing New Zealand's response right now is extremely premature.


Isn't tourism a large portion of the economy there? I'd imagine this isn't going to help. Although no one is really traveling now, so maybe the damage is already done.


For New Zealand the largest source of tourists are from Australia. The opposite isn't true due to the nations population imbalance but New Zealand is still a large source of tourism for Australia.

It may surprise some people but the number of Australians that visit countries overseas is roughly equal to tourists visiting Australia. As wealthy diversified nations tourism for Australia and New Zealand is a net wash in terms of foreign cash flows. Citizens spend as much overseas as tourists coming to Australia. The issue isn't foreign currency gains/losses but a more simple case of the economy and jobs are setup to service a certain number of tourists who are no longer there.

Both nations leaders have met and discussed encouraging bilateral tourism. Honeymoons, family overseas trips, etc. will be bilateral and internal for the time being. If the previously external tourism can be directed internally it'll actually more or less be a wash on topline numbers.


This looks useful, but also quite big - larger than react-dom: https://bundlephobia.com/result?p=react-flow-renderer@1.1.0


Unfortunately you are right. There are some heavy dependencies because of the zoom and panning and the dragging behaviour.


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


It seems to be based on a site by cloudflare: https://isbgpsafeyet.com/


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: