Better HN
topnewbestaskshowjobs
Log inSign up

nithinbekal

480 karma · joined Dec 17, 2010 (15y ago) · 100 submissions

Blog: https://nithinbekal.com/

Github: https://github.com/nithinbekal

Submissions

comment 6mo ago · link · parent

I've been having a lot of fun building my own programming language [1]. Getting to the point where you can write programs in your own language was surprisingly easy.

The language, Sapphire, is Ruby inspired, so the most interesting part is digging into the internals of the latter when I'm trying to figure out how something should work.

[1] https://github.com/sapphire-project/sapphire

comment 7mo ago · link · parent

A Ruby-inspired typed programming language called Sapphire: https://github.com/sapphire-project/sapphire

I was reading the fantastic Crafting Interpreters book, and been wondering what it would be like to design a language from scratch. I really enjoy using Sorbet with Ruby, so wanted to design a small language with Ruby's object model, and a gradual type system.

Despite not knowing much programming language theory, I was able to make a surprising amount of progress over a couple of weekends using Claude Code, including building a simple version manager for the language - https://github.com/sapphire-project/facet

comment 10mo ago · link · parent

Thank you!

comment 10mo ago · link · parent

Blog: https://nithinbekal.com/

Photography: https://photos.nithinbekal.com/

Directory of free technical books: https://devlibrary.org/

comment 11mo ago · link · parent

> Four hundred and sixty books is not a scale problem. Knowing when to delete working code is not something an AI can decide for you.

This is such a key thing I remind myself when I build apps like this for myself. I have a similar app that has a page with 900-odd ratings, and another with 550 owned books. I decided that I won't bother with infinite scroll or complex search and filtering until my browser can no longer handle rendering that data. "Find in page" works well enough for me for now.

6.

What's New in Ruby 4.0(nithinbekal.com ↗)

5 points · by nithinbekal · 11mo ago · discuss

7.

What's New in Ruby 4.0(nithinbekal.com ↗)

5 points · by nithinbekal · 11mo ago · 1 comment

comment 1y ago · link · parent

Sorbet now supports inline RBS signatures, which I find a lot more readable. If you use VS code with Ruby LSP, the syntax highlighting is pretty great for the signatures too.

https://sorbet.org/docs/rbs-support

comment 1y ago · link · parent

I replaced it with a tiny app that I built for myself, that just has the features of Pocket that I was using.

https://bukmark.me/

10.

What's New in Ruby 3.4(nithinbekal.com ↗)

3 points · by nithinbekal · 1y ago · discuss

11.

What's New in Ruby 3.4(nithinbekal.com ↗)

2 points · by nithinbekal · 1y ago · discuss

12.

Rails 8.0.0.beta1 Released(github.com ↗)

3 points · by nithinbekal · 2y ago · discuss

comment 2y ago · link · parent

Wouldn't that be too similar to NoMethodError? I recently came across the idiom in Smalltalk, where you would call subclassResponsibility:

    someMethod:
      self subclassResponsibility
I've suggested the name in the ruby bug tracker issue here:

https://bugs.ruby-lang.org/issues/18915

14.

Abstract Methods and NotImplementedError in Ruby(nithinbekal.com ↗)

52 points · by nithinbekal · 2y ago · 25 comments

15.

Numeric operations on value objects in Ruby(nithinbekal.com ↗)

4 points · by nithinbekal · 2y ago · discuss

16.

Long exposure images from videos(nithinbekal.com ↗)

23 points · by nithinbekal · 2y ago · 3 comments

17.

What's New in Ruby 3.3(nithinbekal.com ↗)

5 points · by nithinbekal · 2y ago · discuss

comment 3y ago · link · parent

That's from 6 years ago. Shopify has used Rails' main branch since 2019.

https://shopify.engineering/living-on-the-edge-of-rails

comment 3y ago · link · parent

Yes, you can with irb:debug, which you can enter by typing debug one you're inside a binding.irb session.

comment 3y ago · link · parent

While this was true for a long time, Ruby's built in irb and debug gems have improved dramatically in the past couple of years. To the point that I've switched to them from pry+byebug that I've been using for years.

21.

Ruby 3.3's YJIT Runs Shopify's Production Code 15% Faster(railsatscale.com ↗)

175 points · by nithinbekal · 3y ago · 154 comments

comment 3y ago · link · parent

There are plans to introduce type system into Elixir:

https://elixir-lang.org/blog/2023/06/22/type-system-updates-...

comment 3y ago · link · parent

> type mismatch errors at runtime that could have been caught at compile time

It's still early, but there are plans to introduce a type system for Elixir:

https://elixir-lang.org/blog/2023/06/22/type-system-updates-...

24.

It doesn’t take much public creativity to stand out as a job candidate(simonwillison.net ↗)

280 points · by nithinbekal · 3y ago · 378 comments

25.

Garbage Collection in Ruby(blog.peterzhu.ca ↗)

4 points · by nithinbekal · 3y ago · discuss

26.

Making Sorbet compatible with Ruby 3.2(railsatscale.com ↗)

2 points · by nithinbekal · 3y ago · discuss

comment 3y ago · link · parent

A much simpler alternative to this is kickstart.nvim. My approach to customizing my neovim config was to use kickstart as a reference, and slowly add things that I needed.

https://github.com/nvim-lua/kickstart.nvim

comment 3y ago · link · parent

I started writing my blog as a devlog for myself refer to later, and didn't expect anyone else to care. However, it eventually let to a job interview that in turn led to my current job.

The team I joined worked on a Ruby codebase, and there were people with background in other languages, where method visibility worked differently. A short post I wrote [1] was being shared around in the team, and the manager decided to interview me.

Funnily enough, that same post was quoted to me by a colleague during a code review a few months later! So it turned out that it's still working as intended - as a reference for myself. :)

[1] https://nithinbekal.com/posts/ruby-protected-methods/

comment 3y ago · link · parent

https://nithinbekal.com/

My random notes about programming, primarily about Ruby and Rails.

Built with Jekyll, and hosted on Github pages. Source can be found here:

https://github.com/nithinbekal/nithinbekal.github.io/

30.

What Being a Staff Developer Means at Shopify(shopify.engineering ↗)

2 points · by nithinbekal · 3y ago · discuss

1234