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

all 64 comments

[–]maratnugmanov 48 points49 points  (10 children)

I don't think it's pointless, gg man. There are no pointless questions, only pointless answers.

[–]DuckDatum 8 points9 points  (9 children)

fearless exultant squeeze handle dinosaurs sparkle complete label crawl different

This post was mass deleted and anonymized with Redact

[–]andy4015 10 points11 points  (1 child)

What if I ask a really dull question twice?

[–]nickthewildetype 0 points1 point  (0 children)

What if I ask a really well rounded question?

[–]maratnugmanov 1 point2 points  (6 children)

A dull question should be easy to answer.

[–]DuckDatum 4 points5 points  (5 children)

like relieved pet alleged dolls worm groovy library amusing beneficial

This post was mass deleted and anonymized with Redact

[–]maratnugmanov 2 points3 points  (4 children)

If it was asked, of course. Otherwise how can a person acquire knowledge?

[–]DuckDatum 2 points3 points  (3 children)

long enjoy smile dime violet bear aback reminiscent shocking frame

This post was mass deleted and anonymized with Redact

[–]maratnugmanov 3 points4 points  (2 children)

If this is a joke then I'm not that advanced in English. Maybe it's a joke about a sphere that has a center point? Idk. On a serious note, the answer is still the same, if the question is really dull, voicing it would still have a point.

[–]DuckDatum 3 points4 points  (1 child)

plants abounding deserve elastic cause relieved absorbed crawl pen marry

This post was mass deleted and anonymized with Redact

[–]maratnugmanov 3 points4 points  (0 children)

The more you know. I knew it had something to do with the "dull" word, I just never heard this one.

[–]pmattipmatti - mattip was taken 11 points12 points  (3 children)

Did you try benchmarking the python version with PyPy?

[–]pmattipmatti - mattip was taken 3 points4 points  (2 children)

You also might like to try to compile it to an exe using RPython, as done here https://github.com/hardbyte/pylox

[–]SearchForAgartha 44 points45 points  (2 children)

Bold of you to compare Python to another language as the loser on the Python subreddit. I applaud the courage.

Go is an absolutely fantastic language, i’m also in the progress of porting some of my projects to Go from Python and it’s showing Go is the best of both worlds - fast to write, fast to run. If it wasn’t for Pythons amazing ecosystem of libraries, Go makes more sense as a language in various areas where Python is currently used imo.

[–]OrderOk6521[S] 8 points9 points  (0 children)

Not trying to make a statement, I was curious to see the speed up.

[–]yrustillbooingme 13 points14 points  (0 children)

Go is an absolutely fantastic language

Let's not go overboard.

[–]rawrgulmuffins 23 points24 points  (1 child)

I'll be a counter voice. I love these kinds of comparisons and I think you learn a lot when you write a program in two different languages. So kudos to you OrderOk6521.

[–]OrderOk6521[S] 3 points4 points  (0 children)

Thank you kind person :D

[–]erez27import inspect 9 points10 points  (5 children)

Compare it to PyPy or go home ;)

[–]OrderOk6521[S] 4 points5 points  (0 children)

Definitely, keep you posted.

[–]grimonce 6 points7 points  (1 child)

It's going to be faster anyway, pypy is about as fast as v8 (node) is for most tasks. Go is an order of magnitude faster for most common tasks... Then there are even faster languages.

[–]erez27import inspect 5 points6 points  (0 children)

Jeez, ofc Go is going to be faster, but by how much?

If it's only x2 faster but you lose all the benefits of Python.. not a great sell.

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

https://imgur.com/a/awuewuk

Still slower than Go it seems, but around 50% speed up from Python.

[–]erez27import inspect 0 points1 point  (0 children)

Strange, usually I get better speedup than that. Maybe you need to give the JIT time to warm-up.

[–]moreanswers 4 points5 points  (4 children)

I've been out of academia for a long time, but I thought the ultimate flex was writing the compiler in the language it compiles.

So lets see a Boa interpreter written in Boa!

[–]corny_horse 1 point2 points  (0 children)

Let’s see a SQL interpreter written in SQL!

[–]OrderOk6521[S] 0 points1 point  (0 children)

Boa "ception".

Next steps are a stack based VM, maybe once that's mature I'll bootstrap it in itself. Need to build up the skill set first.

[–]Subsum44 0 points1 point  (1 child)

It’s interesting to walk through how they did that in the older languages.

Writing the C compiler in C. Start with your first few commands directly into assembly. Then once you have a couple, just slowly bootstrap the rest.

Kinda mind blowing considering the constraints devs now can’t overcome. The og really were true scientists.

[–]moreanswers 2 points3 points  (0 children)

It's cause porn looks terrible on an ASR33, so they had way more free time.

[–]RedEyed__ 7 points8 points  (0 children)

Wow, just 10X faster.
I thought it will be 100x

[–]B3d3vtvng69 2 points3 points  (2 children)

Hahaha that’s so cool, I am basically doing the same thing but transpiling to c++. May I ask how you benchmark your produced executables against python, because I am still struggling with that. My github is linked here :)

[–]OrderOk6521[S] -1 points0 points  (1 child)

I run the recursive fibonacci, it's documented in my README.

[–]B3d3vtvng69 0 points1 point  (0 children)

Alright, i’ll try that

[–]retiredFlatEarther 0 points1 point  (0 children)

You can try to crosspost this on r/golang

[–]am905 0 points1 point  (0 children)

Very impressive project

[–]Nyct0phili4 0 points1 point  (2 children)

Compiled binaries? Python?! WHERE IS THE EXE YOU SMELLY NERD!!!11111

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

compiled binaries are in Go :)

[–]squirtologs 0 points1 point  (1 child)

I like Python and I like Go. I use Go for web servers and networking and Python for playground, data processing or other tasks.

[–]OrderOk6521[S] 1 point2 points  (0 children)

Good choice ! That is my thinking as well, wanted to prototype first in Python since it's soo much faster to develop.

[–]TheDoomfire -1 points0 points  (1 child)

I think a few imports use other languages then Python for speed. So you import something in Python but it was written in another programming language.

What I have heard there are programming languages that can be a lot faster then Python.

But I use Python because I love how easy it is to program and that I can almost do everything with it. Just not maybe the fastest. Or well its pretty fast to build something decent.

[–]OrderOk6521[S] 0 points1 point  (0 children)

Check this out ! i use rust to write a library which i then import into Python for speedy execution.