Better HN
topnewbestaskshowjobs
Log inSign up

Existenceblinks

1,102 karma · joined Jun 12, 2015 (11y ago) · 1,205 submissions

Submissions

comment 4y ago · link · parent

It's 136.4kB minified (react+react-dom), for a zero app is crazy. The app size that will justify 136.4kB is probably 700kB which is 836.3kB total, is also crazy. So no hello world argument because it sucks (in engineering metrics) at all range of apps.

According to https://web.dev/optimizing-content-efficiency-javascript-sta... the js size budget is about 800kB minified (1s to parse/compile). So if an app max out the budget, the framework part is considerably 17.05%.

Not bad, but if the median of react app is around 300kB which means the framework part is 45.4%. This is bad!

comment 4y ago · link · parent

Laughable, React is almost 10 years old but Hook is not yet a consensus of the best way to do state and effect. This is what people are actually talking about, they have constantly been in R&D mode while people shipping that codes to prod.

comment 4y ago · link · parent

Because bell curve. Mediocre developers are the curve and they evaluate tech differently. When most developers evaluate tech based on engineering metrics alone, we would make progress a lot faster. (The business benefit automatically comes with the curve).

comment 4y ago · link · parent

Same, RX100-M3 is my webcam now. (X-T30 for anything else)

comment 4y ago · link · parent

Taking photo with phone is utter horrible. I admittedly can't take a decent selfie with one hand. Even holding chopstick is easier.

comment 4y ago · link · parent

It doesn't even have to be a prosumer, average kids in my city know raw and post process. Kids are very familiar with editing, in fact, gen z is also blowing gen y out of water when it comes to editing video.

comment 4y ago · link · parent

Yeah, mirrorless won since 5-7 years ago.

comment 4y ago · link · parent

True, "only full-frames can beat smartphones nowaday" is nonsense. iPhone 14 Pro Max's sensor size is 1/1.28". Naive physics, 1" is collecting more raw light. Now it depends on how good a person controls the collecting process (and post).

comment 4y ago · link · parent

I would say Zig is the nicest C friend! Zig can compile C code. Checkout: https://ziglang.org/learn/overview/#zig-is-also-a-c-compiler Also: https://ziglang.org/documentation/master/#toc-Freestanding

comment 4y ago · link · parent

The pdk is missing Zig which is, for many developers, considerably the best for wasm target. It's as fast as Rust (from benchmark I saw, Rust is fastest), though Zig's binary size is as small as AssemblyScript's. Rust's binary size is considerably in a range of middle to large, mostly middle.

It would be nice if there's an official wasm benchmark of source languages, showing speed and binary size comparison.

comment 4y ago · link · parent

That's interesting, one of examples that is challenging is a universal html template plugin. I'd love to try if it's feasible. Basically it should be logic less like Liquid. The unsure part is the custom tag, can it be called by host or not.

comment 4y ago · link · parent

I never believe in natural lang to tell computer to do things with an objective of getting certain result (been skeptical since pre-2011).

It wouldn't be used to fly plane without lots of physical buttons as a fallback.

Composing rigid instructions for computer is already hard, even with precise semantics defined. Even with static typed, dynamic typed, developers will try hard to get rid of a single bug.

AI will serve as a middleware with an objective of arbitrary result.

  Human
  |> UI (request)
  |> AI
  |> UI (response)
  |> Human
  |> UI (request with heuristic)
  |> Computer does thing

comment 4y ago · link · parent

I'm pretty sure it was https://www.infoxicator.com/is-react-going-anywhere because I copied the path from the url to the title and capitalize it. Strange why it changed to /blog.

374.

Is React Going Anywhere(infoxicator.com ↗)

5 points · by Existenceblinks · 4y ago · 4 comments

comment 4y ago · link · parent

Got it. My concern is just fragmentation of compiler/parser tooling in order to also support wit and may introduce compatibility burden to maintain (I know wasm<->wat is 1:1, not sure about wit). However, I'm looking forward to compiling my toy lang to WASI once its MVP is solid.

Thanks again for the effort of the elaboration.

comment 4y ago · link · parent

Thanks for the inside. I watched the Component Model repo, it's very active (had to turn off noti).

