Live data from Hacker News

Bog – small, strongly typed, embeddable language

github.com

31–40 of 55 posts

Re: Bog – small, strongly typed, embeddable language

#31
post #8

Pretty interesting. I'm a professional user of Lua, and while I love it, I really get frustrated at a lot of aspects of it, especially how loose the typing is. I've long wished there were more strongly typed alternatives, but just nothing compares to the performance, stability, and quality of documentation of Lua. I'm not sure how I would embed this in a non-Zig project, though.

Curious, if you don't mind, what kind of professional usage with Lua you work on? I was working on some Nginx/Openresty scripting with Lua module to implement kind of web edge service and really liked it.

Re: Bog – small, strongly typed, embeddable language

#32

Love how this language is explained with code only.

Is it just me or is that a terrible “hello world”? I get that they’re trying to illustrate a few features but the whole point of hello world is that it is the absolute most simple program. Why put the string world into a variable named world just to show that you can insert a variable into a string? It looks so confusing.

I read that as "Yes, Bog does formatted strings", and appreciate the density.

Re: Bog – small, strongly typed, embeddable language

#35

Love how this language is explained with code only.

Is it just me or is that a terrible “hello world”? I get that they’re trying to illustrate a few features but the whole point of hello world is that it is the absolute most simple program. Why put the string world into a variable named world just to show that you can insert a variable into a string? It looks so confusing.

[deleted]

Re: Bog – small, strongly typed, embeddable language

#36

Earlier quoted context omitted.

Is it just me or is that a terrible “hello world”? I get that they’re trying to illustrate a few features but the whole point of hello world is that it is the absolute most simple program. Why put the string world into a variable named world just to show that you can insert a variable into a string? It looks so confusing.

I read that as "Yes, Bog does formatted strings", and appreciate the density.

The purpose of a Hello World, however, is not to showcase language features, it’s to provide a minimal program that produces output, to test that your dev environment is working properly, and for you to learn how to operate it. Adding any unnecessary complications to it only adds further sources of error.

Re: Bog – small, strongly typed, embeddable language

#38
post #8

Pretty interesting. I'm a professional user of Lua, and while I love it, I really get frustrated at a lot of aspects of it, especially how loose the typing is. I've long wished there were more strongly typed alternatives, but just nothing compares to the performance, stability, and quality of documentation of Lua. I'm not sure how I would embed this in a non-Zig project, though.

There is Roblox's typed variant

https://luau-lang.org/

Post reply on HN