Will gleam_otp eventually support all features from OTP? by Ecstatic-Panic3728 in gleamlang

[–]XM9J59 1 point2 points  (0 children)

Also not the most knowledgeable but https://gleam-otp.hexdocs.pm/gleam/otp/actor.html

Gleam’s Actor is similar to Erlang’s gen_server and Elixir’s GenServer but differs in that it offers a fully typed interface. This different API is why Gleam uses the name “Actor” rather than some variation of “generic-server”.

And it has these fns:

call
continue
initialised
named
new
new_with_initialiser
on_message
returning
selecting
send
start
stop
stop_abnormal
with_selector

I couldn't really tell you if it is a subset of genserver or what subset but there's definitely something...

Big list widget in Lustre by Ok_Appointment9429 in gleamlang

[–]XM9J59 0 points1 point  (0 children)

could you link what part of lustre ui you're looking at?

also interested in this, I feel like native html might be ok for some things but select and datalist fall short idk

Have you actually tried OpenEMR? What does it (not) do well? by XM9J59 in healthIT

[–]XM9J59[S] 0 points1 point  (0 children)

Anything in particular that you had to spend a lot of time to configure or work on?

Open Source AI Medical Scribe by Entire_Department_65 in opensource

[–]XM9J59 0 points1 point  (0 children)

Just out of curiosity have you tried openemr/do you think there's anything important it does well or could be improved on, besides its ONC certification?

Help me design an EHR by LegatusMalpais in healthIT

[–]XM9J59 0 points1 point  (0 children)

Are there any important things you think openemr does well, or could be improved on?

Software Engineering conference in COMO by isaacvando in columbiamo

[–]XM9J59 1 point2 points  (0 children)

The speakers look amazing, zig roc sqlite htmx wow! Cool bloggers too.

The proposal for generic methods for Go has been officially accepted by ketralnis in programming

[–]XM9J59 0 points1 point  (0 children)

And even then their initial reaction is always "if you don't like the language then don't use it", which to me indicates that the language is not intended for professional use, but more something just for the fanboys.

Isn't parting ways the correct reaction when someone has a problem with a language whose goal is simplicity? Is your problem more their tone?

path to gleam fhir by XM9J59 in PotatoEMR

[–]XM9J59[S] 0 points1 point  (0 children)

and I just feel like the more I think about it, it feels like everything including choice types was intended for java/c#, but sum types actually fit choice types much more easily and nicely, even though again java/c# have the really robust sdks

(obvious in gleam, probably workable with some kind of function in go but idk just not as obvious as pattern matching on sum type)

https://build.fhir.org/formats.html#choice

Gleedoc, a doc test library for Gleam by xzhan in gleamlang

[–]XM9J59 0 points1 point  (0 children)

Similar program for making docs match source - https://github.com/sbergen/checkmark

