6 ms·
The Perun2 Programming Language
I'm not the author but found this project interesting:
https://www.youtube.com/watch?v=ilZZHrL4Nd4 https://www.youtube.com/watch?v=ilZZHrL4Nd4
- deleted 3y ago[deleted]
- daviddever23box 3y agoFFS, please change the landing page to indicate that it is Windows-only.
- danpalmer 3y agoThis seems like an extreme reaction. Between the Windows UI and Powershell scripting, it seems fairly clear.
- daviddever23box 3y agoFair enough. Page now reads: "tool for creating filesystem automation plugins on Windows OS". That's all one could ask for.
- daef 3y agopwsh aint windows only thou
- danpalmer 3y agoAnd the linux kernel runs on Windows, but I wouldn't expect this to be on the front page of linux.org. This landing page does a perfectly good job at communicating what it needs to.
- altruios 3y agoWith that said, the feedback (despite the tone) is valid, indicating with words that this programming language doesn't work on anything other than windows is an important feature for the landing page to present. I can see clearly too, that it is for windows by the pictures, but better to say it with words.
- cabalamat 3y agoThere's a bash example on the home page, so it wasn't obvious to me it's windows-only.
- chme 3y agoI think that was pretty clear from the first picture on that page. But there are some empty files for other operating systems in the source: https://github.com/wojfil/perun2/tree/master/src/os https://github.com/wojfil/perun2/tree/master/src/os So support for other systems might be planned.
- lolinder 3y agoThe first words I saw communicated that the language was for "filesystem automation plugins" with an image of a Windows Explorer context menu below, which made it pretty clear which filesystem it was referring to. Then it took me half a second to click the download button and see (above the fold) that, as expected, only Windows was available. The landing page is fine.
- mlv- 3y agoThere's a somewhat similar project that also works on linux https://www.nushell.sh/ https://www.nushell.sh/
- natrys 3y agoIf you are looking for something similar but for other platforms, there is fselect[1]. Can do all that, and tries to adhere to SQL. [1] https://github.com/jhspetersson/fselect https://github.com/jhspetersson/fselect
- smusamashah 3y agoAs a windows user this looks very very useful for a lots of once in a while things for me. First use case I can think of is renaming things which it can do https://perun2.org/docs/corecoms https://perun2.org/docs/corecoms Very useful when you want to manipulate files regularly e.g. renaming/managing (downloaded) images by resolution.
- JohnDeHope 3y agoI think the syntax and numerous keywords are interesting. They have keywords for every weekday, month, unit of time (singular and plural), etc. Most programming languages are proud of how few keywords they have. This means every last damn little thing you want to say has to be said with an enum, static, constant, etc.
- bradrn 3y agoThat sounds quite similar in spirit to Rebol and descendants, which also have built-in datatypes and dedicated syntax for a wide range of things [http://www.rebol.com/r3/docs/datatypes.html http://www.rebol.com/r3/docs/datatypes.html].
- avgcorrection 3y agoI thought the secret sauce for Rebol was that the syntax is so flexible that you can express things like email addresses etc. as seeming “literals”. I.e. you don’t have to wrap everything in strings (and enums and).
- nerdponx 3y agoI thought the trick with Rebol is that it's "stringly-typed" like Tcl, so you can invent whatever syntax you want because it's all just strings anyway.
- avgcorrection 3y agoThere’s a delete statement. I hope the where-clause is mandatory? :)
- jug 3y agoSQL gives you a puzzled look and asks "But why not make it convenient to blow your entire folder?"
- systems 3y agopowershell all the way this is a dsl , compared to the more general powershell cli the file system commmands will sure be shorter or (subjectively) cleaner but at what cost? learning ans mastering pwsh, even if some commands will be longer, is a better investment SQL being extended to become a file system dsl as some data lake solutions do, make more sense
- tgv 3y agoThat might have come in handy a few weeks ago when I found out that you can't copy long file names to an Android device (from Windows). I had to write a Python script to cut the names short and remove certain characters (can't tell precisely which, but I think "Leoš Janáček" caused a problem). It won't be suitable for everything, but it does look practical. PS under Windows 11, the commands are hidden under the "second level" pop-up.
- speps 3y agoOr be a "power user" and restore the old context menu: https://answers.microsoft.com/en-us/windows/forum/all/restore-old-right-click-context-menu-in-windows-11/a62e797c-eaf3-411b-aeec-e460e6e5a82a https://answers.microsoft.com/en-us/windows/forum/all/restor...
- Y_Y 3y agoZip, copy, unzip
- tgv 3y agoDoesn't work. The Android device in question (a Sony Walkman) doesn't expose a file system or a device, only some file transfer protocol. Access to it is some hack in Windows Explorer. And it's the length of the destination path that matters, not the source.
- Am4TIfIsER0ppos 3y agoMTP is such a wonderful innovation. Although being Sony perhaps they invented something even better.
- extheat 3y agoWhy not just use an LLM to generate the code/commands for you? Making a whole new language someone has to learn and memorize special keywords and built-ins doesn't seem too appealing by today's standards.
- nurettin 3y agoIf those commands are sporadic, non-heterogenous and they don't chain well, a language like this can help create the framework to help an llm generate your actions easier.
- mike_ivanov 3y agoIn the powershell example: "Get-ChildItem" o_O Is that .. camel kebab?
- oblio 3y agoWelcome to PowerShell 101, circa 2006, 18 years ago :-)
- pie_flavor 3y agoAll commands have a standard Verb-Noun naming scheme, with a small list of verbs, to ensure their names can be easily guessed. Along with jargon like 'item', if you have never found the command to get a file object from a path, you can already know it is called Get-Item without looking it up.
- rizky05 3y ago[dead]
- kleiba 3y agoUnfortunate choice of name, though - if you append "the nearest bathroom" you get what my little daughter sometimes has to do urgently.
- SomeoneFromCA 3y agoPowershell looks better than Perdun.
- codesnik 3y agomisspelling.. or?
- SomeoneFromCA 3y agoyes, misspelling. meant this: Powershill sounds better than Perdun.
- burjui 3y agoIt's a weak attempt at humor based on the fact that "perdun" means "one who farts" in Russian.