FλL-D1 | Ningen (人間) (@F2aldi)

Go, WASM, ReScript로 이미지 압축기를 재구현했다는 게시물입니다. 개발자는 MiniMax_AI와 cursor_ai로 작업했으며 leerob의 작업을 재현하려고 시도했다고 밝혔습니다. 아직 약간 버그가 있지만 PNG와 JPG 압축이 동작하며, 압축 알고리즘 학습과 WebAssembly 기반 응용 사례를 보여주는 프로젝트입니다.

https://x.com/F2aldi/status/2008463379959103849

#wasm #imagecompression #golang #rescript #minimax_ai

FλL-D1 | Ningen (人間) 🍉 (@F2aldi) on X

I recreated an image compressor using Go, WASM, and ReScript! 🛠️ Built with @MiniMax_AI and @cursor_ai. I wanted to see if I could replicate @leerob work. I’ve learned so much about compression algorithms in the process. It's still a bit buggy, but it works for PNGs and JPGs!

X (formerly Twitter)
After listening to an episode of the excellent Developer Voices podcast (hosted by @krisajenkins) about #ReScript, I noticed that ReScript didn’t have its own Wikipedia article. So I created one: https://en.wikipedia.org/wiki/ReScript_(programming_language)
ReScript (programming language) - Wikipedia

ReScript 12 ra mắt hệ thống build mới, xây dựng bằng Rust, hỗ trợ theo dõi phụ thuộc thông minh, build tăng lượng nhanh hơn và hỗ trợ monorepo. Hệ thống này giảm công việc dư thừa, tăng độ chính xác khi rebuild và tối ưu hóa cấu hình đa package.

#ReScript #CôngNghệ #LậpTrình #JavaScript #Monorepo #BuildSystem

https://www.reddit.com/r/programming/comments/1pnlk3k/reforging_the_rescript_build_system/

ReScript 12 ra mắt với hệ thống build mới, thư viện chuẩn cải tiến, cải thiện cú pháp và tính năng như Dict Literals, kiểu ghi lồng, mô hình JSX, regex, và let?. #ReScript #12 #Lập trình #TechNews #ViệtNamTech

https://www.reddit.com/r/programming/comments/1pj34s7/announcing_rescript_12/

Announcing ReScript 12

https://mander.xyz/post/42853906

Announcing ReScript 12 - Mander

Lemmy

I don't really understand why use #rescript: some features like ADTs, pipes, records and a sane type system are fantastic! However I'm really offput by float operators and the need to constantly refer to the Class for methods:

Rescript:
```
let result = [1, 2, 3]
->Array.map(a => a + 1)
->Array.filter(a => mod(a, 2) == 0)
```

Js:
```
let result = [1, 2, 3]
.map(a => a + 1)
.filter(a => mod(a, 2) == 0)

```

Yeah you can be a functional purist but this code is just wordier for no reason

I don't really understand why some #programming languages decide to add a completely different set of operators just for floats.

Like this: +. -. *. /.

why? the logic to type check whether both sides are float is so easy.

This is just a dumb decision in my view. Please prove me wrong.

#rescript #ocaml

I think my biggest frustration with #Rescript (which is why I'll probably rip it out of my pet project) is trying to translate all the #Typescript types into it.

I'm not sure if Rescript's types (which are basically #OCaml's types?) are less powerful per se, but it definitely feels like it. Maybe due to my inexperience with both.

Any Rescript/Vue enthusiasts willing to roast my code?

It's a very incomplete attempt to bridge Vue 3's composition API to Rescript.

https://gitlab.com/-/snippets/4843469

#Rescript #vue #VueJS

With the "magic" of imports and spending quite a while translating Vue's types to Rescript's, I managed to get them working together!

#Rescript #Vue #VueJS #Vue3