Better HN
topnewbestaskshowjobs
Log inSign up

sprkv5

34 karma · joined Aug 15, 2015 (11y ago) · 35 submissions

Submissions

comment 11mo ago · link · parent

If you like ML-ness try ReScript v12. It occupies a nice middle-ground between OCaml and Gleam.

comment 12mo ago · link · parent

ReScript is a robustly typed language that compiles to efficient and human-readable JavaScript. It comes with a lightning fast compiler toolchain that scales to any codebase size.

ReScript 12 arrives with a redesigned build toolchain, a modular runtime, and a wave of ergonomic language features.

3.

ReScript 12(rescript-lang.org ↗)

3 points · by sprkv5 · 12mo ago · 1 comment

comment 1y ago · link · parent

the lift off spot is at the edge of the launch pad, whereas the landing spot is at the center of the launch pad.

[edit] the camera angle and the camera height from the ground is different as well between the lift off and landing.

comment 1y ago · link · parent

If you're a fan of both Daft Punk and the 80s City Pop genre and if you were around when City Pop was rising in 2019 then you could have listened to the mashup "Something about Plastic Love"[1]. Beautiful blend. The original got taken down - and second grade recreations remain.

Also Plastic Love is the best Pop song if you go by Vice[2].

[1] https://www.youtube.com/watch?v=jOTlyCZmVa8 [2] https://www.vice.com/en/article/mariya-takeuchi-plastic-love...

comment 1y ago · link · parent

Is the iPhone "e" series going to be a yearly release now? Like the Pixel "a" series?

comment 1y ago · link · parent

When we talk about cities with a grid plan, all the cited examples in sibling comments pale in comparison to Mohenjo-daro. It existed around 2500 BC and one of the iconic places is the Great Bath which is the "earliest public water tank of the ancient world".

Tenochtitlan existed in the 15th century which is fairly recent.

comment 2y ago · link · parent

I agree with you. The best looking ones are Gleam, ReScript and F#

comment 2y ago · link · parent

Yet Google and Anthropic wanted in on the huge data that GitHub has to offer. It seems the world has not moved on just yet.

comment 2y ago · link · parent

One of the reasons that comes to my mind is - it could have been problematic look for only Microsoft (Copilot) to have access to GitHub for training AI models - à la monopolizing a data treasure trove. With anti-competitive legislation catching up to Google to open up its Play Store, this could have been one of key reasons why this deal came about.

comment 2y ago · link · parent

Absolutely. People are sleeping on it.

If only projects like Bun/Deno/Node added runtime support for ReScript instead of TypeScript, collectively as the web-tooling industry, we'd be in a better place. But you can't win against the MS's marketing budget.

Also in hindsight, ReScript diverged away from OCaml, but the ReScript development team could have gone further by creating a runtime for ReScript. Then again I don't blame them - they are polishing the dev experience of ReScript and React.

This is the decade of writing shiny new runtimes - I hope somebody writes a ReScript runtime. Imageine ReScript, Core, rescript-webapi, typechecker, re-analyze, plus a bundler minifier etc baked into the runtime like Bun. Sounds like an interesting value proposition. Fingers crossed.

comment 2y ago · link · parent

> I use TS because of its ubiquity, but I think there's the possibility for a future where a system a little more like Flow gets baked into the language.

Have you looked into ReScript? It is basically a sound type system + JavaScript-like syntax. It inherits the type system from OCaml. You might like it. They recently released version 11.

comment 3y ago · link · parent

They do in many ways. Pixels have clean focused software that are excellent at what they do - it makes you want them. Also they dont include bloatware unlike Samsung.

1. Pixel Camera taught Samsungs and iPhones about computational photography pipelines and Night Sight,

2. Recorder,

3. Photos + various editing features (Top Shot / Best take / Magic Eraser),

4. Phone + various features (Call Screening(US) / Hold for Me(US) / Spam Protection)

5. Google Pay (UPI - India specific)

6. Gestures - Flip to Shh / Double Tap to open Camera / Twist twice in camera for Selfie mode.

and many more that I have missed.

