News for hackers. Stuff that matters.
Re:Programming language Dino and its implementation by johnisgood on Thursday June 05, 2025 @04:11PM (#44195346)
I do not know how to interpret the benchmarks. OCaml is really fast, so the numbers do not make sense to me, at a quick glance. Is it worse or better to Python or Ruby according to the benchmark? I would like to see the code, too, because if it is that much slower than Python or Ruby, then there is a serious problem with the implementation.
Re:Programming language Dino and its implementation by extrabajs on Thursday June 05, 2025 @05:01PM (#44195735)
Guessing from the text that they’re running the (interactive) bytecode compiler + interpreter version of OCaml, which is much slower.
Re:Programming language Dino and its implementation by ghurtado on Thursday June 05, 2025 @05:08PM (#44195808)
Feature-wise it looks very complete / modern.

It seems to have a pretty high ratio of "I use X because it's the only one that has Y" type features, all in one place. Very appealing to Python users, since it fills a few well known language gaps.

Re:Programming language Dino and its implementation by 90s_dev on Thursday June 05, 2025 @06:42PM (#44196358)
What do you mean, George?

> It seems to have a pretty high ratio of "I use X because it's the only one that has Y" type features, all in one place.

Re:Programming language Dino and its implementation by ghurtado on Thursday June 05, 2025 @06:52PM (#44196414)
My name is certainly not George :D but I'll pick two features:

- fibers

- advanced pattern matching

These are two not so common language features that are often the differentiator in a class of languages: "I like Python - but Ruby has fibers" or "I like Ruby - but Python has pattern matching"

To see such features all in one language has a lot of appeal (to me, anyway)

Re:Programming language Dino and its implementation by dleslie on Thursday June 05, 2025 @07:39PM (#44196631)
FYI, Janet has fibers and parsing expression grammars. Many scheme implementations also feature some form of pattern matching.
Re:Programming language Dino and its implementation by 90s_dev on Thursday June 05, 2025 @08:17PM (#44196777)
Yeah but Janet is a Lisp. And Lisps are like black coffee.
Re:Programming language Dino and its implementation by dleslie on Saturday June 07, 2025 @11:56AM (#44210467)
... I prefer my coffee black, and I love lisp.

So that tracks.

Re:Programming language Dino and its implementation by riffraff on Friday June 06, 2025 @12:31AM (#44197819)
Is there something missing in ruby's pattern matching? It has subpatterns, alternation, pinning, guards.

I've got limited experience with it but it seems on par with what most languages have.

Re:Programming language Dino and its implementation by fuzztester on Thursday June 05, 2025 @09:20PM (#44197047)
>What do you mean, George?

Home, James.

>https://www.google.com/search?q=home%2C+james

Re:Programming language Dino and its implementation by bravesoul2 on Thursday June 05, 2025 @05:52PM (#44196139)
Cool. A golike from 1993 with a similar name to a certain modern JS runner.
Re:Programming language Dino and its implementation by 90s_dev on Thursday June 05, 2025 @06:47PM (#44196389)
How is it like Go? It seems differenter.
Re:Programming language Dino and its implementation by bravesoul2 on Thursday June 05, 2025 @08:27PM (#44196817)
C-like with slices
Re:Programming language Dino and its implementation by 90s_dev on Thursday June 05, 2025 @09:55PM (#44197197)
Doesn't C have slices but they're just kind of manual and non ergonomic and memory unsafe?
Re:Programming language Dino and its implementation by johnisgood on Friday June 06, 2025 @06:03AM (#44199332)
C has anything we please! :) With a disclaimer or warning at times.
Re:Programming language Dino and its implementation by pjmlp on Friday June 06, 2025 @09:10AM (#44200486)
That would be Oberon-2.
Re:Programming language Dino and its implementation by Lerc on Thursday June 05, 2025 @05:58PM (#44196174)
I was not expecting to feel as sad as I did after seeing the name Animatek after all these years.

If things are hard, seek help, please.

Re:Programming language Dino and its implementation by zem on Friday June 06, 2025 @05:45AM (#44199252)
looks like a very pleasant and capable language! honestly not what I was expecting given the origin story as a game scripting language.
Re:Programming language Dino and its implementation by johnisgood on Saturday June 07, 2025 @02:48PM (#44211679)
By the way, for your other project[1], you might find this one interesting: https://internet-janitor.itch.io/decker. I just found it.

I could not comment there, so I did it here.

Let me know if it helps.

[1] https://news.ycombinator.com/item?id=44042371