Hacker News new | past | comments | ask | show | jobs | submit login

Ok. If they offer Python without the GIL then I'm all ears :)



I don't think python is ever going to get rid of the GIL. I haven't looked but there's two things that may speed things up quite a bit: - Use native types - Provide the ability to turn "off" the GIL if you know you will not be using multi-threading within a process.

I guess that is my naive wish list for a short term speed up :)


Jython doesn't have a gil, but It doesn't support python3, and I've never used it.


Jython would also have issues with the many c libraries that python code relies on today.


Numba might be what you're looking for: http://numba.pydata.org/


That looks really interesting. I'll definitely be trying it out. Thanks!!!


A pythonic language that included something analogous to Golangs channels/goroutines would be my ideal.


Julia does have channels similar to those of Go, although if you want to call it pythonic or not is up to you.


I've seen hype for Julia over and over, but this is the first piece of information that's made me genuinely interested.

Thanks for the heads up!

EDIT: Oh god it's 1 indexed


While people discuss a lot about it, in the end 1 indexing doesn't really matter. I think it comes from fortran/matlab.


I agree, it doesn't really matter, but I've been programming long enough that I can see it being that top step that's always half an inch too tall that I'm going to stub my toe on.


For sure, I switch between python, C/C++ an julia a lot and well, lets say bounds errors are pretty common for me.


The "idiomatic" way to access the first element in an array/sequence in julia is to use the `first` function, e.g. `first(arr)` vs. `arr[1]`. This works across a larger number of array types, including OffsetArrays with 0-based index offsets.


My advice would be to use begin and end. Then you don't have to think about the indexing.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: