node-bignum
MicroPyScript
node-bignum | MicroPyScript | |
---|---|---|
1 | 33 | |
422 | 57 | |
- | - | |
10.0 | 10.0 | |
over 3 years ago | 10 months ago | |
JavaScript | JavaScript | |
- | Apache 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.
node-bignum
-
Microsoft is bringing Python to Excel
> Many languages that are considered "precision" languages have some form of suffix to denote large/long/arbitrary-sized literals. (C# there's a big useful difference if a literal ends with `m` or `l`.)
The failure mode is significantly different when comparing JS to other mainstream languages. Most languages have a "checked" mode (either opt-in or mandatory) so that expressions like `4611686018427387904 + 4611686018427387904` can raise an error, whereas JS will just give you the wrong answer. Python is the most ergonomic for beginners or non-developers because the runtime will convert an integral type to an arbitrary precision integer on overflow.
Yes, there are alternative primitives that can be used, but you need to know they exist. We're talking about a tool that is explicitly designed for people who are not professional programmers, and JS's behavior here is surprising unless you understand the underlying data model. I would personally much rather give beginners a tool incorporating as few footguns as possible.
> JS is a language with the tools today to do precision arithmetic (whether you like it or not)
Arbitrary precision arithmetic has been possible in JS since the language was invented, but it has always been a pain. The bignum NPM package[0] predates the BigInt numeric primitive by 9 years. The addition of `BigInt` to ES2020 was important for performance (since implementing an arithmetic primitive in JS makes calculations dog slow), but it didn't add any fundamental affordances to the language.
[0]: https://github.com/justmoon/node-bignum
MicroPyScript
-
Learn WebAssembly by writing small programs
> And currently using anything but C, C++ or Rust isn't feasible
Someone should tell Anaconda that they can't do this, then: https://pyscript.net/
-
Microsoft is bringing Python to Excel
There's https://pyscript.net/ -- or do you mean for scripting the browser's behaviour rather than replacing JS in website code?
-
Icepool: Python dice probability package
Icepool is a Python package. If you know Python, you have a head start in understading Icepool's syntax. Icepool is written in pure Python and has no dependencies other than the Python Standard Library, allowing you to run it in most places you can run Python. You can directly interoperate Icepool with the extensive Python ecosystem, including Numpy, Matplotlib, and Pandas. Recent projects such as Pyodide, JupyterLite, and PyScript allow Icepool to interoperate with JavaScript, allowing you to make your own web applications using Icepool.
- Should i quit Django and move to node JS
-
Javascript alternative to anydice?
But we're not stuck with one or the other. Python-JS interop has improved greatly in recent years with projects like Pyodide, JupyterLite, and PyScript. Often my strategy is to do the probability in Python and use JS for visualization, as you can see in this ability score calculator or this AnyDice-like interface.
-
Lua: The Little Language That Could
same was done for other languages too, like Python https://pyscript.net/
-
But how do I do this in Python?
Finally, there's PyScript. The dream of many Python developers, PyScript allows Python to run in the browser using WebAssembly. As someone who never fully mastered JavaScript, I find this particularly appealing.
- After tearing my hair out writing JavaScript the last few days how close are we to Python in the browser?
-
From website (javascript) to program (python), how?
I assume your goal is to write the least amount of JavaScript. There's actually a way to run Python in your browser. Take a look at pyscript.net. Not everything is supported, however, so you'd have to check whether the dependencies of the tools you have developed can run.
-
How to make a Python small project using HTML and CSS? I am a beginner.
PyScript. I made a small single-page site that translates code into english with it. Really neat learning experience.
What are some alternatives?
xlwings - xlwings is a Python library that makes it easy to call Python from Excel and vice versa. It works with Excel on Windows and macOS as well as with Google Sheets and Excel on the web.
blobby-generator - Generative SVG blob characters.
ironclad - CPython API compatibility layer for IronPython
reflex - πΈοΈ Web apps in pure Python π
CopyQ - Clipboard manager with advanced features
vuepython - Edit and run Python code in Vuejs
grist-core - Grist is the evolution of spreadsheets.
fengari-phaser-tutorial-02
Blobby - Generative SVG blob characters
netspeed_pc - Monitor live bandwidth usage/ network speed on PC. Native version also available for Android, separately.
nicegui - Create web-based user interfaces with Python. The nice way.
icepool - Python dice probability package.