Discuss Scratch

MagicCrayon9342
Scratcher
1000+ posts

js or python

Compiled Languages FTW

Neither JavaScript or Python

PkmnQ
Scratcher
1000+ posts

js or python

Neither of them are concatenative

This is an account that exists.

Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary

TheSecondGilbert
Scratcher
100+ posts

js or python

MagicCrayon9342 wrote:

Compiled Languages FTW

Neither JavaScript or Python
fun fact: Python is compiled (into a Python bytecode)

Hi! This is an alt of my main account.
I'm “back” from a 10-month hiatus.
I forgot the ways of the forums, so I might be wrong.
My first post!
ScratchCatHELLO
Scratcher
1000+ posts

js or python

TheSecondGilbert wrote:

MagicCrayon9342 wrote:

Compiled Languages FTW

Neither JavaScript or Python
fun fact: Python is compiled (into a Python bytecode)

python bytecode is interpreted.





ScratchCatHELLO
I have 5600+ posts, I've been on scratch for 5 1/2 years, I'm a Forum Helper™ and I have a Scratch Wiki account!
I like: Python, CSS, Javascript, Rust



Python 3 Text Adventure
cool new browser game - cursed laughing-crying emoji - Illuminati - you know waterbenders, but do you know stock-imagebenders? - snek - vibin' - Bump song (vevo) - Speed bump - yee - fred - m i c k e y
PkmnQ
Scratcher
1000+ posts

js or python

ScratchCatHELLO wrote:

TheSecondGilbert wrote:

MagicCrayon9342 wrote:

Compiled Languages FTW

Neither JavaScript or Python
fun fact: Python is compiled (into a Python bytecode)