comment 3y ago · link · parent

Try holding the Pixel 7a or a Pixel 6a in a store - the camera bar doesn't jut out much compared to the Pixel 7 / Pixel 7 Pro.

comment 3y ago · link · parent

One of the underrated achaar is Ber ka Achaar or pickled Indian Jujube[1]. It is a perfect spicy blend of sweet, salty, sour and heat. It smells mouth-watering too and is very delectable - you can gorge on them on their own. These days you'd hardly find people who can make it as good as I used to get back in 00's decade.

[1] https://en.wikipedia.org/wiki/Ziziphus_mauritiana

comment 3y ago · link · parent

For a second, ignore Hooks, Signals and Runes, and look at the way Runes were presented in the video "Introducing Runes.. with Rich Harris". You will find this presentation very similar to but much shorter than "React Today and Tomorrow and 90% Cleaner React With Hooks" video. Both of them talk about:

1. primitives for managing state - $state vs useState

2. removal of lifecycle mechanisms - onMount vs componentDidMount

3. replacing lifecycle mechanisms with new primitives - $effect vs useEffect

It's like the Svelte team took a leaf out of React team's book on how to upgrade a framework - this is evident by the way these features are presented as opt-in like how React marketed Hooks as opt-in. I would go on to predict that the upgrade to Runes will just like the upgrade to Hooks. Developers will use it and then love it - because it presents improvements to the way codebases will be structured and maintained just like React did with Hooks. This is really a Hooks moment for Svelte. Good job Rich and the Svelte team!

comment 3y ago · link · parent

You are going to do the same things in a new language whatever you were doing in Python. I understand you are working on web and data science domains.

So I would recommend you check out F# which is like OCaml but runs on the Common Language Runtime. While it is really good on web platform, you might want to investigate the state of data science domain in F#. There are some guides here[1] and here[2].

1. https://fsharp.org/guides/data-science/

2. https://github.com/fsprojects/awesome-fsharp#data-science

comment 3y ago · link · parent

For a fair comparison they should have compared the React JS implementation with Nue.

comment 3y ago · link · parent

Congratulations on reaching 1.0 !

Performance comparisons to Go/Java on the backend would be insightful. Would be interesting to see how close the gap is.

comment 3y ago · link · parent

If the performance improvements are that extensive, it would be interesting to see how close JavaScript + bun would get us to Go or Java on the backend. It would be a game changer if that gap can be closed.

comment 3y ago · link · parent

If the performance improvements are that extensive, it would be interesting to see how close JavaScript + bun would get us to Go or Java. It would be a game changer if that gap can be closed.

comment 3y ago · link · parent

Why would some people get to have a higher budget for CO2 emissions but not others? If you want to say that every drop doesn't count, that's a red flag in your argument and a slippery slope. Inflated per-capita emissions is an indicator of inefficiencies.

comment 3y ago · link · parent

+1 the ReScript compiler is a beast: not only is it fast at generating JS, the JS it generates is optimised for performance[1]. If you are using React, it's better to go for ReScript rather than using Ramda or lodash-fp.

1. https://twitter.com/KrComet/status/1653351666446655488

comment 3y ago · link · parent

That would indeed be a bad look for a Buddhist, to fight such a violent war. Any sources which specifically say he was a Buddhist before the Kalinga war?

comment 3y ago · link · parent

Ashoka was anything but peace-loving before the Kalinga war, the bloodiest war fought on the subcontinent. It was because of this war, Ashoka converted to Buddhism.

comment 4y ago · link · parent

Since these languages target JS runtime, what could be the reason for the increased code size and the increased time for execution? Are there effective strategies one could take to bring the performance closer to vanilla JavaScript?

comment 4y ago · link · parent

Thanks!

28.

Ask HN: What are the skills and/or software(s) required to become an emcee?

5 points · by sprkv5 · 4y ago · 2 comments

comment 4y ago · link · parent

OCaml[1] is what you are looking for. You also might want to look at Roc[2], even though that's not released yet.

1. https://ocaml.org/ 2. https://www.roc-lang.org/

12