3 ms·
Noob question. What does it mean to say that a language is "python-based"? Python is itself a language. Does it mean the parser/compiler is written in Python?
by tenaciousDaniel 5y ago
Noob question. What does it mean to say that a language is "python-based"? Python is itself a language. Does it mean the parser/compiler is written in Python?
- chomp 5y agoIn this instance, it means that it has a Python-compatible syntax.
- shoulderchipper 5y ago> Seq is a Python-compatible language, and the vast majority of Python programs should work without any modifications https://github.com/seq-lang/seq https://github.com/seq-lang/seq
- BiteCode_dev 5y ago> "Seq enables users to write high-level, Pythonic code without having to worry about low-level or domain-specific optimizations, and allows for the seamless expression of the algorithms, idioms and patterns found in many genomics or bioinformatics applications. " I gave it a look, and indeed it's not complete python, it will break if you start using the language/stdlib features. Stdlib modules I couldn't import: - sqlite3 - urllib - pathlib - hashlib - json Infra unavailable: - Debug mode - pip/venv - shell Syntax/built in that didn't work: - byte and complex literals - type() - Some unpacking (E.g: [*[0]]) - raise from - async/await It also adds incompatible syntax that is not python, such as 's""' and '|>'. So despite what that the README says "the vast majority of Python programs should work without any modifications", it's actually the opposite. The project has real value though, you just need to understand that what you buy here.