python bytecode is interpreted.
Nobody calls Java interpreted (or at least I haven't heard anyone say that)

This is an account that exists.

Here, have a useful link:
The Official List of Rejected Suggestions by Za-Chary

ISTILLMAKESTUFF
Scratcher
500+ posts

js or python

PkmnQ wrote:

ScratchCatHELLO wrote:

TheSecondGilbert wrote:

MagicCrayon9342 wrote:

Compiled Languages FTW

Neither JavaScript or Python
fun fact: Python is compiled (into a Python bytecode)

python bytecode is interpreted.
Nobody calls Java interpreted (or at least I haven't heard anyone say that)
Java?

Very first post- https://scratch.mit.edu/discuss/topic/565039/ And no, I am totally not embarassed about it. (Especially the blocks)

bigspeedfpv
Scratcher
500+ posts

js or python

TheSecondGilbert wrote:

MagicCrayon9342 wrote:

Compiled Languages FTW

Neither JavaScript or Python
fun fact: Python is compiled (into a Python bytecode)
if we're going based on that, so is JS

cat throwing brick at camera transparent dot gif
https://bigspeed.me
TheSecondGilbert
Scratcher
100+ posts

js or python

bigspeedfpv wrote:

TheSecondGilbert wrote:

MagicCrayon9342 wrote:

Compiled Languages FTW

Neither JavaScript or Python
fun fact: Python is compiled (into a Python bytecode)
if we're going based on that, so is JS
I wonder where JavaScript is compiled to. WebAssembly? JIT?

Last edited by TheSecondGilbert (Feb. 15, 2023 06:11:16)


Hi! This is an alt of my main account.
I'm “back” from a 10-month hiatus.
I forgot the ways of the forums, so I might be wrong.
My first post!
bigspeedfpv
Scratcher
500+ posts

js or python

TheSecondGilbert wrote:

bigspeedfpv wrote:

TheSecondGilbert wrote:

MagicCrayon9342 wrote:

Compiled Languages FTW

Neither JavaScript or Python
fun fact: Python is compiled (into a Python bytecode)
if we're going based on that, so is JS
I wonder where JavaScript is compiled to. WebAssembly? JIT?
not sure how it works with other engines, but V8 has two components - Ignition, which interprets JS (compiles to bytecode), and Turbofan, which generates optimized machine code in the background. that's why V8 based platforms like Chrome and Node have a warm-up period
here's an article from when Turbofan launched: https://v8.dev/blog/launching-ignition-and-turbofan

cat throwing brick at camera transparent dot gif
https://bigspeed.me
uwv
Scratcher
1000+ posts

js or python

bigspeedfpv wrote:

not sure how it works with other engines
really similarly, for example JSC (JavaScriptCore) has 4 tiers of execution with each being faster than the last
  1. Interpreter - just javascript bytecode interpreter
  2. Baseline JIT - first level of JIT'd javascript bytecode, unoptimized
  3. DFG (Data Flow Graph) JIT - optimized machine code using data flow analysis
  4. FTL (Faster Than Light) JIT - highly optimized machine code based off of the B3 JIT compiler, previously based off LLVM
also javascriptcore is really really really fast, comparable to if not faster than v8 in most situations

i use arch linux (btw) with the linux zen kernel and enjoy writing silly things in silly languages using silly frameworks
ajskateboarder
Scratcher
1000+ posts

js or python

CST1229 wrote:

(and also that JavaScript can be used for web development (i know brython exists btw))
Honestly, the languages should be seperated from each other along with their purposes. In a web-based context, JavaScript should be strictly for web/frontend development and Python should be used for backends.

Trying to mix the two just makes your stack strange. Brython ports just enough functionality to write a Python equivalent of JavaScript for the browser. You can't actually use the neat package ecosystem (no Pandas :cry:) And JavaScript on the backend is sort of annoying since you need a bunch of packages that would be available with Python and also JS modules are terrible (CommonJS and ModuleJS compatibility pains)

MagicCrayon9342 wrote:

Compiled Languages FTW

Neither JavaScript or Python
I'd like to see you use a compiled language

Last edited by ajskateboarder (Feb. 15, 2023 13:39:07)

completeness
Scratcher
100+ posts

js or python

ajskateboarder wrote:

I'd like to see you use a compiled language
Holy smokes! Shots fired!
ajskateboarder
Scratcher
1000+ posts

js or python

completeness wrote:

ajskateboarder wrote:

I'd like to see you use a compiled language
Holy smokes! Shots fired!
OK WE GET IT completeness, you make programs in C under your rock, congrats with the cool kid points

Last edited by ajskateboarder (Feb. 15, 2023 21:21:42)

SAVVYSCLUTTER
Scratcher
500+ posts

js or python

Python is better for running locally; JS is better for building advanced webpages.

I deleted my account on 9 June 2023. My best projects are still on Scratch. Visit my website for my latest work.
Zachary13265
Scratcher
49 posts

js or python

gosoccerboy5 wrote:

Javascript is better than python on infinity counts

You don't prep me!
WojtekGame
Scratcher
1000+ posts

js or python

JavaScript is good on modding scratch-gui and other LLK repos, Python on the other hand can be used for data, cloud variables and other stuff!


forgot to update sig, i own minecraft months ago lol
JS: code-gui | scratch-player | Roost.js | Pandoa | TOP: Roost.js || C++: Gamine | Gamiinuu | TOP: Gamine
Else: Emoji Painter | Forum Shopping Mall | TOP: Emoji Painter || Profile:Scratch | GitHub
Orgs: Chroast | Twerkish | Komond OS | JS Inventions | TOP: JS Inventions || Ocular Naming: 0 | 1 | 2 | 3
Games: Mom Hid My Game! | Creeper Adventuring
else might be outdated or removed by the ST.
BreadcatGames
Scratcher
1000+ posts

js or python

WojtekGame wrote:

JavaScript is good on modding scratch-gui and other LLK repos, Python on the other hand can be used for data, cloud variables and other stuff!
I think they mean for general use.
MagicCrayon9342
Scratcher
1000+ posts

js or python

Looking to general use is unideal, you should use the language best for what you want to do

Last edited by MagicCrayon9342 (Feb. 16, 2023 20:52:43)


AmazingMech2418
Scratcher
1000+ posts

js or python

MagicCrayon9342 wrote:

Looking to general use is unideal, you should use the language best for what you want to do
Both languages can be used for pretty much anything, just JavaScript and Python have different library sets that make certain things easier. Ultimately, general use is probably the best way to look at these languages specifically!

I'm a programmer, ethical hacker, and space nerd!

Last edited by Neil Armstrong (July 20, 1969 20:17:00)












sam
ajskateboarder
Scratcher
1000+ posts

js or python

MagicCrayon9342 wrote:

Looking to general use is unideal, you should use the language best for what you want to do
Well there's a reason it's called general use… because many tasks can completed under those languages. Any language with a large and competent ecosystem can fall under the general-purpose paradigm. Most languages for general use can solve problems developers face.

Of course, if you have an edge-case like blazingly fast speeds or memory safety, you should look to languages which are tailored for such tasks, like Rust or Zig or something

Powered by DjangoBB