Comments (3)
+1 for such simplification and consistency :)
from mojo.
I don't think we should rename InlineList
to Array
. Have you seen the original conversation that added the type at #2294 (comment)?
from mojo.
I hadn't seen that specific comment. This is literally the first time I hear that Python has an array type (might have heard once and forgot) and I've been using Python since I'm a kid... people mostly use a list and forget about it (we all know Python isn't for performance), those who care about performance might have code that uses python's array (who? most will have migrated no numpy/use pandas), but most likely in a very easy way to migrate by just using Mojo's List constructor.
I think devs from the following languages might come into Mojo:
- Go: Array as fixed size
- Rust: Array as fixed size
- Zig: Array as fixed size
- Javascript: Array as heterogeneous List
- PHP: Array as heterogeneous List
- Ruby: Array as heterogeneous List
- Java: Array as fixed size
- Python: Array as homogeneous List
- C: Array as fixed size
- C++: Array as fixed size
- Swift: Array as homogeneous List
- C#: Array as fixed size
- Ocaml: Array as fixed size
- Perl: Array as fixed size
- SQL: (DBs that support it) Array as fixed size
Any dev that comes into a language looks for collection types and learns them. InlineList will be a hard one to sell IMO.
from mojo.
Related Issues (20)
- [BUG] Crash when declaring a nested struct with a variable of the same type HOT 2
- [Modular CLI] install modular command tool without require root permissions HOT 4
- [BUG] crash when first trying to debug a mojo app in VSCode using WSL VS Code Server: "free(): invalid pointer"
- [Feature Request] Merge `init_pointee_move` and `move_pointee_into`.
- [BUG] trouble reading a file HOT 2
- [BUG] rounding error with UInt32 HOT 2
- [Feature Request] A `Type[AnyStruct | AnyClass | etc]` operator that returns the type's interface (as a trait)
- [BUG] Sneaky ternary operator bugs
- [BUG] Varaint Types using function types Don't Allow Parameters When calling the function.
- [BUG] Values get set to 1 when passing one Scalar into another Scalar's constructor HOT 3
- [BUG] crash when passing offset DTypePointer into Tensor
- [BUG] Unsigned integer casting overflowing as if signed when using `int()` or `UInt32()` HOT 5
- [BUG] modular: error: failed to run script
- Implement arithmetic operators for `UInt`
- [BUG] math/numeric functions weird behavior with float16 types HOT 5
- [BUG] question about writing to file
- [BUG] Cannot materialize a capturing closure
- [Docs] the "random" module should not be imported by default HOT 2
- [BUG] Index out of bound with nested list literals
- [Feature Request] Allow __get_item__ calls to use a mix of colon slices and integers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mojo.