[HN Gopher] Perun2 Programming Language
___________________________________________________________________
Perun2 Programming Language
I'm not the author but found this project interesting:
https://www.youtube.com/watch?v=ilZZHrL4Nd4
Author : mlv-
Score : 79 points
Date : 2024-02-12 23:55 UTC (23 hours ago)
(HTM) web link (perun2.org)
(TXT) w3m dump (perun2.org)
| daviddever23box wrote:
| FFS, please change the landing page to indicate that it is
| Windows-only.
| danpalmer wrote:
| This seems like an extreme reaction. Between the Windows UI and
| Powershell scripting, it seems fairly clear.
| daef wrote:
| pwsh aint windows only thou
| danpalmer wrote:
| And 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 wrote:
| With 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 wrote:
| There's a bash example on the home page, so it wasn't obvious
| to me it's windows-only.
| chme wrote:
| I 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
|
| So support for other systems might be planned.
| lolinder wrote:
| The 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- wrote:
| There's a somewhat similar project that also works on linux
| https://www.nushell.sh/
| natrys wrote:
| If 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
| smusamashah wrote:
| As 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
|
| Very useful when you want to manipulate files regularly e.g.
| renaming/managing (downloaded) images by resolution.
| JohnDeHope wrote:
| I 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 wrote:
| That 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].
| avgcorrection wrote:
| I 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).
| bradrn wrote:
| Yes, that's the approach it takes -- having an unusually
| large range of literal syntax. That's different to what
| Perun2 seems to do, but it's still 'similar in spirit' like
| I said.
| nerdponx wrote:
| I 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.
| elbear wrote:
| I had forgotten about this language. I think the Red language
| is a descendant.
| jug wrote:
| Brings my thoughts to Visual Basic myself. That's one keyword
| ridden language! It's funny... The initial learning curve may
| be smooth in that language "because English" but then you have
| to remember how all the statements need to be written in
| exchange.
| fuzztester wrote:
| iirc F# has units of measure too.
| avgcorrection wrote:
| There's a delete statement. I hope the where-clause is mandatory?
| :)
| jug wrote:
| SQL gives you a puzzled look and asks "But why not make it
| convenient to blow your entire folder?"
| systems wrote:
| powershell 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 wrote:
| That 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 "Leos Janacek" 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 wrote:
| Or be a "power user" and restore the old context menu:
| https://answers.microsoft.com/en-us/windows/forum/all/restor...
| Y_Y wrote:
| Zip, copy, unzip
| extheat wrote:
| Why 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 wrote:
| If 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 wrote:
| In the powershell example:
|
| "Get-ChildItem" o_O
|
| Is that .. camel kebab?
| oblio wrote:
| Welcome to PowerShell 101, circa 2006, 18 years ago :-)
| pie_flavor wrote:
| All 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.
| kleiba wrote:
| Unfortunate choice of name, though - if you append "the nearest
| bathroom" you get what my little daughter sometimes has to do
| urgently.
| dzidol wrote:
| Would you say similar about Allah4, given it existed? :)
| SomeoneFromCA wrote:
| Powershell looks better than Perdun.
| codesnik wrote:
| misspelling.. or?
| SomeoneFromCA wrote:
| yes, misspelling. meant this:
|
| Powershill sounds better than Perdun.
___________________________________________________________________
(page generated 2024-02-13 23:01 UTC)