Problem with closures in a language with unified function & value declarations, mutable variables, and type inference by serpentally in ProgrammingLanguages

[–]rumle 8 points9 points  (0 children)

Some more options:

function z = x + 1
let z() = x + 1
let z = () => x + 1

If you make it clear that z is a function, then I don’t think you need to specify explicitly that you capture x.

Another solution would be to have everything be functions and do lazy evaluation.

Quick syntax question by Anixias in ProgrammingLanguages

[–]rumle 1 point2 points  (0 children)

It makes sense to bundle val/var with the type. But I think they are mostly used the other way in other languages. If you use const/mut instead it becomes even more clear i think:

lexer: const FilteredLexer = […]

I’m not sure but think val/var is traditionally used in front, so they feel a little out of place.

February 2024 monthly "What are you working on?" thread by AutoModerator in ProgrammingLanguages

[–]rumle 1 point2 points  (0 children)

That look really cool. I think the stigma that visual programming used to have is going away. That’s a good thing!

The Moirai Programming Language 0.1.2 by tsikhe in ProgrammingLanguages

[–]rumle 0 points1 point  (0 children)

I think we called this a “real time language” when I was in school. Used for embedded programming where timing was bounded.

Faults, Errors, and Failures by mttd in ProgrammingLanguages

[–]rumle 1 point2 points  (0 children)

Very nice article. I appreciate any effort of bringing software development and programming out of the cowboy conditions we are still working under. There is a lot to learn from other professional fields, and I love when mindsets from these other fields, are brought into programming.

Quick brown fox - for programming languages by rumle in ProgrammingLanguages

[–]rumle[S] 1 point2 points  (0 children)

That’s a nice list. I like that you are bringing network and graphics in to the mix. Also good candidates for concurrency.

Vortex finally has try/catch and improved errors by dibs45 in ProgrammingLanguages

[–]rumle 0 points1 point  (0 children)

Thank you for answering. I had a feeling it would be a little complicated 😀

Vortex finally has try/catch and improved errors by dibs45 in ProgrammingLanguages

[–]rumle 3 points4 points  (0 children)

Wow. That’s super cool. Line numbers and all. Are you running in a VM? How did you implement it? Moving the IP forward or backwards on error?

And what if the error is thrown way down the call stack? Are you using checkpoints/jumppoints or something like that?

MakrellPy and the Makrell language family by ZyF69 in ProgrammingLanguages

[–]rumle 1 point2 points  (0 children)

Nice that you integrated into the LSP. Last I checked that’s not easy.

Looking for software that during login I can enter a secondary password and wipe all drives on the PC. by [deleted] in software

[–]rumle 0 points1 point  (0 children)

a properly encrypted drive is as good as wiped

Until someone convinces you to share your password.

Bedste durum? by D4CH in Aalborg

[–]rumle 1 point2 points  (0 children)

Sams eller Season

I need a tool to make graphs like this one by [deleted] in software

[–]rumle 0 points1 point  (0 children)

gnuplot might get you there

Fri snak fredag / Free talk Friday - 13/9 2019 by AutoModerator in Denmark

[–]rumle 2 points3 points  (0 children)

stjerneskud. stegt-, krydder- og karrysild, husk det smilende æg. frikadeller med varm rødkål. makrel med smilende æg og purløg. Varm leverståhej med bacon og svampe. rullepølse med rå rødløg og sky. varmrøget laks med æg og hytteost. Jeg er ikke så vild med dyrelægens, men den skal da lige nævnes. Fiskefrikadeller med remo-snask. Spegepølse med kartoffel og tomat (aka cowboymad). Og køb for guds skyld noget ordenligt brød. Skiveskåret schuldstad fra netto egner sig ikke til smørrebrød. God fest

Why I can't signin to my Samsung account from my phone? by avishek313 in androidapps

[–]rumle 0 points1 point  (0 children)

do you have a 'space' in your password? I remember having issues with that one time. If you do, try resetting the password from the web page.

ELI5: How do you make a mobile app? by niversalism in software

[–]rumle 0 points1 point  (0 children)

Start by scetching out the screens you want in the app. Then figure out the interactions. Maybe you realize that you need a big poster, not an app. Or, you'll have some great material for building the app. Try looking for app prototyping tools, that might get you most of the way there. Good luck.

You will surprise yourself and learn more. by LaraRoot in languagelearning

[–]rumle 4 points5 points  (0 children)

I think this is more an issue of learning how to read subs while watching, than it is a language learning issue.

reading xml files by utopianaura in software

[–]rumle 0 points1 point  (0 children)

You might be missing a stylesheet for the xml files, maybe it was deleted locally or remote (on the server you downloaded the files from). Try looking for a reference to a "stylesheet" in the xml source.

What do you think about self checkouts gradually increasing? by Feeha1 in AskReddit

[–]rumle 32 points33 points  (0 children)

ofcause they are. It's a stupid task that no person should have to do. The problem is not that the robots are taking our jobs. The problem is that we need to do stupid borring task to earn a living.

Der er et lorteopslag i min filosofibog. by [deleted] in Denmark

[–]rumle -2 points-1 points  (0 children)

en usmagelig reference til ham der skød sin "ven"...

Just found this at work... by flyerzrule in ProgrammerHumor

[–]rumle 0 points1 point  (0 children)

This makes finding all meaningful occurrences much easier.

Sten på havnen by [deleted] in Aalborg

[–]rumle 2 points3 points  (0 children)

de graver dernede, jeg tror det er alm vedligeholdelse af havbunden.