Live data from Hacker News

Objective-S: architecture-oriented language based on Smalltalk and Objective-C

objective.st

41–50 of 130 posts

Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C

#41

I still remember my horror when I saw the pain of something as simple as string concatenation in Objective-C. The community literally has to write special micros to make joining a string palatable [1]. I salute the brave souls who made OSX/iOS apps before Swift. NSString *myString = @"Hello"; NSString *second = [myString stringByAppendingString:@" World"]; [1]: https://stackoverflow.com/questions/510269/shortcuts-in-…

I never felt like this was too terrible...

  NSString* result = [NSString stringWithFormat:@"%@ %@", @"Hello", @"World"];

Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C

#42

Earlier quoted context omitted.

NSString *foo = [@"foo" stringByAppendingString:@"bar"]; It's not that bad.

I must be missing something here. "foo" + "bar"

It's more like compile-time concatening of literals like in C when doing

  const char *s = "foo" "bar";

Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C

#45

  > It uses the host platform's C ABI. It dose not require a VM.
to me thats whats cool about obj-c, not the syntax or whatever, but the runtime

that you can construct classes and methods at runtime just like a "vm" but much simpler and lightweight... its amazing to me that apple never made a construct-the-app-while-its-running type of rapid development tool... the pieces were all there afaik

Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C

#46

Earlier quoted context omitted.

If you can build Objective-S in a language then isn't the language that contains the set of Objective-S and other languages in theory more general purpose? I'm not sure I get the definition.

I guess it's the same question as whether the ability to implement an Erlang VM in C makes C a functional and/or concurrency-oriented language.

C is a functional language[1]. That’s one of the finer examples of Haha, Only Serious I’ve seen for programming.

[1] http://conal.net/blog/posts/the-c-language-is-purely-functio...

Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C

#47
post #7

My two pence: It’s not a very sexy name for a language compared to the competition.

Yep. Still working on it. Suggestions?

General Purpose Language, since it is the world’s first general purpose language.

Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C

#48
It's not obvious how Objective-S handles unreliable resources.

I ask because every remote resource is unreliable on several levels, and it's often both important and impossible to figure out which level is misbehaving. (Is AWS down, Comcast, my router? Or did I fat-finger some part of the URI?)

Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C

#49

Earlier quoted context omitted.

NSString *foo = [@"foo" stringByAppendingString:@"bar"]; It's not that bad.

I must be missing something here. "foo" + "bar"

While this syntax is indeed popular in several languages it's deeply weird, it's like how English uses apostrophe S to do two very different things at the end of words.

The Add operation has a whole bunch of properties and this not only isn't most of them, it's arguably not any of them, the main argument for + as a string concatenate operator is "Well, people seem to like it". Which, I guess I/O streams doesn't even have that going for it, but it's a pretty terrible rationale.

Look, just grow string interpolate and write f"{foo}{bar}" or whatever as much as you like don't abuse unrelated operators.

Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C

#50

Earlier quoted context omitted.

Yep. Still working on it. Suggestions?

General Purpose Language, since it is the world’s first general purpose language.

Arguably, it should be First General Purpose Language then. Might also help avoiding confusion if the implementation isn’t GPL.
Post reply on HN