Still confused why the need for wit file instead of wat directly which is already human-friendly. Now wasm has two versions of text mode?

Appreciated, specification is a hard work.

comment 4y ago · link · parent

I'm bearish on the spec. I think it's practically done since draft-4 or draft-7. Almost nobody is going to use something like dynamic scope recursion, and bundle (compound document), unless libs force them to.

comment 4y ago · link · parent

WASI development is very slow. Bytecodealliance is kinda all the big names but it seems not a lot of investment to hire more people working on the spec (I know at some point more people won't work, but right now there are only a few)

comment 4y ago · link · parent

I got you now. The data comes from an external source, and then you wanted to infer json schema from it. So I guess the json response from APIs don't have json schema defined for you. But you could define schema from their api documentation, right? It doesn't matter what tool used to generate the json schema, we only care about the result that is the schema so that you can it wherever.

Trust me on JSON Schema spec, it's been in draft for a decade, to the point they stop calling it "draft" and put date on it instead. It's a frustrating specification (I read the whole thing dozen of time because I wanted it to fully compatible .. but decided to only adopt nice subset of it)

Your use case is very niche though.

comment 4y ago · link · parent

I believe a programming language can be written to generate any requirement you have on json schemas. Have you tried https://www.npmjs.com/package/ts-json-schema-generator and see what you can't do?

I built a json schema editor gui saas, and my conclusion is no one is buying because they use lang libs to generate it. So I kinda surprise you said you wanted an editor.

comment 4y ago · link · parent

Oh god you are bending some broad aspects to back it up that Javascript has all of greatness from every other style of programming. No, it doesn't. I don't think it works like that. It's like a p10 of jack of all trade.

comment 4y ago · link · parent

This is the problem when people only know one language, especially javascript. And then have quite naive opinion about programming languages. Ones should try at least all one of big categories; one of ML family, one of C-like, one of Lisp dialect.

comment 4y ago · link · parent

I think meat mimicking is a wrong approach. When I was 12-15, my grandma made a lot of plant-based menu, I don't even know what it is back then, so I don't know it's supposed to be meat alternative. It's just one strange menu that has a good taste.

I mean, should they try create a new naming system, stop advertising as anything related to meat at all. Create a whole new menu set, they don't even need burger! Look around the world of feed, mediterranean, italian, portuguese, south east asia etc. Plant-based chelf should be the whole new study as well. The current plant-based industry is so mediocre or too early.

comment 4y ago · link · parent

I think nobody writes JSON Schema by hand .. I see most of them use their lang libs to generate it. What language are you using?

comment 4y ago · link · parent

I'm not sure why don't we send diff(url) along with version in the header (if you have ever watched this https://www.youtube.com/watch?v=oyLBGkS5ICk Rich Hickey's talk)

Diff format example: {added: [{"path-to-key": {..}}], removed: [], changed: [{"a/b/c": {prev: {type: "string"}, current: {type: "number"}}], moved: [{old: stuff1, new: stuff2}]}

comment 4y ago · link · parent

A silly reason I can think of is Date would last longer than semver. I see some moved on already (e.g. https://gitlab.com/staltz/comver)

comment 4y ago · link · parent

I know this is not the point but this REST API is way better than their "UpdateEnterpriseAllowPrivateRepositoryForkingSettingInput" GraphQL type, dang!

I know it's not that REST .. it is what it is, probably annoyingly strict req/res, but it's very solid API. I'm glad they are trying to improve .. it.

comment 4y ago · link · parent

Your point is also true. Though I still insist in pre-pandemic, most of US companies who hire remote hired a lots of non-american. Now americans are very good at remote working, they just choose american which is kinda good decision.

(I'm outside of the US)

comment 4y ago · link · parent

True and a lot fewer remote worldwide jobs than when it's pre-pandemic. Remote (US) -demic is spreading pretty fast. I guess startups don't have resource to use those expensive EoR service.

comment 4y ago · link · parent

Plus, it's 2008. 14 years is enough for lots of thought to have a revisit with revise. If there's a very good C book in 2023 I would buy it.

Edit: No, change my mind. I'd go for Zig book instead!

1
121314
41