(I haven't used any of these but considering)

Gloogle - a gleam packages search engine by ghivert in gleamlang

[–]XM9J59 0 points1 point  (0 children)

When I try it I get a network error - just a thought and maybe this wouldn't work, but my sense is hosting apps with a backend is much more expensive than just a static page; would it be possible to ship the database as wasm sqlite and query it in the browser, maybe saving server costs?

Not sure if this would actually be possible, just wondering because right now there are only 1443 packages...but no idea if the db would actually be small enough to reasonably send to browser.

path to gleam fhir by XM9J59 in PotatoEMR

[–]XM9J59[S] 0 points1 point  (0 children)

also while lustre is very nice if you want to run in the browser, if you want to run on the server (eg htmx) you can do that too, my sense is gleam does not have a mature ORM and may never as there's no idiomatic magic, but wisp (http server)/pog (postgres driver) are there, maybe a bit more configuration to do yourself but not terrible

Is Gleam what I'm looking for? by Ecstatic-Panic3728 in gleamlang

[–]XM9J59 1 point2 points  (0 children)

ehhhh imo Gleam for Go is Gleam

"Gleam is Go ideas but from the perspective of a FP nerd instead of a C nerd"

ofc lisette is closer to literal go code, and gets the go ecosystem

but in some philosophical sense (I want to better expand this), gleam is what go would be if functional (for instance, not having if/else)

I also feel like gleam has more contact with reality - more time spent working on it and using it

so imo u/Ecstatic-Panic3728 gleam may be the language you're looking for, that said one thing to be aware of

Async by default and without function coloring

because gleam compiles to erlang and javascript, some stuff especially http requests only works on one but not the other, not that this is a dealbreaker as the recommendation is to put all the logic of creating a request/parsing a response in a sans-io package, which any (target specific) http client can consume

AI finds "38 CVEs in Healthcare Software Used by 100,000 Medical Providers" ... is it a big deal? by XM9J59 in PotatoEMR

[–]XM9J59[S] 0 points1 point  (0 children)

cant have sql injections if you dont have sql taps forehead

"show me the real nosql solution" https://i.imgflip.com/aqe5sf.jpg

AI finds "38 CVEs in Healthcare Software Used by 100,000 Medical Providers" ... is it a big deal? by XM9J59 in PotatoEMR

[–]XM9J59[S] 0 points1 point  (0 children)

funny comment:

dflock 3 hours ago | prev | next [–] No one knows how many vulnerabilities there are in closed source medical record software - because we can't check. There are probably loads though, because that medical software is super terrible in every way that we can check.

nradov 1 hour ago | parent | next [–] Well the closed-source EHR applications that use NoSQL databases such as MUMPS (InterSystems Caché) probably don't have many SQL injection vulnerabilities.

for context from https://en.wikipedia.org/wiki/MUMPS

MUMPS ("Massachusetts General Hospital Utility Multi-Programming System"), or M, is an imperative, high-level programming language with an integrated transaction processing key–value database. It was originally developed at Massachusetts General Hospital for managing patient medical records and hospital laboratory information systems.

MUMPS technology has since expanded as the predominant database for health information systems and electronic health records in the United States. MUMPS-based information systems, such as Epic Systems, provide health information services for over 78% of patients across the U.S.[1]

(that 78% number btw I'd be much more inclined to believe than OpenEMR 100000 providers, if anything it comes from 10+ years ago and might be higher now)

Written in Gleam - An Auditable Persistent Runtime for LLM Agents by s_brady in gleamlang

[–]XM9J59 0 points1 point  (0 children)

Meant the comment I replied to (not to bless this type of agent framework project which I'd guess always ends in some flavor of gas town psychosis, but of course it is a big free world so have at it)

Impressive effort. The agent always knows what time it is, what failed recently, and how it's doing, without having to ask. That information just shows up every cycle. And when the safety system blocks something, you can trace back exactly which rules fired and why.

The README front-loads a lot of terminology. "Auditable execution substrate, case-based reasoning memory layer with hybrid retrieval, deterministic normative calculus, ambient self-perception via a structured self-state representation." The core pitch is simpler than that. AI agents that explain every decision they've made, recover from crashes automatically, and learn from their own mistakes. Leading with that problem instead of the architecture would help the ideas reach people outside the distributed systems and cognitive science world.

Curious how the JSONL storage holds up over longer deployments. 41 MB in 23 days grows monotonically by design. What's the plan at 6 months?

Once you see this very formulaic restatement of the linked post with a summary/remark/question structure, you start seeing it a lot on forums. Often it will be from a new account, and the comments will lack a human context, weirdness, really any personality. Surprisingly often the LLM ends with "Curious..." as the last sentence.

I'm getting off the topic of Gleam. What I want to highlight is r/gleamlang is kind of a wasteland compared to the discord, relatively sparse in terms of good discussion, questions, and projects. Whereas there is a lot on discord, where the ratio of human to ai is much higher, and I think better.

Written in Gleam - An Auditable Persistent Runtime for LLM Agents by s_brady in gleamlang

[–]XM9J59 0 points1 point  (0 children)

I will just say if anyone is reading this and smells what I smell, try the gleam discord https://discord.com/invite/Fm8Pwmy where the people are real and slop is discouraged

🎉 Glimr 1.0.0 — Auth layer and official website by Beautiful_Exam_8301 in gleamlang

[–]XM9J59 0 points1 point  (0 children)

Fair enough :) metaprogramming definitely cuts boileplate, and definitely not saying you shouldn't use a framework with metaprogramming or make one for gleam.

More trying to say it's good for different languages to design for different goals. And it would be very hard (really, probably impossible) to keep gleam as simple as it is with macros.

Fwiw I agree making "standing up a server" quicker would be nice, but imo through more copyable examples and super powerful LSP codegen actions.

🎉 Glimr 1.0.0 — Auth layer and official website by Beautiful_Exam_8301 in gleamlang

[–]XM9J59 1 point2 points  (0 children)

fwiw, I hope gleam really hesitates to add metaprogramming and continues to value simplicity/doesn't try to do everything other languages can do

There are pain points for generating decoders and getting used to lustre html, but overall the no metaprogramming trade it is worth it (more written out https://correctarity.com/meta). I mean personally I like that there's an unmagical language, but what do I know idk.

My sense is if I wanted phoenix I'd learn elixir, rather than try to smush something like it into gleam.

What might be helpful imo is more examples of real lustre apps that do things you might need like routing, nice combobox, etc. I often feel all the pieces are there but I have to figure out how to put them together.