TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Semicolon: A language of semicolons

286 pointsby sunkarapkabout 13 years ago

51 comments

gavinlynchabout 13 years ago
Hi guys, just wanted to tag along with this thread, because I'm a huge fan of Semicolon! One thing I've always found aggravating though... Those darn semicolons! So I'm creating CoffeeColon, because all these semi-colons are such a hassle. It's probably easiest if I just show you the language in action, rather than going through a long diatribe. So here's my hello world!:<p>" "<p>^ Pretty elegant, right?<p>let's try something a little more complex:<p>" "<p>^ As you can see, the goal of this new language is to take the best of Semicolon and just make it more succinct, and to round out some of the minor historical abnormalities that have been dragged along in the language spec for a while now.<p>So my hope is that you all enjoy CoffeeColon as much as I do. It's just like Semicolon, maintaining it's expressiveness and dynamic nature, with just a little bit of smoothing out of the kinks.<p>Thanks!
评论 #3854609 未加载
评论 #3856083 未加载
评论 #3854524 未加载
评论 #3854706 未加载
评论 #3854477 未加载
评论 #3854922 未加载
评论 #3855707 未加载
评论 #3855123 未加载
评论 #3854725 未加载
评论 #3855034 未加载
评论 #3856357 未加载
评论 #3855057 未加载
评论 #3854522 未加载
etfbabout 13 years ago
I'm disappointed that the designer of this language has limited himself to just the semicolon (";", U+003B) and the reversed semicolon ("⁏", U+204F). What about the Arabic semicolon ("؛", U+061B) and the Greek question mark (";", U+037E)? They're both perfectly valid options.<p>(I can understand avoiding the turned semicolon ("⸵", U+2E35), given that it doesn't seem to display properly. Can't be having unrenderable codes in one's language; it could severely reduce readability!)<p>To remedy this lack, I present to you my own semicolon-derived metalanguage, Hemidemisemicolon. A sample Hello World program follows:<p><pre><code> ⁏ ؛;⁏⁏;;؛; ؛;⁏; ⁏;;; </code></pre> As you can see, the dramatically increased lexical vocabulary leads to conciseness of expression. This program code compares favourably with the original Semicolon code, and as an added bonus it is also a quine and prints out "FizzBuzz" every three or five years on Douglas Crockford's birthday.<p>An implementation note: the final semicolons on each line are optional. I was wondering if that was a good idea or not, but I'm sure it won't cause any trouble down the track.
delinkaabout 13 years ago
I had this exact thought when the semicolon drama started days ago.<p>I'm a fan of removing ambiguity in code. I parenthesize when not necessary so that intent is clear (someone in the future <i>will</i> hire a complete newbie to read and "fix" this code.) I want the statement to end here --&#62; ";" and anything else is an error - now the compiler can inform me when a mistake is made. I ask what appear to be the most asinine questions because when you say "smooth ass ride" there's a difference between a "smooth-ass ride" and a "smooth ass-ride."<p>And as I type all this, I begin to create a connection between all those txtspk hooligans and semicolon haters. Anyway, I'm happy that Semicolon now exists.
evincarofautumnabout 13 years ago
Like this kind of thing? The rabbit hole is frighteningly deep. Try the esoteric programming language wiki[1] or Chris Pressey’s site[2]. That ought to get you started.<p>[1] <a href="http://esolangs.org/wiki/Main_Page" rel="nofollow">http://esolangs.org/wiki/Main_Page</a><p>[2] <a href="http://catseye.tc/cpressey/" rel="nofollow">http://catseye.tc/cpressey/</a>
ricardobeatabout 13 years ago
Now you can take all the semi-colons from your javascript and re-use them elsewhere! Genius!
评论 #3854445 未加载
RegExabout 13 years ago
This community is generally fairly dry and to the point, which is a great way to maintain high quality discussions, but I'm enjoying all these fun comments! :)
评论 #3855745 未加载
评论 #3857309 未加载
sophaclesabout 13 years ago
So when do you plan on implementing ASI?
mappuabout 13 years ago
There are lots of joke languages that are simply isomorphic to Brainfuck - Ook, Fuckfuck and so on - so congratulations on not just taking the easy way out (changing their eight keywords instantly gives you an interpreter, compiler, sample code, ...)
评论 #3856418 未加载
marknutterabout 13 years ago
And I thought Reddit had a problem with tired memes..
mustpaxabout 13 years ago
Shouldn't this language be white-space insensitive in order to be truly pure as a semicolon language?
评论 #3854360 未加载
评论 #3856326 未加载
AndyKelleyabout 13 years ago
My first reaction was fear of death: <a href="http://nethack.wikia.com/wiki/Electric_eel" rel="nofollow">http://nethack.wikia.com/wiki/Electric_eel</a>
yxhuvudabout 13 years ago
I'm somewhat disappointed - I expected the implementation to be written using ASI keeping semicolons to a minimum.
pooriaazimiabout 13 years ago
I like Brainfuck better: <a href="http://www.muppetlabs.com/~breadbox/bf/" rel="nofollow">http://www.muppetlabs.com/~breadbox/bf/</a><p>I don't know if anyone has made a DCPU-16 interpreter for it yet!
ghostfishabout 13 years ago
While mildly amusing, this whole semicolon obsession that's sprung to the fore this past week is ridiculous. It was silly and inconsequential when it started and it's even sillier now.
评论 #3854307 未加载
评论 #3854229 未加载
评论 #3854260 未加载
评论 #3855668 未加载
rmcclellanabout 13 years ago
Seems like a nice companion to Whitespace:<p><a href="http://en.wikipedia.org/wiki/Whitespace_(programming_language)" rel="nofollow">http://en.wikipedia.org/wiki/Whitespace_(programming_languag...</a>
评论 #3854458 未加载
dclowd9901about 13 years ago
My right pinky is gonna get so huge.
SagelyGuruabout 13 years ago
This Semicolon language bears more than a passing resemblance to POP-11, the famous AI programming language for popping things on/off a stack!<p>To this day POP-11 holds the unsurpassed distinction of being the language for writing the most useless programs in the most intriquing way (after machine code, of course).
collypopsabout 13 years ago
I'm already way ahead of the curve. I've started writing my scripts without semicolons and I'm getting 100% code compression using even the most rudimentary minifiers. Get with the times, already!
jack-r-abbitabout 13 years ago
and I'm expecting there should be a post about how this is still better than PHP in 5... 4... 3... 2...<p>:)
评论 #3854627 未加载
TonyNolandabout 13 years ago
This is the PERFECT place to give a link to my poem, &#60;b&#62;&#60;a href=<a href="http://www.tonynoland.com/2009/09/ode-to-semicolon.htm&#62;Ode" rel="nofollow">http://www.tonynoland.com/2009/09/ode-to-semicolon.htm&#62;O...</a> to the Semicolon"&#60;/b&#60;/a&#62;. The semicolon is my favorite punctuation mark.<p>At that page, you can hear me read the poem, too; be sure to stop by and comment!
评论 #3854901 未加载
hcarvalhoalvesabout 13 years ago
I don't even know how to type an inversed semicolon.
评论 #3855207 未加载
评论 #3854766 未加载
fbombabout 13 years ago
So when will Objective-Semicolon and Semicolon.NET be available?
andyzwebabout 13 years ago
;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;! ;;;;;;;;;;;;;;. ;;;? ;;;;;;;;!?
dkharratabout 13 years ago
Can't wait for the Light Table IDE to support this language :P Debugging will be so much easier.
st3fanabout 13 years ago
Now we just need an LLVM backend.
bandyabout 13 years ago
It's nearly a rudimentary FORTH.
评论 #3854421 未加载
stevewilhelmabout 13 years ago
@fat and @douglascrockford, the HN community is now satirizing both of you. It's time for you both to do the right thing; add the semicolon to the bootstrap-dropdown.js code and change JSMin to support the original edge case.
评论 #3856730 未加载
评论 #3856543 未加载
rodh257about 13 years ago
This certainly takes things further than my simple SemicolonScript idea, nicely done. <a href="http://rodhowarth.com/semicolonscript/" rel="nofollow">http://rodhowarth.com/semicolonscript/</a>
j_bakerabout 13 years ago
I'd like to point out that it's theoretically possible to define a program without semicolons. Which major Semicolon library will be the first to ditch semicolons?
minikomiabout 13 years ago
Don't forget in vim to<p><pre><code> :set list :set lischars=eol:; </code></pre> .. Now all newlines will be semicolon'd
joejohnsonabout 13 years ago
How do you type a reversed semicolon on a Mac?
评论 #3856343 未加载
grayed_commentsabout 13 years ago
hey guys! I think I'm going to start on a semicolon meta-language using this new semicolon IDE I'm writing. ;
naragonabout 13 years ago
My first thought when I saw the site was 'Someone has way too much free time on their hands.'
sunkarapkabout 13 years ago
Now the reversed semicolon renders with perfect reversion of normal semicolon.<p><a href="http://pksunkara.github.com/semicolon" rel="nofollow">http://pksunkara.github.com/semicolon</a>
DannoHungabout 13 years ago
It'd be better if this were just semicolons and reverse semicolons.
alexk7about 13 years ago
The reversed semicolon appears as a square here (Windows/Chrome).
评论 #3854778 未加载
hobbyistabout 13 years ago
Cool, why interpret it? Right a compiler for it now :-)
jimmy2timesabout 13 years ago
DCPU-16 port anyone?
jaylevittabout 13 years ago
A path exists from the Semicolon language to Robert Klein's aphorism that "a sigmoidoscopy is just a semicolonoscopy". Someone please do that.
monochromaticabout 13 years ago
Gives new meaning to "insanely stupid code."
rometestabout 13 years ago
Can you please make this configurable? Instead of ;, we can use : @ * etc or something like language of smiley's :)
dguaragliaabout 13 years ago
Surely someone will implement an asynchronous framework on top of this and we'll have next year's Node.js :P
OzzyBabout 13 years ago
Does this mean; that when I context switch mind sentence; using semi-colons; I'm also programming? Sweet!
reinhardtabout 13 years ago
Upvoted because there is no such thing as too many semicolon-related threads :sigh:
keikun17about 13 years ago
would be a joy to code with this drunk
michaelfeathersabout 13 years ago
Does it have a working minimizer?
kompiebututabout 13 years ago
now i'll wait for the logging evaluator. ps: does it compatible with uterus.js?
PaulHouleabout 13 years ago
that's just too much like Python to be funny
codesuelaabout 13 years ago
looking forward to node;
its_so_onabout 13 years ago
you'd think a program consisting of "only semicolons" would be easier to type. (no pun intended). reverse semicolon? Not only does my keyboard not have one, but Google doesn't even know what it is (other than a unicode character). apparently it was invented by the unicode group.<p>next time go back to the definition of semicolon, and you will see why it is made of the glyphs , and .<p>Then you can make a true semicolon language, by mixing ; and ., (horizontal, if you will).<p>the first line given as an example program would go from ;;;;⁏;;⁏;;; (which doesnt even render in this browser text box for me atm) to ;;;;.,;;.,;;;
评论 #3856793 未加载
IsaacSchlueterabout 13 years ago
I &#60;3 you so hard, Internet.
评论 #3857006 未加载