Skip to content

Commit 425e44e

Browse files
committed
0.51.3
1 parent 6999eb8 commit 425e44e

File tree

110 files changed

+1186
-1192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+1186
-1192
lines changed

make/jvm/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ SOFTWARE.
2828
<artifactId>jvm</artifactId>
2929
<version>1.0-SNAPSHOT</version>
3030
<properties>
31-
<eo.version>0.50.2</eo.version>
31+
<eo.version>0.51.3</eo.version>
3232
<stack-size>32M</stack-size>
3333
<heap-size>2G</heap-size>
3434
</properties>

objects/org/eolang/bytes.eo

Lines changed: 46 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
+architect yegor256@gmail.com
2525
+home https://github.com/objectionary/eo
2626
+package org.eolang
27-
+rt jvm org.eolang:eo-runtime:0.50.2
27+
+rt jvm org.eolang:eo-runtime:0.51.3
2828
+rt node eo2js-runtime:0.0.0
29-
+version 0.50.2
29+
+version 0.51.3
3030

3131
# The object encapsulates a chain of bytes, adding a few
3232
# convenient operations to it. Objects like `int`, `string`,
@@ -35,27 +35,55 @@
3535
data > @
3636
$ > as-bytes
3737
eq 01- > as-bool
38-
3938
# Turn this chain of eight bytes into a number.
4039
# If there are less or more than eight bytes, there will
4140
# be an error returned.
42-
[] > as-number
43-
if. > @
44-
eq nan.as-bytes
45-
nan
41+
if. > as-number
42+
eq nan.as-bytes
43+
nan
44+
if.
45+
eq positive-infinity.as-bytes
46+
positive-infinity
4647
if.
47-
eq positive-infinity.as-bytes
48-
positive-infinity
48+
eq negative-infinity.as-bytes
49+
negative-infinity
4950
if.
50-
eq negative-infinity.as-bytes
51-
negative-infinity
52-
if.
53-
size.eq 8
54-
number ^
55-
error
56-
sprintf
57-
"Can't convert non 8 length bytes to a number, bytes are %x"
58-
* ^
51+
size.eq 8
52+
number $
53+
error
54+
sprintf
55+
"Can't convert non 8 length bytes to a number, bytes are %x"
56+
* $
57+
# Turn this chain of eight bytes into a i64 number.
58+
# If there are less or more than eight bytes, there will
59+
# be an error returned.
60+
if. > as-i64
61+
size.eq 8
62+
i64 $
63+
error
64+
sprintf
65+
"Can't convert non 8 length bytes to i64, bytes are %x"
66+
* $
67+
# Turn this chain of four bytes into a i32 number.
68+
# If there are less or more than four bytes, there will
69+
# be an error returned.
70+
if. > as-i32
71+
size.eq 4
72+
i32 $
73+
error
74+
sprintf
75+
"Can't convert non 4 length bytes to i32, bytes are %x"
76+
* $
77+
# Turn this chain of two bytes into a i16 number.
78+
# If there are less or more than two bytes, there will
79+
# be an error returned.
80+
if. > as-i16
81+
size.eq 2
82+
i16 $
83+
error
84+
sprintf
85+
"Can't convert non 2 length bytes to i16, bytes are %x"
86+
* $
5987

6088
# Equals to another object.
6189
# A condition where two objects have the same value or content.
@@ -68,42 +96,6 @@
6896
# Represents a sub-sequence inside the current one.
6997
[start len] > slice /org.eolang.bytes
7098

71-
# Turn this chain of eight bytes into a i64 number.
72-
# If there are less or more than eight bytes, there will
73-
# be an error returned.
74-
[] > as-i64
75-
if. > @
76-
size.eq 8
77-
i64 ^
78-
error
79-
sprintf
80-
"Can't convert non 8 length bytes to i64, bytes are %x"
81-
* ^
82-
83-
# Turn this chain of four bytes into a i32 number.
84-
# If there are less or more than four bytes, there will
85-
# be an error returned.
86-
[] > as-i32
87-
if. > @
88-
size.eq 4
89-
i32 ^
90-
error
91-
sprintf
92-
"Can't convert non 4 length bytes to i32, bytes are %x"
93-
* ^
94-
95-
# Turn this chain of two bytes into a i16 number.
96-
# If there are less or more than two bytes, there will
97-
# be an error returned.
98-
[] > as-i16
99-
if. > @
100-
size.eq 2
101-
i16 ^
102-
error
103-
sprintf
104-
"Can't convert non 2 length bytes to i16, bytes are %x"
105-
* ^
106-
10799
# Calculate the bitwise and operation.
108100
[b] > and /org.eolang.bytes
109101

objects/org/eolang/cti.eo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
+architect yegor256@gmail.com
2424
+home https://github.com/objectionary/eo
2525
+package org.eolang
26-
+version 0.50.2
26+
+version 0.51.3
2727

