News for hackers. Stuff that matters.
Re:Vigil, the eternal morally vigilant programming language by lemper on Saturday September 02, 2023 @08:56PM (#37366789)
if I put square_root("branch") what then? how you gonna punish me? cut my workload? raise my paycheck?
Re:Vigil, the eternal morally vigilant programming language by foota on Saturday September 02, 2023 @09:32PM (#37366961)
Careful, if there's no calling code left to delete it might just go after the programmer :-)
Re:Vigil, the eternal morally vigilant programming language by shwaj on Sunday September 03, 2023 @09:56PM (#37376424)
Haha, better know what you’re doing before you dare invoke ‘vigil -i’.
Re:Vigil, the eternal morally vigilant programming language by xeckr on Saturday September 02, 2023 @08:58PM (#37366801)
I could see this being fun in a competitive programming context.
Re:Vigil, the eternal morally vigilant programming language by dang on Saturday September 02, 2023 @09:01PM (#37366815)
Related:

Vigil: The eternal morally vigilant programming language - https://news.ycombinator.com/item?id=25052001 - Nov 2020 (34 comments)

Vigil, the eternal morally vigilant programming language - https://news.ycombinator.com/item?id=24967144 - Nov 2020 (2 comments)

Vigil, the eternal morally vigilant programming language - https://news.ycombinator.com/item?id=20451115 - July 2019 (1 comment)

Vigil, the eternal morally vigilant programming language - https://news.ycombinator.com/item?id=15209452 - Sept 2017 (48 comments)

Vigil: A programming language with eternal moral vigilance - https://news.ycombinator.com/item?id=5002597 - Jan 2013 (118 comments)

Re:Vigil, the eternal morally vigilant programming language by alex_marchant on Saturday September 02, 2023 @09:15PM (#37366873)
> This is where Vigil sets itself apart from weaker languages that lack the courage of their convictions. When a Vigil program is executed, Vigil itself will monitor all oaths (implorations and swears) that have been made. If an oath is broken, the offending function (the caller in the case of implore and the callee in the case of swear) will be duly punished. > How?

> Simple: it will be deleted from your source code.

> The only way to ensure your program meets its requirements is to absolutely forbid code that fails to do so. With Vigil, this shall be done for you automatically. After enough runs, Vigil promises that all remaining code meets its oaths.

Re:Vigil, the eternal morally vigilant programming language by foota on Saturday September 02, 2023 @09:31PM (#37366954)
Replace deleted with passed to ChatGPT and you'll have VCs lining up.
Re:Vigil, the eternal morally vigilant programming language by vitiral on Sunday September 03, 2023 @12:08AM (#37367653)
Is this like God working through you to change your ways and become righteous?
Re:Vigil, the eternal morally vigilant programming language by taneq on Saturday September 02, 2023 @09:37PM (#37366979)
Programmer: makes minor typo

Vigil: THE HERESY MUST BE PURGED

Re:Vigil, the eternal morally vigilant programming language by whisket on Saturday September 02, 2023 @10:00PM (#37367079)
Isn't the fib function as given heretical? Is it missing an oath, or is that the point?
Re:Vigil, the eternal morally vigilant programming language by sp332 on Saturday September 02, 2023 @11:05PM (#37367354)
It ends with:

  swear result >= 0
  return result
Re:Vigil, the eternal morally vigilant programming language by xigoi on Sunday September 03, 2023 @02:49AM (#37368247)
Good to know that any sequence of non-negative numbers is the Fibonacci sequence.
Re:Vigil, the eternal morally vigilant programming language by bemusedthrow75 on Sunday September 03, 2023 @09:54AM (#37370446)
Well, it is lying. The function name says so.
Re:Vigil, the eternal morally vigilant programming language by peter_d_sherman on Saturday September 02, 2023 @10:10PM (#37367122)
Hilarious!

And Brilliant!

Also... deeply, deeply disturbing... on many levels... <g>

(But then, sometimes some of the best humor is inseparable from being deeply disturbing on many levels...)

Kudos to the sick, but funny (but still sick, let's not kid ourselves!) mind or group of minds that concocted this!

You guy(s) are extremely funny, brilliant, and funny(!) -- but (and it pains me to say this!) also deeply, deeply disturbed...

Which I, then again, suppose is a hallmark of great comedy... I mean, I can think of SNL and Monty Python sketches that were extremely funny -- yet also deeply, deeply disturbing on many levels...

So, perhaps it is a hallmark of comedic brilliance...

But then again, perhaps it is a hallmark of sickness...

This we don't know -- but we do know that it is funny, and we do know that it is hilarious! <g> :-) <g>

Re:Vigil, the eternal morally vigilant programming language by lagniappe on Saturday September 02, 2023 @10:48PM (#37367287)
Makes me miss Terry a little bit :/
Re:Vigil, the eternal morally vigilant programming language by esbeeb on Saturday September 02, 2023 @11:23PM (#37367440)
I laughed. Hard.
Re:Vigil, the eternal morally vigilant programming language by vitiral on Sunday September 03, 2023 @12:09AM (#37367659)
Let's be clear, we all know that Virgil doesn't go far enough because PEBCAK
Re:Vigil, the eternal morally vigilant programming language by eternityforest on Sunday September 03, 2023 @12:20AM (#37367701)
By fire shall it be cleansed, by the blade shall it be redeemed, no evil shall taint this blessed land!
Re:Vigil, the eternal morally vigilant programming language by reilly3000 on Sunday September 03, 2023 @12:28AM (#37367732)
Talk about executable…
Re:Vigil, the eternal morally vigilant programming language by jeroenhd on Sunday September 03, 2023 @03:10AM (#37368351)
> It goes without saying that any function that throws an exception which isn't caught is wrong and must be punished.

Surely the failure is in the lack of handling, not in the throwing of the exception itself? I suppose the lack of checked exceptions in Python makes it impossible to blame the handler because there is no way to indicate what exceptions may be thrown.

Re:Vigil, the eternal morally vigilant programming language by classified on Sunday September 03, 2023 @04:41AM (#37368777)
Once it implements the Wich Hunt feature, I'm sure the Woke Apostle Task Force will adopt it in a heartbeat.
Re:Vigil, the eternal morally vigilant programming language by yosito on Sunday September 03, 2023 @05:22AM (#37368943)
I know this is a joke, but it would be interesting to see an actual project built with this, just for curiosity.
Re:Vigil, the eternal morally vigilant programming language by mikewarot on Sunday September 03, 2023 @05:29AM (#37368970)
So, when a program fails it's oath... and it must be punished... I strongly suggest it be sent to purgatory (not deleted), for redemption is always possible.

This would make it possible for a programmer to redeem themselves.

Of course, you could probably do a git difference... but that's not as thematically consistent.

Re:Vigil, the eternal morally vigilant programming language by winternewt on Sunday September 03, 2023 @08:30AM (#37369891)
"Every program can be shortened by one line, and every program contains at least one bug. By which we can infer that every program can be reduced to a single, incorrect line of code."
Re:Vigil, the eternal morally vigilant programming language by scotty79 on Sunday September 03, 2023 @08:59AM (#37370056)
Why can't you in modern languages just say n:0.. like in Pascal?

Why can't you narrow down numeric types to provide range checking?