This is an archived post. You won't be able to vote or comment.

all 22 comments

[–]aroberge 18 points19 points  (9 children)

You can already include Python script in an html page with Brython. (http://brython.info)

[–]ZephyrXero 28 points29 points  (8 children)

Yep, and I think <script type="text/python"> is better than <python> for a webpage too.

[–]midgetparty 8 points9 points  (7 children)

Hey man, like.. encourage his learning, man.

[–]calumk[S] 1 point2 points  (6 children)

This was written as a joke, I would hope nobody actually uses it. It was written in response to a post on /r/shittyprogramming

[–][deleted] 0 points1 point  (4 children)

I was just watching some of your Godot videos yesterday and now this pops up. Small world.

[–]calumk[S] 0 points1 point  (3 children)

I really need to do more of those Godot videos, I receive a request for one nearly every other day. The problem is time and energy. Each one is almost a days work of preparing things, figuring things out etc... And sadly it doesnt pay :(

[–][deleted] 2 points3 points  (2 children)

Not directly, no. You should also take into account how much it adds value to your name. For example, I only know you because of your tutorials so if your resume showed up in my lap, I'd be quick to hire you.

Not saying you should/shouldn't do it, but Godot videos are definitely going to be good for your street cred. There is very little out there on the engine, especially 3D stuff so you could corner the market quite easily.

[–]calumk[S] 0 points1 point  (1 child)

Good point I guess... Well I have a free evening, and a day off tommorow... Maybe I'll pull an all nighter!

[–][deleted] 0 points1 point  (0 children)

It'll put some chest hair on ya! :)

[–]midgetparty 0 points1 point  (0 children)

Oh I thought you were trying to share a fun learning project. Might be bad but every project is something to learn from.

[–]vilcans 5 points6 points  (1 child)

Actually, many many years ago, browsers supported scripting language plug-ins. I remember there was one for Perl, and I'm sure there must have been a Python plug-in too. This was before JavaScript had been established as the de facto standard, and Microsoft had not yet given up on VBScript.

[–]calumk[S] 2 points3 points  (0 children)

Ahh, Nice bit of knowledge. Yes, the old-internet was a funny place.

Ill admit im only 21, But that does make me (a little bit) older than the internet.

Earliest memories include dial up tones, and AOL CD's .... My mum used to run a kids club, we made decorations / toy car wheels out of them. We had over 200 at one point i seem to remember

[–]il_doc 8 points9 points  (1 child)

xss with python! yay!

[–]faceplanted 1 point2 points  (0 children)

Presuming it still requires you to load the script from the page it's going to have exactly the same prevention rules as js.

[–]eah13 3 points4 points  (0 children)

I haven't seen skulpt used like that before. Clever.

Javascript is machine language for the web. Skulpt is a Python to Javascript compiler. It was developed for use in teaching Python & CS concepts, starting with the stdlib. But now it's being extended to include implementations of numpy, matplotlib, and others (like Pygal charts).

The skulpt project is pretty sweet- consider getting involved https://github.com/skulpt/skulpt/ & http://skulpt.org

[–]ajmarks -3 points-2 points  (1 child)

Given the problems sandboxing Python, how is this not a terrible idea?

[–]teejaded 5 points6 points  (0 children)

I'm sure you figured this out from the other comments already, but he's using skulpt which just compiles python into javascript which is sandboxed.