2828
# Compile Time Instruction (CTI).
2929
#

objects/org/eolang/dataized.eo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
+architect yegor256@gmail.com
2424
+home https://github.com/objectionary/eo
2525
+package org.eolang
26-
+version 0.50.2
26+
+version 0.51.3
2727

2828
# The object dataizes `target`, makes new instance of `bytes` from given data and behaves as result
2929
# `bytes`.

objects/org/eolang/error.eo

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
+architect yegor256@gmail.com
2424
+home https://github.com/objectionary/eo
2525
+package org.eolang
26-
+rt jvm org.eolang:eo-runtime:0.50.2
26+
+rt jvm org.eolang:eo-runtime:0.51.3
2727
+rt node eo2js-runtime:0.0.0
28-
+version 0.50.2
28+
+version 0.51.3
29+
+unlint unit-test-missing
2930

3031
# This object must be used in order to terminate the program
3132
# due to an error. Just make a copy of it with any encapsulated object.

objects/org/eolang/false.eo

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
+architect yegor256@gmail.com
2424
+home https://github.com/objectionary/eo
2525
+package org.eolang
26-
+version 0.50.2
26+
+version 0.51.3
27+
+unlint unit-test-missing
2728

2829
# The object is a FALSE boolean state.
2930
[] > false

objects/org/eolang/fs/dir.eo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
+architect yegor256@gmail.com
2525
+home https://github.com/objectionary/eo
2626
+package org.eolang.fs
27-
+rt jvm org.eolang:eo-runtime:0.50.2
27+
+rt jvm org.eolang:eo-runtime:0.51.3
2828
+rt node eo2js-runtime:0.0.0
29-
+version 0.50.2
29+
+version 0.51.3
3030

3131
# Directory in the file system.
3232
# Apparently every directory is a file.

objects/org/eolang/fs/file.eo

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@
2424
+architect yegor256@gmail.com
2525
+home https://github.com/objectionary/eo
2626
+package org.eolang.fs
27-
+rt jvm org.eolang:eo-runtime:0.50.2
27+
+rt jvm org.eolang:eo-runtime:0.51.3
2828
+rt node eo2js-runtime:0.0.0
29-
+version 0.50.2
30-
+unlint broken-ref
29+
+version 0.51.3
3130

3231
# The file object in the filesystem.
3332
[path] > file

objects/org/eolang/fs/path.eo

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
+architect yegor256@gmail.com
3030
+home https://github.com/objectionary/eo
3131
+package org.eolang.fs
32-
+version 0.50.2
33-
+unlint broken-ref
32+
+version 0.51.3
3433

3534
# A `path` represents a path that is hierarchical and composed of a sequence of
3635
# directory and file name elements separated by a special separator or delimiter.
@@ -42,6 +41,13 @@
4241
string uri.as-bytes
4342
posix
4443
string uri.as-bytes
44+
# The system-dependent default name-separator character.
45+
# On UNIX systems the value of this field is "/";
46+
# on Microsoft Windows systems it is "\\".
47+
if. > separator
48+
os.is-windows
49+
win32.separator
50+
posix.separator
4551

4652
# Utility object that joins given `tuple` of paths with current OS separator
4753
# and normalizes result path.
@@ -57,29 +63,18 @@
5763
win32 joined-path
5864
posix joined-path
5965

60-
# The system-dependent default name-separator character.
61-
# On UNIX systems the value of this field is "/";
62-
# on Microsoft Windows systems it is "\\".
63-
[] > separator
64-
if. > @
65-
os.is-windows
66-
win32.separator
67-
posix.separator
68-
6966
# POSIX specified path.
7067
# A standardized way to represent file or directory locations in a Unix-like system.
7168
[uri] > posix
7269
$ > determined
7370
"/" > separator
7471
(file uri).as-file > as-file
7572
(dir (QQ.fs.file uri)).as-dir > as-dir
76-
uri > @
77-
7873
# Returns `true` if current path is absolute - starts with '/' char.
79-
[] > is-absolute
80-
and. > @
81-
uri.length.gt 0
82-
(uri.as-bytes.slice 0 1).eq separator
74+
and. > is-absolute
75+
uri.length.gt 0
76+
(uri.as-bytes.slice 0 1).eq separator
77+
uri > @
8378

8479
# Return new `path` with normalized uri.
8580
# Normalization includes:

objects/org/eolang/fs/tmpdir.eo

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
+architect yegor256@gmail.com
2828
+home https://github.com/objectionary/eo
2929
+package org.eolang.fs
30-
+version 0.50.2
31-
+unlint broken-ref
30+
+version 0.51.3
3231

3332
# Temporary directory.
3433
# For Unix/MacOS uses the path supplied by the first environment variable

0 commit comments

Comments
 (0)