StarWarsArrays.jl
hebigo
StarWarsArrays.jl | hebigo | |
---|---|---|
10 | 21 | |
122 | 21 | |
- | - | |
0.0 | 1.9 | |
almost 2 years ago | about 1 year ago | |
Julia | Python | |
GNU General Public License v3.0 or later | Mozilla Public License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
StarWarsArrays.jl
- Star Wars Arrays
- It starts at 0 right?
-
PyCharm is the worst IDE I have used. /s
I raise you https://github.com/giordano/StarWarsArrays.jl
-
How do some of my coworkers still use ML
Why not Star Wars Indices (4,5,6,1,2,3,7,8,9...)? https://github.com/giordano/StarWarsArrays.jl
-
Dealing with strings in Julia, patterns and anti-patterns
> The documentation disagrees about string indices not starting with 1 As priorly said, I'm speaking about strings, not `String` in particular. So, to write code which work for all AbstractString (which have basic string functions), you must not assume that the first indexing is 1, you can have degenerate cases such as : https://github.com/giordano/StarWarsArrays.jl (this is for vectors, but creating a similar type, for AbstractString isn't impossible) or just strings with an offset indexing.
-
The counter-intuitive rise of Python in scientific computing
There are other choices like https://github.com/simonster/TwoBasedIndexing.jl and https://github.com/giordano/StarWarsArrays.jl if you do not like 1-based indexing.
-
PyTorch: Where we are headed and why it looks a lot like Julia (but not exactly)
This is a total non issue as indexing is an operation that is subject to multiple dispatch. For a humorous example see https://github.com/giordano/StarWarsArrays.jl
-
Arrays start from bony[1]
The cool thing with Julia is that array indices aren't inherent properties, and may be changed locally by using appropriate wrappers. This means that the same underlying array may start at 0 in one part of the code, at 1 in another, and perhaps use the star-wars indexing in yet another section if that's necessary.
-
Why does Julia adopt 1-based index?
Adding https://github.com/giordano/StarWarsArrays.jl to the list for some extra spice
-
some may hate it, some may love it
You should also check out https://github.com/giordano/StarWarsArrays.jl and https://github.com/giordano/RandomBasedArrays.jl
hebigo
-
What is the point of the if __name__ == "__main__":, i.e. why use a file as both script and module?
The Lissp transpiler incrementally compiles and executes each top-level form to Python. It needs to do this in case there's a macro definition that might affect the compilation of a subsequent form. If it's only executing definitions, this is harmless, but if you want to precompile the main module, it needs the guard, or the side effects will happen too.
-
What's the most hilarious use of operator overloading you've seen?
If you want Python to be as customizable as Lissp, check out Hissp (and Hebigo).
-
Want cleaner code? Use the rule of six
Python's lambdas can have as many lines as you want. Just wrap parens around it. Hissp uses this form as a compilation target. Its REPL shows the Python compilation. Play around with it til you get it: https://github.com/gilch/hissp
- What would be your “perfect” programming language?
- Kamby – A programming language based on Lisp that doesn't seems like Lisp
- Wisp: Whitespace to Lisp
-
Is ECMAScript really a dialect of Lisp?
The original Lisp's S-expression syntax was just supposed to be an intermediate language used by the compiler when processing the real language based on M-expressions, which kind of never took off. Numerous alternatives to S-expressions have been proposed, and some retain homoiconicity, another feature diagnostic of a Lisp (and one that ECMAScript lacks). For example, see Hebigo's readme, which shows a direct correspondence between its Python-like syntax and that of Hissp's default reader (Lissp), which uses the S-expressions. Julia can also be written in S-expressions, but this usually only used in macro definitions.
- Why Hy?
-
Land of Lisp
I think LoL is too CL-specific. If you know both languages first, you can pretty much translate, but since they'd be trying to learn Lisp in the first place, this is a bad idea.
On the other hand, [Hissp][1] has a pretty good tutorial for anyone coming from a Python background.
[1]: https://github.com/gilch/hissp
-
Interesting or distinctive lisps?
Hebigo: a whitespaceLisp isomorphic to Hissp that looks like Python.
What are some alternatives?
OffsetArrays.jl - Fortran-like arrays with arbitrary, zero or negative starting indices.
hy - A dialect of Lisp that's embedded in Python
TailRec.jl - A tail recursion optimization macro for julia.
hy-lisp-python - examples for my book "A Lisp Programmer Living in Python-Land: The Hy Programming Language"
TwoBasedIndexing.jl - Two-based indexing
slime - The Superior Lisp Interaction Mode for Emacs
Cython - The most widely used Python to C compiler
smtfmt - An SMT-LIB formatter.
wenyan - 文言文編程語言 A programming language for the ancient Chinese.
smart-imports - smart imports for Python
BinaryBuilder.jl - Binary Dependency Builder for Julia
coalton - Coalton is an efficient, statically typed functional programming language that supercharges Common Lisp.