Re:Programming languages, operating systems, despair and ang...
by jdpage on Monday June 30, 2014 @05:43PM
(#7967916)
Ooh, I'm seeing some non-ASCII characters here. How are you handling that? Can I use => instead of ⇨ and <- instead of ←? How do you usually type those? Is there a way of ASCII-ifying or de-ASCII-ifying source files?
Re:Programming languages, operating systems, despair and ang...
by mpweiher on Monday June 30, 2014 @07:54PM
(#7968426)
Yep, the non-ASCII chars have ASCII equivalents.
They aren't finalized yet, as the whole "architecture connection/configuration" part of the language has barely been begun.
In fact, the non-ASCII chars are a recent experiment, but so far I like it a lot. Now that even shells and vi know about Unicode/UTF8, maybe it's time to take advantage of the rich typography we have.
I am typing those characters using a keyboard map I created in Ukelele.app (http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=...).
The left arrows are mapped to Alt-[ and Alt-{ , the right arrows to Alt-] and Alt-}.
Huh?
Objective-Smalltalk (http://objective.st) is also based on Objective-C/Foundation:
1. Hello World
in fact since it's an expression language, you can also just write (Might change the quotes to double quotes at some point).2. Sending e-mail
Have to admit I haven't implemented the mailto scheme yet, but will be 1 line or close to it once it's in. Can probably get there
3. GET/POST
Save page to disk: PUT I haven't implemented POST yet, it interacts with a bunch of other features that are in the works.4. Days between dates
Whatever you did with NSDate ...
5. JSON
The http and file URL scheme handlers have cooked versions that will figure out the MIME type and translate for you, but I haven't full figured out complex literal syntax yet.
6. Modern Datatypes
Actually, Swift has a big fail here for the single numeric type. Objective-Smalltalk currently just inherits to Objective-C stuff (so fail), but a real numeric tower is in other Smalltalks and both a goal and achievable in ObjST.
Why they didn't do this in Swift is puzzling.
7. Package distribution
ObjST has always been heavily framework based, for example 'framework:' is one of the supported URL schemes. Now that we have frameworks for iOS, it's time to start thinking about a "cooked" framework scheme that can do name mapping to URIs for the source of that framework etc.
8. HTTP server
This serves the directory passed as an argument:
This will serve "Hello World" from an in-memory scheme-handler: