Where’s your sense of adventure?!
Where’s your sense of adventure?!
Calling reverse()
on a function should return its inverse
You’re no fun
"E".reverse() == "∃"
I dint know many OO languages that don’t have a useless toString on string types.
Well, that’s just going to be one of those “it is what it is” things in an OO language if your base class has a toString()
-equivalent. Sure, it’s probably useless for a string, but if everything’s an object and inherits from some top-level Object
class with a toString()
method, then you’re going to get a toString()
method in strings too. You’re going to get a toString()
in everything; in JS even functions have a toString()
(the output of which depends on the implementation):
In a dynamically typed language, if you know that everything can be turned into a string with toString()
(or the like), then you can just call that method on any value you have and not have to worry about whether it’ll hurl at runtime because eg. String
s don’t have a toString
because it’d technically be useless.
Everything that’s an Object
is going to either inherit Object.prototype.toString()
(mdn) or provide its own implementation. Like I said in another comment, even functions have a toString()
because they’re also objects.
A String
is an Object
, so it’s going to have a toString()
method. It doesn’t inherit Object
’s implementation, but provides one that’s sort of a no-op / identity function but not quite.
So, the thing is that when you say const someString = "test string"
, you’re not actually creating a new String
object instance and assigning it to someString
, you’re creating a string
(lowercase s
!) primitive and assigning it to someString
:
Compare this with creating a new String("bla")
:
In Javascript, primitives don’t actually have any properties or methods, so when you call someString.toString()
(or call any other method or access any property on someString
), what happens is that someString
is coerced into a String
instance, and then toString()
is called on that. Essentially it’s like going new String(someString).toString()
.
Now, what String.prototype.toString()
(mdn) does is it returns the underlying string
primitive and not the String
instance itself:
Why? Fuckin beats me, I honestly can’t remember what the point of returning the primitive instead of the String
instance is because I haven’t been elbow-deep in Javascript in years, but regardless this is what String
’s toString()
does. Probably has something to do with coercion logic.
Ah, I managed to completely miss the last part of the comment because I’m an eejit who can’t read good
Which naturally means it’s impossible for it to be an issue for literally anybody else anywhere at any time
And no, before some dumb fuck has any bright ideas, I’m not saying this will be an issue for everybody, just that it’s absolutely fucking idiotic to pretend it’s never an issue.
In 2017 his name was mentioned as a visionary comparable to the Wright Brothers and Zefram Cochrane (inventor of the warp drive) on a Star Trek episode set in the 2250s.
By a character who was explicitly evil and whose judgement we were not meant to trust, though
I got smoked out of a company I helped found because I had health issues, even though I was still capable of doing my job. It’s illegal to fire people for health issues here, but it’s not like firing someone is the only way to get rid of them.
Everybody who’s telling you you can legally use these appointments is probably completely correct (depending on your jurisdiction). Whether the legality actually matters is another thing entirely.
Not American, but excellent try anyhow.
Oh you sweet summer child
Nice, thank you for the heads-up! Lessee if I can get SC to play nice with Whisky (macOS Proton-equivalent)
Ah that sounds like a real hassle. Thanks for trying it out though, this definitely tells me that the Deck’s probably not going to be my platform for playing SC
Well that’d be awesome, but don’t sweat it! Would make my life easier if the perf on the SD was at least in the same solar system as “OK”, but there’s a decent chance I could use Whisky (or CrossOver) for this
Feel like being a guinea pig for checking out how the current version of SC runs on the Deck? 😀
But more seriously speaking I think I’ll give something like Whisky a go. My laptop’s decently new so if I can wrangle the emulation it might be Good Enough™ when coupled with a PS4 controller for testing things out during a free fly week
Ah nice, thank you for the links.
~10fps in eg. cities sounds like it might be beyond my jank limit but hard to say how the overall perf would feel like. Hmm, I might look into trying to run it on my laptop but it’s Apple ARM – I have a vague memory of seeing something like Proton / CrossOver pop up recently specifically for Apple silicon.
I take it you’ve never tried running SC on the Deck?
Not saying it’ll turn into 4k/60fps experience but it should be better.
Mate it’s a Deck, that’s not in the cards anyhow 😀 some of the benefits of having been at this stuff for about 40 years now are that I’m fine with extremely potato settings etc and I have a very high tolerance for lag and jank.
Is there any other way to test the performance without paying for a starter pack, besides free flights? Not that I mind waiting, Oct/Nov’s going to arrive way faster than I’d like anyhow heh
I’d really love to try SC out because I’ve been itching for something like Elite: Dangerous that’s… well… not ED, but my only gaming machine is a Steam Deck and I’ve understood the performance isn’t exactly great. Seems like SC is pretty enjoyable already even though it’s very much not finished
More of a tragicomedy, really