Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New release for eo-0.50.2 #291

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
New release for eo-0.50.2
rultor authored and yegor256 committed Jan 27, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit fbab4f749f1b5a7517b9909cc9215d1b0d91624b
2 changes: 1 addition & 1 deletion make/jvm/pom.xml
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ SOFTWARE.
<artifactId>jvm</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<eo.version>0.50.1</eo.version>
<eo.version>0.50.2</eo.version>
<stack-size>32M</stack-size>
<heap-size>2G</heap-size>
</properties>
22 changes: 11 additions & 11 deletions objects/org/eolang/bytes.eo
Original file line number Diff line number Diff line change
@@ -24,33 +24,33 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang
+rt jvm org.eolang:eo-runtime:0.50.1
+rt jvm org.eolang:eo-runtime:0.50.2
+rt node eo2js-runtime:0.0.0
+version 0.50.1
+version 0.50.2

# The object encapsulates a chain of bytes, adding a few
# convenient operations to it. Objects like `int`, `string`,
# and `float` encapsulate `bytes`.
[data] > bytes
data > @
$ > as-bytes
$.eq 01- > as-bool
eq 01- > as-bool

# Turn this chain of eight bytes into a number.
# If there are less or more than eight bytes, there will
# be an error returned.
[] > as-number
if. > @
^.eq nan.as-bytes
eq nan.as-bytes
nan
if.
^.eq positive-infinity.as-bytes
eq positive-infinity.as-bytes
positive-infinity
if.
^.eq negative-infinity.as-bytes
eq negative-infinity.as-bytes
negative-infinity
if.
^.size.eq 8
size.eq 8
number ^
error
sprintf
@@ -73,7 +73,7 @@
# be an error returned.
[] > as-i64
if. > @
^.size.eq 8
size.eq 8
i64 ^
error
sprintf
@@ -85,7 +85,7 @@
# be an error returned.
[] > as-i32
if. > @
^.size.eq 4
size.eq 4
i32 ^
error
sprintf
@@ -97,7 +97,7 @@
# be an error returned.
[] > as-i16
if. > @
^.size.eq 2
size.eq 2
i16 ^
error
sprintf
@@ -117,7 +117,7 @@
[] > not /org.eolang.bytes

# Calculate the bitwise left shift.
^.right x.neg > [x] > left
right x.neg > [x] > left

# Calculate the bitwise right shift.
[x] > right /org.eolang.bytes
2 changes: 1 addition & 1 deletion objects/org/eolang/cti.eo
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang
+version 0.50.1
+version 0.50.2

# Compile Time Instruction (CTI).
#
4 changes: 2 additions & 2 deletions objects/org/eolang/dataized.eo
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang
+version 0.50.1
+version 0.50.2

# The object dataizes `target`, makes new instance of `bytes` from given data and behaves as result
# `bytes`.
@@ -43,7 +43,7 @@
# # Some 64+ characters comment should be here.
# [] > foo
# [] > @
# ^.inner.five > @
# inner.five > @
# [] > inner
# 5 > five
#
4 changes: 2 additions & 2 deletions objects/org/eolang/error.eo
Original file line number Diff line number Diff line change
@@ -23,9 +23,9 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang
+rt jvm org.eolang:eo-runtime:0.50.1
+rt jvm org.eolang:eo-runtime:0.50.2
+rt node eo2js-runtime:0.0.0
+version 0.50.1
+version 0.50.2

# This object must be used in order to terminate the program
# due to an error. Just make a copy of it with any encapsulated object.
2 changes: 1 addition & 1 deletion objects/org/eolang/false.eo
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang
+version 0.50.1
+version 0.50.2

# The object is a FALSE boolean state.
[] > false
58 changes: 29 additions & 29 deletions objects/org/eolang/fs/dir.eo
Original file line number Diff line number Diff line change
@@ -24,25 +24,27 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang.fs
+rt jvm org.eolang:eo-runtime:0.50.1
+rt jvm org.eolang:eo-runtime:0.50.2
+rt node eo2js-runtime:0.0.0
+version 0.50.1
+version 0.50.2

# Directory in the file system.
# Apparently every directory is a file.
[file] > dir
$ > as-dir
$.file > @
true > is-directory

# Makes a directory together with all required
# parent directories and returns the created directory.
[] > made
if. > @
^.exists
^
seq *
mkdir
as-dir. > @
if.
^.exists
^
seq *
mkdir
^

# Makes a directory together with all required
# parent directories.
@@ -59,40 +61,38 @@
# Deletes directory and all files in it, recursively.
# Returns the deleted directory.
[] > deleted
(^.walk "**").at.^ > walked
walked.length > len!
if. > @
^.exists
seq *
rec-delete walked 0
as-dir. > @
if.
^.exists
seq *
rec-delete (walk "**").as-tuple
^
^
^

# Deletes files and directories in current directory recursively.
# Returns `true`.
#
# Attention! The object is for internal usage only, please
# don't use the object programmatically outside of `dir` object.
[tup index] > rec-delete
[tup] > rec-delete
if. > @
^.len.eq index
tup.length.eq 0
true
seq *
tup.tail.deleted.exists
^.rec-delete
tup.head
index.plus 1
tup.value.deleted
rec-delete tup.prev

# Creates an empty temporary file in the current directory.
[] > tmpfile
if. > @
^.exists
QQ.fs.file
string touch.as-bytes
error
sprintf
"Directory %s does not exist, can't create temporary file"
* ^.path
as-file. > @
if.
^.exists
QQ.fs.file
touch.as-bytes
error
sprintf
"Directory %s does not exist, can't create temporary file"
* file

# Creates an empty temporary file in the current directory and
# returns absolute path to it as `string`.
@@ -107,4 +107,4 @@
error > @
sprintf
"The file %s is a directory, can't open for I/O operations"
* ^.path
* file
Loading