News for hackers. Stuff that matters.
Re:The Spiral Language by jpwagner on Thursday July 12, 2018 @11:26PM (#17520297)
Re:The Spiral Language by jessep on Friday July 13, 2018 @01:48AM (#17520774)
If you haven't clicked through to read the above commit message, please do. It is amazing. This is a glimpse into the mind of a mad scientist (and I respect and love mad scientists more than anything and aspire to be one)
Re:The Spiral Language by Razengan on Friday July 13, 2018 @05:55AM (#17521670)
> It is a tragedy, but I cannot imagine a language better than Spiral. Not within real world constraints facing me. A language better than it would pretty much have to be magic.

> So, in this respect, my programming skill has reached it's limit and the most I will be able to do is refine it.

> And it is embarrassing to me because I want to do better. I am ashamed, but the one to come will have to follow up on what I could not manage with my meager human abilities.

This reminds me of the fictional inspirational process of dwarves in the Drizzt Do'Urden series of books [0] by R. A. Salvatore [1]. In that setting a dwarf craftsman gets only one moment of exceptional divine inspiration in his life to forge a legendary artifact. It is both a blessing and curse for them, because they realize that they will never be able to surpass that work for the remainder of their long lives.

I wonder if other people here have had that moment in their life as well?

[0] https://en.wikipedia.org/wiki/The_Icewind_Dale_Trilogy

[1] https://en.wikipedia.org/wiki/R._A._Salvatore

Re:The Spiral Language by zwkrt on Friday July 13, 2018 @11:14AM (#17523608)
The dwarves should be thankful. Many people would have this moment and not realize it has passed them by.
Re:The Spiral Language by s3m4j on Friday July 13, 2018 @06:12AM (#17521718)
https://github.com/mrakgr/The-Spiral-Language/commit/1dee010...

That one is really in the "mad scientist" mindset. I love it, I wish him and this project good luck.

Re:The Spiral Language by jamesmcm on Friday July 13, 2018 @04:52AM (#17521440)
The funny part is the diff.
Re:The Spiral Language by jacobush on Friday July 13, 2018 @05:11AM (#17521512)
I didn't even see that! Yep. When all you have left to polish is some white space in a test script, the thing is pretty much complete.
Re:The Spiral Language by tlamponi on Friday July 13, 2018 @08:07AM (#17522173)
No, he uses commit messages as log of his thoughts, and commits need to have changes, thus each "log only" commit deletes or adds those same whitespaces in a never ending cycle.

In between you find some actual code changes (with also long commit messages).

It's not that he's finished - I hardly guess so because he complains that he'd need 10 years of time to polish everything out perfectly (in his opinion) and he only has one - it's just his style for a log book...

Re:The Spiral Language by abstractcontrol on Friday July 13, 2018 @08:40AM (#17522404)
I can't actually program all the time. Sometimes I need to study machine learning or think about design. During those times I use commits much like journal entries.

I actually keep a separate journal and sometimes paste from it. I've been using LibreOffice Writer for it and decided to drop it recently because it would take so long to save a file - like 5s or more. Around every 3 month I'd fill in about 1000 pages of it and it was forcing me to move to a new file every time that happened. Now I just use VS Code for this sort of thing. Raw text is the best after all, but it is too bad I can't paste images into the journal anymore.

Re:The Spiral Language by rhencke on Friday July 13, 2018 @08:59AM (#17522533)
If you do wish to use commits to simply journal your thoughts, and would like to do so without this requiring code or file changes, you may find the --allow-empty option useful when committing.

This allows you to create a new commit, even if no files have changed.

Re:The Spiral Language by jdblair on Friday July 13, 2018 @11:14AM (#17523615)
Or, write your journal entries to a file and commit that? That's what I do. Most of my personal projects have a "notes.txt" at the top level for this purpose. Sometimes I just need to write freeform about the problem I'm trying to solve, from different angles, to work out my strategy. Sometimes I just write the despair that I'll never figure something out.
Re:The Spiral Language by abstractcontrol on Saturday July 14, 2018 @07:21AM (#17529861)
How would one enable this in Visual Studio?
Re:The Spiral Language by rhencke on Saturday July 14, 2018 @01:27PM (#17531277)
Unfortunately, as far as I am aware, Visual Studio does not directly expose this option.

However, it is quite likely you can use Visual Studio's "External Tools" feature to be able to achieve this. (https://msdn.microsoft.com/en-us/library/76712d27.aspx)

You could set up an external tool that did something like the following:

Title: Commit with Selected Text as Message

Command: path\to\git.exe

Initial Directory: $(SolutionDir)

Arguments: commit --allow-empty -m "$(CurText)"

This will allow you to create an empty commit, with the selected text becoming the commit message. (Just bear in mind if you have any files staged, they will be committed as well)

I unfortunately do not have Visual Studio currently installed, so please take the above as a rough sketch, and my apologies if it doesn't work as is. But, I hope it is of use to you.

Re:The Spiral Language by Bromskloss on Friday July 13, 2018 @11:04AM (#17523507)
> commits need to have changes

Ah, yes, I remember wanting to be able commit the identity transformation (_i.e._ no change) at some point. I don't remember why. It might have been a matter of principle.

PS: I just learned about the `--allow-empty` flag. [0] I'm happy again.

[0] https://git-scm.com/docs/git-commit#git-commit---allow-empty

Re:The Spiral Language by jacobush on Friday July 13, 2018 @10:32AM (#17523246)
Oh; I missed the back and forth.

But he said he was done, because he no more time for language design, and he must study AI now.

Re:The Spiral Language by agumonkey on Friday July 13, 2018 @11:50AM (#17523961)
what should we call this new form of web log ? c[ommit]log ? v[ersion]log ? g[it]log ?