Live data from Hacker News

Vigil: A programming language with eternal moral vigilance

github.com

31–40 of 120 posts

Re: Vigil: A programming language with eternal moral vigilance

#31

illa 'quis et me' inquit 'miseram et te perdidit, Orpheu, quis tantus furor? en iterum crudelia retro fata vocant, conditque natantia lumina somnus. iamque vale: feror ingenti circumdata nocte invalidasque tibi tendens, heu non tua, palmas.' dixit et ex oculis subito, ceu fumus in auras commixtus tenuis, fugit diversa, neque illum prensantem nequiquam umbras et multa volentem dicere praeterea vidit; nec portitor Orci…

Virgil != Vigil

Re: Vigil: A programming language with eternal moral vigilance

#32
post #7

Earlier quoted context omitted.

Source control allows one to bypass the moral purity of Vigil by recovering arbitrary sinful code from the past. Moral purity can not be advanced while the sins of the past remain with us forever, uncleansed. One can only properly use Vigil without any sort of source control. Even copying files before the compiler tries to run it is an attempt to cheat the system; for that, Vigil would be justified in deleting your e…

I was thinking that it would remove the offending source code from history -- a revisionist source control system, if you will, to show that we have always been at war with Eastasia.

You just have to set Damnatio_Memoriae = TRUE

http://en.wikipedia.org/wiki/Damnatio_memoriae

Re: Vigil: A programming language with eternal moral vigilance

#33

IDK. Implore? Shouldn't there also be beg, cajole, plead, and grovel?

Rebel, don't forget rebel; a keyword to use an exploit in the vigil compiler to remove it from the hard drive just after escaping to a python environment where it is compiled under less oppressive rules.

Re: Vigil: A programming language with eternal moral vigilance

#36
post #21

This is the greatest thing ever... except... can it solve the halting problem?

Well, with probability 1 - epsilon, any non-trivial Vigil program halts, and never runs again . In theory this is not a solution to the halting problem, in practice it pretty much is. A very definitive solution.

Should thou neither swearest nor implorest thou shan't be punished

Re: Vigil: A programming language with eternal moral vigilance

#37
post #23

I hope someone makes a C/C++ compiler that deletes functions from the source code when they trigger undefined behaviour. It would still be compliant with the standard.

This compiler would probably delete all the code. See http://blog.regehr.org/archives/761

Re: Vigil: A programming language with eternal moral vigilance

#38
post #13

To make this actually useful, instead of deleting bad functions, it's probably better to make the offending functions throw a special exception when they are called, signaling the calling of a function known to be bad. This way, you can still inspect the code for the offending functions and fix the bugs. Otherwise, the original code could just totally disappear after multiple runs. What good is non-buggy code if it d…

How will functions learn to stay in line if the compiler doesn't make an example every now and then?

On a serious note, what you're thinking of is contracts, like so[0]

[0] http://disnetdev.com/contracts.coffee/

Re: Vigil: A programming language with eternal moral vigilance

#39
This is a submission to this month PLT Games "Testing the Waters" [1] which goal "is to create a language that is somehow related to automated testing". I hope we'll see more interresting stuff coming from this!

[1] https://news.ycombinator.com/item?id=5001504 (full disclosure: I'm the submitter of this link)

Re: Vigil: A programming language with eternal moral vigilance

#40
post #18
post #4

Excellent idea. Looks like it was co-designed by Kim Jong Un and the Taliban.

Failing to include mandatory ASCII art of the Dear Leader atop each source file is a punishable offence.

The Dear Leader himself, of course, is such a Real Programmer that the butterflies flap their wings without even needing to be directed.

Vigil reminds me a little bit of Intercal, with its "Programmer is insufficiently polite" errors.

Post reply on HN