News for hackers. Stuff that matters.
Re:Gliimly is a programming language for web services by duskwuff on Friday November 15, 2024 @05:01PM (#42151668)
There's a more extensive worked example at:

https://gliimly.blogspot.com/2024/11/multi-tenant-saas-notes...

And, at a glance, I see:

- HTML output being constructed by string concatenation.

- SQL queries being constructed by what looks like sprintf.

- No functions, just HTTP handlers, some of them marked as "private".

- No expression system, just non-composable commands like "hash-string" or "match-regex".

- No evidence of an object or class system.

- Some evidence of filenames with 'magical' behavior like "before-handler.gliim".

None of this fills me with confidence. This is a toy at best.

Re:Gliimly is a programming language for web services by benatkin on Friday November 15, 2024 @06:01PM (#42152266)
It's a lot like https://hurl.dev/ or https://jqlang.github.io/jq/ - it's an intentionally limited DSL.

I think if it were more like https://hurl.dev/ I might find it slightly more interesting.

Re:Gliimly is a programming language for web services by thephyber on Friday November 15, 2024 @07:21PM (#42152927)
The criticism wasn’t only about how limited the DSL was — it was about how some of the design choices are repeating patterns which are very common sources of security defects. HTML and SQL are DSLs themselves and have non-trivial security contexts.
Re:Gliimly is a programming language for web services by duskwuff on Friday November 15, 2024 @11:05PM (#42154066)
> it's an intentionally limited DSL.

That isn't the sense I get from the example. It shows an entire user-facing web application being written in this language, with every indication that the author thinks this is an appropriate use case.

Re:Gliimly is a programming language for web services by Terretta on Saturday November 16, 2024 @08:45AM (#42156376)
About that: https://gliimly.github.io/about-gliim.html

Modeling language

Gliimly is a very high-level modeling language. It's about solving problems by modeling the solution and connecting the components to create high-performance, low-footprint executables; and not about managing memory, manipulating bits and bytes or writing complex code.

Syntax matters

Syntax of a language matters, not just for writing code now, but for someone else reading it years later. Gliimly language is designed to be intuitive, easy and rapid in use on both ends, and to be close to the way humans are wired, rather than machines.

Language

Gliimly programming language is memory-safe, meaning it will prevent you from accidentally overwriting memory or freeing it when it shouldn't be. Gliimly's memory-handling is not limited to just memory safety; it also includes automatic freeing of memory at the end of a request, preventing memory leaks which can be fatal to long running processes. Similarly, files open with file-handling statements are automatically closed at the end of each request, serving the same purpose.

Types

Gliimly is a strongly-typed language, with only three primitive types (numbers, strings and booleans) and a number of structured types (message, split-string, array, index, index-cursor, fifo, lifo, list, file and service). Gliimly is a declarative language, with a few lines of code implementing large functionalities. Gliimly is also very simple - it does not even have expressions! That's because it's designed to achieve application goals with less coding.

Statements (see also https://gliimly.github.io/statements.html)

Gliimly statements are designed for safety, ease of use, and ability to write stable code. Most statements typically perform common complex tasks with options to easily customize them; such options are compile-time whenever possible, increasing run-time performance.

Re:Gliimly is a programming language for web services by benatkin on Saturday November 16, 2024 @06:00PM (#42160247)
Yeah I meant that in a good way. You can build powerful stuff with a DSL that doesn't include the normal imperative programming constructs that most general purpose programming languages, but also some specialized programming languages like bash, include. jq is a nice alternative to python for sifting through JSON for many things.

I think glimly is an interesting project but I wonder why they don't use something like mustache ({{ param1 }} for escaped and {{{ param2 }}} for unescaped) instead of p_web

Re:Gliimly is a programming language for web services by darwin11 on Sunday November 17, 2024 @11:28PM (#42169716)
It's interesting, something to look into. It's not a general purpose language, true, and I think that's a good thing. General purpose languages are too broad for the topic of web services. It's like when SQL came out long ago to make database programming specialized. I think we need something like that for web services, and Gliimly may be a good step forward.
Re:Gliimly is a programming language for web services by 1oooqooq on Saturday November 16, 2024 @10:02AM (#42156761)
from the main doc, I don't think this is the intended use case.

it is about apis, not html.

it is about chaining webservice calls, not using sql.

it's for business logic, not generic programming needing classes

my guess is that this wants to be the excell of the aws era.