I admire people who make projects like this. But it is so alien to me to try making something like a language. What is the motivation, and the goal? Surely it is practically a one-in-a-million chance to actually unseat Python or bash or Lua. I could never really justify using something like Buzz in a professional setting, just because it is too obscure and new. And look - if it is just for the joy of it, I get it! Bu…
Buzz: A lightweight statically typed scripting language
11–20 of 91 posts
Re: Buzz: A lightweight statically typed scripting language
#12In what contexts is this useful? I know it matches some other languages view of `constant`, but I feel that this sort of behaviour is very surprising to a user.
Assuming the following code:
object Person {
str name = "Joe", | Fields can have default values
int age = 35,
}
const me = Person{...}
const [int] list = [4, 5, 6]
In what contexts is it useful to allow the name of `me` to be changed, or the length of the list to be changed, while disallowing the variable to reference a different underlying object?Wouldn't the expectation of a programmer be the other way around? IOW, a symbol that is declared as constant can be a reference to any constant object, so the programmer can always assign that symbol to another constant object, but the objects themselves should not be mutable.
Re: Buzz: A lightweight statically typed scripting language
#13> Objects, list and maps variables are only reference to them. Meaning you can't assign a new list to a constant variable but you can modify the list itself. In what contexts is this useful? I know it matches some other languages view of `constant`, but I feel that this sort of behaviour is very surprising to a user. Assuming the following code: object Person { str name = "Joe", | Fields can have default values int a…
Re: Buzz: A lightweight statically typed scripting language
#14> Objects, list and maps variables are only reference to them. Meaning you can't assign a new list to a constant variable but you can modify the list itself. In what contexts is this useful? I know it matches some other languages view of `constant`, but I feel that this sort of behaviour is very surprising to a user. Assuming the following code: object Person { str name = "Joe", | Fields can have default values int a…
Re: Buzz: A lightweight statically typed scripting language
#15I definitely think there's a need and space for type-safe embeddable scripting languages like this. Lua usually dominates this space but the lack of type-safety always kept me from adopting it wholeheartedly.
With Zig also in the picture, I can totally imagine an ecosystem that uses something like Buzz for scripting the high level parts of an application, Zig for the lower level performance critical stuff, and leveraging interop with the vast abundance of C libraries out there.
Re: Buzz: A lightweight statically typed scripting language
#16Honestly, except for some of the syntactic quirks, this looks fabulous. I definitely think there's a need and space for type-safe embeddable scripting languages like this. Lua usually dominates this space but the lack of type-safety always kept me from adopting it wholeheartedly. With Zig also in the picture, I can totally imagine an ecosystem that uses something like Buzz for scripting the high level parts of an app…
Re: Buzz: A lightweight statically typed scripting language
#17Honestly, except for some of the syntactic quirks, this looks fabulous. I definitely think there's a need and space for type-safe embeddable scripting languages like this. Lua usually dominates this space but the lack of type-safety always kept me from adopting it wholeheartedly. With Zig also in the picture, I can totally imagine an ecosystem that uses something like Buzz for scripting the high level parts of an app…
If you need Lua but also type-safety, how about Luau [1] then? [1] https://luau-lang.org/
Re: Buzz: A lightweight statically typed scripting language
#18Re: Buzz: A lightweight statically typed scripting language
#19I love reading about new languages!! I work with data scientists a lot so I'll probably always use Python professionally, at least for the foreseeable future.
But Python, JavaScript etc are huge languages with massive histories of practical trade offs and compromises. It's always exciting to see what someone's dream language looks like!
Besides, learning languages like Rust and Clojure has taught me a huge amount that's transferable to coding in other languages like Python.
I like the idea of a lightweight json focused / typed scripting language a lot!