News for hackers. Stuff that matters.
Re:Velato: A programming language where source code must be ... by throwaway0665 on Monday March 04, 2024 @07:45AM (#39589771)
Perhaps it is impossible but I'd love to see a Quine in this language
Re:Velato: A programming language where source code must be ... by Y_Y on Monday March 04, 2024 @07:57AM (#39589894)
I believe all but severely limited languages are forced to admit quines, see e.g. https://math.stackexchange.com/questions/3982278/the-fixed-p...
Re:Velato: A programming language where source code must be ... by xpointer on Monday March 04, 2024 @09:00AM (#39590566)
Hi, I'm the creator of Velato. I will be reworking the website to include more examples later this year. In the mean time, the latest version of the compiler is on github: https://github.com/rottytooth/Velato

No one has yet written a quine although I would love to see one -- perhaps outputting its representation in lilypond format.

Re:Velato: A programming language where source code must be ... by Rochus on Monday March 04, 2024 @09:25AM (#39590865)
Since you're the author I can ask you directly, what the purpose is of the language. Why did you choose MIDI as a form of representation? What kind of programs are you implementing with it? Where are these programs supposed to be executed, on MIDI instruments?
Re:Velato: A programming language where source code must be ... by xpointer on Monday March 04, 2024 @10:56AM (#39591903)
I first made the language (fifteen years ago!) out of curiosity about esolangs and as a first try at writing a compiler. And for fun, yes. Since then, I've written more about multicoding -- the way two readings of code impact each other -- and thought more about the music that results (some links in my comment below). This is the aspect of the language that interests me now.

I chose MIDI since it's a standard and leaves to the programmer the choice of tool to compose the program. There's an IDE in the works geared for live performance of the language (that will not be MIDI, but not ready to say yet how it will work; it has the same lexicon but is quite a different language in practice).

Re:Velato: A programming language where source code must be ... by Rochus on Monday March 04, 2024 @11:53AM (#39592607)
I see, thanks. But is Velato actually conceived to create music, or is the music just a "random" byproduct?
Re:Velato: A programming language where source code must be ... by velcrovan on Monday March 04, 2024 @12:18PM (#39592966)
From the top of the original link:

> “Velato offers an unusual challenge to programmer-musicians: to compose a musical piece that, in addition to expressing their aims musically, fills the constraints necessary to compile to a working Velato program.”

It seems like Velato’s purpose is to provide an unusual and interesting creative constraint for people who can both code and write music.

Re:Velato: A programming language where source code must be ... by Rochus on Monday March 04, 2024 @12:26PM (#39593095)
> Velato’s purpose is to provide an unusual and interesting creative constraint for people who can both code and write music

I do both on a professional level and have no idea what this sentence means; that's why I'm asking.

Re:Velato: A programming language where source code must be ... by MyNameIs_Hacker on Monday March 04, 2024 @01:27PM (#39594004)
Have you ever sat in front of your favorite DAW version XX and thought, oh wow so many things, what am I going to do?

How about Sonic Pi? Or any modern audio toolset. So much possibility, where to start?

Creative constraint is about opening up pathways by restricting options.

Re:Velato: A programming language where source code must be ... by hn_acker on Monday March 04, 2024 @01:36PM (#39594143)
It means come up with a code goal and a music goal, and fulfill both with a Velato program. For example, can you write MIDI file which finds the nth Fibonnaci number and sounds good to your friend when played with a piano instrument (a real one or a sound sample)?
Re:Velato: A programming language where source code must be ... by Minor49er on Monday March 04, 2024 @01:44PM (#39594241)
Presumably you code and compose in separate contexts, unlike what the sentence describes
Re:Velato: A programming language where source code must be ... by jcpst on Tuesday March 05, 2024 @08:59AM (#39603497)
Constraints are not too crazy of a concept. It’s not much different than say, writing a traditional Schoenberg style 12-tone composition.

You would create your tone rows and then write your composition. If you follow the rules, then it is also 12-tone serialism.

Re:Velato: A programming language where source code must be ... by lieuwex on Monday March 04, 2024 @09:46AM (#39591114)
For fun I suppose? See: esoteric programming languages
Re:Velato: A programming language where source code must be ... by Rochus on Monday March 04, 2024 @09:50AM (#39591172)
Why shoud we suppose if the author himself can give us an authoritative answer?
Re:Velato: A programming language where source code must be ... by yreg on Monday March 04, 2024 @09:57AM (#39591232)
It's very obvious.
Re:Velato: A programming language where source code must be ... by beeboobaa on Tuesday March 05, 2024 @09:05AM (#39603569)
Whenever I see questions like this I have to wonder: Do you really lack the creative spark that lets you imagine why something like this would be fun to create?
Re:Velato: A programming language where source code must be ... by Rochus on Tuesday March 05, 2024 @09:54AM (#39604181)
I guess not everyone can be a genius (like you?)
Re:Velato: A programming language where source code must be ... by beeboobaa on Tuesday March 05, 2024 @11:02AM (#39605291)
How did you manage to arrive at that interpretation?
Re:Velato: A programming language where source code must be ... by otikik on Tuesday March 05, 2024 @05:19AM (#39601526)
This is a very creative project, congratulations!

One obvious step is to try to make it bootstrapped. Have the velato compiler be a velato.mid file.

Re:Velato: A programming language where source code must be ... by WillAdams on Tuesday March 05, 2024 @08:26AM (#39603059)
Have you ever read Hermann Hesse's _The Glass Bead Game_? (also published as _Magister Audi_)

Every time I see alternative representations of knowledge/computer code/algorithms it comes to mind.

Would you expect a person to be able to achieve a mastery of this to the point where they could play and control something in an improvisation? Say something like to the character Agatha Heterodyne of Kaja and Phil Foglio's web comic _Girl Genius_ controlling an army of clanks (robots):

https://www.girlgeniusonline.com/comic.php?date=20061229

Re:Velato: A programming language where source code must be ... by xpointer on Tuesday March 05, 2024 @07:49PM (#39610963)
Funny you should ask; someone interviewed me about a few of my esolangs for their dissertation last year and referenced the Glass Bead Game.

It would take a lot of practice to improvise Velato, but that would be amazing!

Re:Velato: A programming language where source code must be ... by WillAdams on Wednesday March 06, 2024 @10:46PM (#39624860)
There are times when I worry that the ubiquity of computers is crushing experimentation in computer interface concepts.
Re:Velato: A programming language where source code must be ... by WillAdams on Thursday March 07, 2024 @09:17AM (#39629343)
_Magister Ludi_ (stupid auto-correct)
Re:Velato: A programming language where source code must be ... by tutfbhuf on Tuesday March 05, 2024 @10:35AM (#39604721)
Is there any reason why your website does not support HTTPS?
Re:Velato: A programming language where source code must be ... by cmiller1 on Tuesday March 05, 2024 @10:49AM (#39604971)
I wish more websites were still HTTP! I can't access most of the modern web from my vintage computers and I see no reason I need security on websites I'm not logging into.
Re:Velato: A programming language where source code must be ... by tutfbhuf on Tuesday March 05, 2024 @03:14PM (#39608656)
Even for non-login sessions, HTTPS is key. It isn't just about credential protection. It guards against data tampering in transit and is therefore crucial for end-to-end data integrity. What you are saying is basically that you don't care about integrity, fair enough, but many people including me do.
Re:Velato: A programming language where source code must be ... by xpointer on Tuesday March 05, 2024 @07:51PM (#39610977)
It will move to https when I update it later this year
Re:Velato: A programming language where source code must be ... by Optimal_Persona on Tuesday March 05, 2024 @05:40PM (#39610058)
Extra meta-bonus points if the quine's MIDI notes are from a transcription of a Robert Quine guitar solo!

Fascinating project, xpointer!

Re:Velato: A programming language where source code must be ... by lcnPylGDnU4H9OF on Monday March 04, 2024 @05:14PM (#39596864)
A game that is programmed by the music in the game. Something tells me such music would sound a little odd.
Re:Velato: A programming language where source code must be ... by suphisys on Sunday March 10, 2024 @05:09AM (#39657756)
I'm a professional composer and amateur programmer. I've been trying to write a Quine in Velato, but seems impossible to me. Source code in Velato are MIDI files, but output is plain text. In order to create a Quine you must design a MIDI that outputs text pseudo code (in Guido, Lilypond, etc. notation) which, when converted back to MIDI will yield the original Midi file. However every print char command in Velato requires at least 8 notes (in MIDI). So there's not a 1 to 1 correspondence like in other programming languages Quines. I'm no computer scientist here but this seems impossible to me.