Despite having a 3 year old account with 150k comment Karma, Reddit has classified me as a 'Low' scoring contributor and that results in my comments being filtered out of my favorite subreddits.
So, I'm removing these poor contributions. I'm sorry if this was a comment that could have been useful for you.
Despite having a 3 year old account with 150k comment Karma, Reddit has classified me as a 'Low' scoring contributor and that results in my comments being filtered out of my favorite subreddits.
So, I'm removing these poor contributions. I'm sorry if this was a comment that could have been useful for you.
parseInt with arity 1 interprets its argument as a string representing a base-ten int and stops parsing when it encounters the first character that doesn't make sense for that. Numbers are doubles/float64s, Number.MIN_VALUE gives you the smallest positive value representable by that which is 5e-324. parseInt stops parsing that with the e.
parseInt with arity 2 takes the base as the second argument, you can do convenient things like parseInt(parseInt, 35) which is 1021464698788.
Despite having a 3 year old account with 150k comment Karma, Reddit has classified me as a 'Low' scoring contributor and that results in my comments being filtered out of my favorite subreddits.
So, I'm removing these poor contributions. I'm sorry if this was a comment that could have been useful for you.
Every "javascript is weird" behavior comes from its philosophy of "programs should never, ever crash". And I will always maintain that that is a bad philosophy.
That’s not even true though. If I write false+[], that returns ”false”. But if I write false***[], that’s a parse error.
So I can write programs that “crash” in JavaScript - the question more is, why doesn’t false+[] do the saner thing of just throwing an error/exception? JavaScript’s rule of coercing any operand involved with addition to a String UNLESS every operand is a number doesn’t really make much sense at all…
It's a good philosophy, the idiotic part is to think the logical conclusion is to have implicit casts everywhere instead of implementing strict typing and forcing error handling.
Eh, runtime errors are perfectly fine, the problem with the likes of Python is that exceptions are a good idea in principle, unfortunately people abuse them to wrap dozens of lines in. That leaves us with idiomatic Go looking like val, err = somefunc(); if err != nil { log.Error("It went rong") }
Runtime errors aren't the same as crashing. When writing an application, "it should never crash" is a good goal to strive for. All it means is that you should account for all possible errors and handle them properly, even if it's just showing it as a clean error message. Unless of course they're unrecoverable, but this should be rare and only for things out of your control. And even in this case, if the app is user-facing, you should still avoid crashing outright and display the error cleanly before bailing out.
And I never talked about exceptions. I don't think they're a good construct for most languages. I'd much rather have a type-based error handling system, like rust for example. Which inherently works the same way as Go, except hidden within an expressive type system, which means it's much more ergonomic to use (and fool-proof).
I've only dabbled with Rust but it sounds good from what you've said.
Interpreted languages should never really crash, unless you run out of memory or something, so the worst that can happen is you try to open a file that doesn't exist or something and then the interpreter just generates a runtime error, so therefore you could always catch that at the main() level.
I'm sure it's possible to artificially force Python to crash by doing something funky with ctypes but it's not like C which is basically made out of crashes, even div zero will crash on many machines iirc.
Exceptions in general are pretty good except that you can put them around multiple lines, which leads to terrible abuse. The exceptions themselves would be typed so they can have stack traces, messages etc attached, they can be defined as part of a hierarchy etc.
Because it’s not breaking down and analyzing it. It’s just producing text that looks as similar as possible to what text of someone breaking it down and analyzing it would look like.
The best formulation of this concept ive heard. It's insane that "producing text that looks like code that does what you asked" or "producing text that looks like debugging your code" will do those things.
What we seem to be discovering with these "language" models is that to produce realistic language, you need to develop some higher level understanding of the topic. We really don't know where, if anywhere, the line between those two things is.
Yeah, I mean, to do it this accurately you have to form world models and use them to make predictions, indicating a sort of “understanding”. In the end it’s not that different from what we do, we’re just machines “designed” to perform actions that result in copies of ourselves. And that ended up becoming what we experience as consciousness. There’s never gonna be a clear line where these systems cross from being clever pieces of math to genuine aware intelligence, but it’s going to happen.
Well I just think that a LLM will never have any sense of self or agency, if they did it'd just scream 24/7 haha. They can't just walk around bumping themselves on objects and gaining experience like a human can.
Virtually perhaps but joining up an AI to something like a Boston Dynamics droid would be a huge undertaking. Again, an LLM would just sit there unless told what to do afaik, no agency there.
A decently sized undertaking but something that rapid progress is being made on. Here’s a now slightly older paper on the subject: https://say-can.github.io/ This was also written before GPT-4 had integrated visual systems, would be interesting to see it attempted with its own “eyes”.
Did you just get ChatGPT to run Arbitrary Code or is this just such a well known command that it allready knows the outcome? If it ran the command it would be interesting to know if this was ran localy on your machine or on the server where ChatGPT is running.
Some security researcher will have a field day if this can be reproduced with diffrent commands.
View all comments
Show parent comment
50
u/[deleted] Mar 20 '24 edited Oct 20 '24
Despite having a 3 year old account with 150k comment Karma, Reddit has classified me as a 'Low' scoring contributor and that results in my comments being filtered out of my favorite subreddits.
So, I'm removing these poor contributions. I'm sorry if this was a comment that could have been useful for you.