eo
eo copied to clipboard
EOLANG, an Experimental Pure Object-Oriented Programming Language Based on 𝜑-calculus
`duplicated-names` does not check across files within a package. ``` # File: my-test-1.eo # Erased during compilation` []` > my-test eq. > @ 1 0 # File: my-test-2.eo # Got...
Consider this python code ``` while True: break ``` We can translate it this way ``` goto [doBreak] TRUE.while doBreak.forward 0 ``` Now consider this: ``` flag = 5 while...
The following two pieces of code should be syntactically equivalent: `singleline.eo` ``` (dir "/tmp").walk * ([f] (f.is-dir > @)) ``` `multiline.eo` ``` walk. dir "/tmp" * [f] f.is-dir > @...
Object `Float` has the following definition: ``` +package org.eolang +rt jvm org.eolang:eo-runtime:0.0.0 [value] > Float # Sum of $ and x [x] > add Float (^.value.add (x.float.value)) > @ #...
This test fails: ``` [] > x [y] > add1 y.add 1 > @ (* add1) > arr (arr.get 0) 33 > @ ```
this test exhausts all heap and crashes jvm https://github.com/cqfn/eo/runs/4616635006?check_suite_focus=true ``` Caused by: org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process Java heap space java.lang.OutOfMemoryError: Java heap space at java.base/java.util.Arrays.copyOf(Arrays.java:3537)...
How about we create a new EO atom, which will represent Java objects. For example: ``` +alias org.eolang.java [] > main stdout sprintf "Today is %s" (java.new "java.util.Date").toString ``` Here,...
`Param` & `Dataized` & `Data.ToPhi` do similar operations `Dataized` almost not used directly. `ToPhi` always consumes results of `Param` Proposal: 1) Join `Param` and `Dataized` 2) Make `Dataized` implement `Phi`...
Let's introduce a new object `ram`, which will have just two sub-atoms: ``` [size] > ram [p b] > write /bool [p] > read /bytes ``` It should be possible...
This issue was created to track compilation speed. At the moment, compiling a simple script takes about 20 seconds, while, for example, compiling a small Java file takes less 1...