Mohit Sindhwani

Work: CTO, Quantum Inventions.
Also: Councillor, ITS Singapore.
Opinions: Own.

Posts: ITS/ Transportation, Ruby, Rails, Windows, Tech, Programming, Life & Oddballs.

Mohit Sindhwanionghu@ruby.social
2026-02-14

@Dendrobatus_Azureus
It's usually the warranty that gets in the way, tbh. That said, I'm a Windows user with Linux in the VM/ Container/ Alt. Boot, so I don't mind either way for now.

Stacksocial sells licenses for US$10 for Win11, if it matters, though 🙂

Mohit Sindhwanionghu@ruby.social
2026-02-14

RE: mastodon.bsd.cafe/@Dendrobatus

Tough! When Lenovo charged everyone for Windwws, people complained that they would have to pay the Windows "tax" even if they intended to use an Open Source OS. OTOH, if they make it an option, they're being greedy.

Anyway, I think the default "no OS" / "open source OS" is probably country specific - we don't get this in Singapore at least.

Mohit Sindhwanionghu@ruby.social
2026-02-14

"The greatest risk a man could take is never to take a risk"
- From Professor T, Season 4 Ep5.

#TV #RandomThoughts

Mohit Sindhwani boosted:
Lucian Ghindalucian@ruby.social
2026-02-04

And the future with libraries like Charm or Ratatui having wrappers for Ruby I think the future to build TUI with Ruby is getting closer.

See more examples here allaboutcoding.ghinda.com/esse

Mohit Sindhwanionghu@ruby.social
2026-02-01

RE: mas.to/@Canadian_Eh/1159933766

The original famous Gosling

Mohit Sindhwani boosted:
2026-02-01

Is there a program that can find every #DLL required by an #EXE, recursively, except DLLs inside C:\WINDOWS, and hardlink/symlink/copy them all into the folder that the EXE is in?

Because the way dxx-redux is doing it right now github.com/dxx-redux/dxx-redux looks fragile af. If any of those DLLs is in a path with a space or newline in it, that script won't work right. Among other issues.

There's gotta be a better way to do this, but I have no idea what.

#programming

Mohit Sindhwani boosted:
Kuba Suder • @mackuba.eu on 🦋mackuba@martianbase.net
2026-01-31

TIL 🫣 #ruby

Me: Is there a "cleaner" way in Ruby to check if a String is valid UTF-8 other than calling e.g. =~ /./ on it and checking for ArgumentError with message "invalid sequence in UTF-8"?

GPT: Yep — there is a cleaner, more explicit, and more Ruby-ish way 🙂
And it doesn’t involve regex abuse or rescuing mysterious ArgumentErrors.

✅ The canonical way

str.valid_encoding?

That’s it. That’s the answer.

Example:

s = "hello"
s.valid_encoding?         # => true

bad = "hello\xFF".force_encoding("UTF-8")
bad.valid_encoding?       # => false

This is *exactly* what it’s for.
Mohit Sindhwanionghu@ruby.social
2026-01-31

@kerrick looks cool, great work!

Mohit Sindhwani boosted:
Kerrick Long (code)kerrick@ruby.social
2026-01-31

Is that Tauri, running a Roda app locally as a desktop app without exposing it to TCP?

Almost! It's my experimental Ruby port of Tauri... Tokra!

Write desktop software in Ruby, with an HTML and CSS interface. You can use JS frameworks, too. Plus: it's Rack-compatible!

Rubygem: rubygems.org/gems/tokra
Code: git.sr.ht/~kerrick/tokra/tree/

#ruby #rust #tauri #tokra #desktop #software #programming #gui #webdev #html #css #javascript #FreeSoftware #OpenSource #PreRelease #PreAlpha #SeriouslyNotFinished

An application called "Tokra Ping-Pong" shows a Verification Test. The message from ruby says: "Who helped the Tau'ri fight the system lords?" This message matches the command line argument the ruby app was launched with. The form beneath that question has "The Tok'ra!" filled in, and three buttons: Send IPC, Submit form, and POST to API. Success messages are visible.

In the terminal behind the native app web view, the ruby command used to launch the app is visible, along with its debug output. You can see that each button has been clicked, with three different answers: "The Tok'ra!" was sent via IPC, "Bra'tac" was sent via form, and "The Asgard" was sent via the API. You can also see that the application is a Roda app.
Mohit Sindhwanionghu@ruby.social
2026-01-28

@mfowler
Whenever everything is bold, nothing is bold.

Mohit Sindhwani boosted:
2026-01-25

Żmij 1.0 released: a C++ double-to-string library delivering shortest correctly-rounded decimals ~2.8–4× faster than Ryū

programming.dev/post/44516189

Mohit Sindhwanionghu@ruby.social
2026-01-20

@robbyrussell
"Not every code gets to live long enough to be legacy code"

Mohit Sindhwanionghu@ruby.social
2026-01-20

@elaine
You're right, it will be solvable. I just feel that the innovation that came from people having access to computing personally did a lot.

Of course, I suffer from nostalgia bias 😂

Mohit Sindhwanionghu@ruby.social
2026-01-19

@elaine ya, the death of acceptable consumer HW is my worry

Mohit Sindhwanionghu@ruby.social
2026-01-19

@aa Ya, that's what I fear.. People being priced out of the market, in a manner of speaking

Mohit Sindhwanionghu@ruby.social
2026-01-19

I fear the ongoing crisis in DRAM & SSD prices threatens *personal* computing & related innovation at a great scale cos "cloud" isn't a real option IMO. We can't know outcomes of parallel hypotheticals but I think it'll do long-term damage 😞 esp in developing economies

#RandomThoughts #Tech

Mohit Sindhwanionghu@ruby.social
2026-01-16

@aa
Ah, I see.. That makes sense then

Mohit Sindhwanionghu@ruby.social
2026-01-16

@ilikepi
Took me more than a few min to debug this because I just assumed wrongly.

Mohit Sindhwani boosted:
James Blandingilikepi@ruby.social
2026-01-16

@onghu Huh, yeah even that short sentence is somewhat ambiguous without also looking at the example. It does kind of feel like this should be the !-version of separate method that returns a new object.

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst