Skip to content

Commit

Permalink
#289 up to 0.50.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Dec 27, 2024
1 parent 4c03d94 commit 658b6d9
Show file tree
Hide file tree
Showing 110 changed files with 250 additions and 265 deletions.
2 changes: 1 addition & 1 deletion make/jvm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SOFTWARE.
<artifactId>jvm</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<eo.version>0.49.4</eo.version>
<eo.version>0.50.0</eo.version>
<stack-size>32M</stack-size>
<heap-size>2G</heap-size>
</properties>
Expand Down
6 changes: 3 additions & 3 deletions objects/org/eolang/bytes.eo
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang
+rt jvm org.eolang:eo-runtime:0.49.4
+rt jvm org.eolang:eo-runtime:0.50.0
+rt node eo2js-runtime:0.0.0
+version 0.49.4
+version 0.50.0

# The object encapsulates a chain of bytes, adding a few
# convenient operations to it. Objects like `int`, `string`,
Expand Down Expand Up @@ -55,7 +55,7 @@
error
sprintf
"Can't convert non 8 length bytes to a number, bytes are %x"
*
* ^

# Equals to another object.
[b] > eq /org.eolang.bool
Expand Down
2 changes: 1 addition & 1 deletion objects/org/eolang/cti.eo
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang
+version 0.49.4
+version 0.50.0

# Compile Time Instruction (CTI).
#
Expand Down
2 changes: 1 addition & 1 deletion objects/org/eolang/dataized.eo
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang
+version 0.49.4
+version 0.50.0

# The object dataizes `target`, makes new instance of `bytes` from given data and behaves as result
# `bytes`.
Expand Down
4 changes: 2 additions & 2 deletions objects/org/eolang/error.eo
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang
+rt jvm org.eolang:eo-runtime:0.49.4
+rt jvm org.eolang:eo-runtime:0.50.0
+rt node eo2js-runtime:0.0.0
+version 0.49.4
+version 0.50.0

# 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.
Expand Down
2 changes: 1 addition & 1 deletion objects/org/eolang/false.eo
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang
+version 0.49.4
+version 0.50.0

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

# Directory in the file system.
# Apparently every directory is a file.
Expand All @@ -40,10 +40,9 @@
if. > @
^.exists
^
seq
*
mkdir
^
seq *
mkdir
^

# Makes a directory together with all required
# parent directories.
Expand All @@ -64,10 +63,9 @@
walked.length > len!
if. > @
^.exists
seq
*
rec-delete walked 0
^
seq *
rec-delete walked 0
^
^

# Deletes files and directories in current directory recursively.
Expand All @@ -79,12 +77,11 @@
if. > @
^.len.eq index
true
seq
*
tup.tail.deleted.exists
^.rec-delete
tup.head
index.plus 1
seq *
tup.tail.deleted.exists
^.rec-delete
tup.head
index.plus 1

# Creates an empty temporary file in the current directory.
[] > tmpfile
Expand Down
59 changes: 26 additions & 33 deletions objects/org/eolang/fs/file.eo
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang.fs
+rt jvm org.eolang:eo-runtime:0.49.4
+rt jvm org.eolang:eo-runtime:0.50.0
+rt node eo2js-runtime:0.0.0
+version 0.49.4
+version 0.50.0

# The file object in the filesystem.
[path] > file
Expand All @@ -45,10 +45,9 @@
if. > @
^.exists
^
seq
*
touch
^
seq *
touch
^

# Creates new empty file.
#
Expand All @@ -61,10 +60,9 @@
[] > deleted
if. > @
^.exists
seq
*
delete
^
seq *
delete
^
^

# Deletes the file and returns `true`.
Expand Down Expand Up @@ -156,23 +154,20 @@
sprintf
"File must exist for given access mod: '%s'"
* access
seq
*
^.touched.touch
process-file
^
seq *
^.touched.touch
process-file
^
if.
truncate
seq
*
^.deleted.delete
^.touched.touch
process-file
^
seq
*
process-file
^
seq *
^.deleted.delete
^.touched.touch
process-file
^
seq *
process-file
^

# Process current file in the provided scope.
#
Expand Down Expand Up @@ -219,10 +214,9 @@
sprintf
"Can't read from file with provided access mode '%s'"
* ^.^.^.^.^.access
seq
*
read-bytes
^.^.input-block read-bytes
seq *
read-bytes
^.^.input-block read-bytes

# Bytes read from file input stream
#
Expand Down Expand Up @@ -261,10 +255,9 @@
sprintf
"Can't write to file with provided access mode '%s'"
* ^.^.^.^.^.access
seq
*
^.^.written-bytes buffer
^.^.output-block
seq *
^.^.written-bytes buffer
^.^.output-block

# Bytes written to file output stream.
#
Expand Down
2 changes: 1 addition & 1 deletion objects/org/eolang/fs/path.eo
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang.fs
+version 0.49.4
+version 0.50.0

# A `path` represents a path that is hierarchical and composed of a sequence of
# directory and file name elements separated by a special separator or delimiter.
Expand Down
2 changes: 1 addition & 1 deletion objects/org/eolang/fs/tmpdir.eo
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang.fs
+version 0.49.4
+version 0.50.0

# Temporary directory.
# For Unix/MacOS uses the path supplied by the first environment variable
Expand Down
2 changes: 1 addition & 1 deletion objects/org/eolang/go.eo
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang
+version 0.49.4
+version 0.50.0

# Non-conditional forward and backward jumps.
# Forward jump instantly returns provided object to `g.forward` without touching
Expand Down
4 changes: 2 additions & 2 deletions objects/org/eolang/i16.eo
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang
+rt jvm org.eolang:eo-runtime:0.49.4
+rt jvm org.eolang:eo-runtime:0.50.0
+rt node eo2js-runtime:0.0.0
+version 0.49.4
+version 0.50.0

# The 16 bits signed integer.
# Here `as-bytes` must be a `bytes` object.
Expand Down
4 changes: 2 additions & 2 deletions objects/org/eolang/i32.eo
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang
+rt jvm org.eolang:eo-runtime:0.49.4
+rt jvm org.eolang:eo-runtime:0.50.0
+rt node eo2js-runtime:0.0.0
+version 0.49.4
+version 0.50.0

# The 32 bits signed integer.
# Here `as-bytes` must be a `bytes` object.
Expand Down
4 changes: 2 additions & 2 deletions objects/org/eolang/i64.eo
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang
+rt jvm org.eolang:eo-runtime:0.49.4
+rt jvm org.eolang:eo-runtime:0.50.0
+rt node eo2js-runtime:0.0.0
+version 0.49.4
+version 0.50.0

# The 64 bits signed integer.
# Here `as-bytes` must be a `bytes` object.
Expand Down
2 changes: 1 addition & 1 deletion objects/org/eolang/io/bytes-as-input.eo
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang.io
+version 0.49.4
+version 0.50.0

# Makes an `input` from bytes.
# Here `bts` is sequence of bytes or an object that can be dataized
Expand Down
42 changes: 19 additions & 23 deletions objects/org/eolang/io/console.eo
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang.io
+version 0.49.4
+version 0.50.0

# The `console` object is basic I/O object that allows to
# interact with operation system console.
Expand Down Expand Up @@ -116,10 +116,9 @@
"read"
* posix.stdin-fileno size
self. > @
seq
*
read-bytes
^.^.input-block read-bytes
seq *
read-bytes
^.^.input-block read-bytes

# Write given `buffer` to console.
# Here `buffer` is either sequence of bytes or and object that can be
Expand All @@ -140,13 +139,12 @@
# Returns new instance of `output-block` ready to write again.
[buffer] > write
self. > @
seq
*
code.
posix
"write"
* posix.stdout-fileno buffer buffer.size
^.^.output-block
seq *
code.
posix
"write"
* posix.stdout-fileno buffer buffer.size
^.^.output-block

# Windows console.
# It uses kernel32.dll system function calls to read/write standard inputs/outputs.
Expand Down Expand Up @@ -174,10 +172,9 @@
"ReadFile"
* win32.std-input-handle size
self. > @
seq
*
read-bytes
^.^.input-block read-bytes
seq *
read-bytes
^.^.input-block read-bytes

# Write given `buffer` to console.
# Here `buffer` is either sequence of bytes or and object that can be
Expand All @@ -198,10 +195,9 @@
# Returns new instance of `output-block` ready to write again.
[buffer] > write
self. > @
seq
*
code.
win32
"WriteFile"
* win32.std-output-handle buffer buffer.size
^.^.output-block
seq *
code.
win32
"WriteFile"
* win32.std-output-handle buffer buffer.size
^.^.output-block
2 changes: 1 addition & 1 deletion objects/org/eolang/io/dead-input.eo
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang.io
+version 0.49.4
+version 0.50.0

# Dead input is an input that reads from nowhere and always
# returns empty sequence of bytes `--`.
Expand Down
2 changes: 1 addition & 1 deletion objects/org/eolang/io/dead-output.eo
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
+architect [email protected]
+home https://github.com/objectionary/eo
+package org.eolang.io
+version 0.49.4
+version 0.50.0

# Dead output is an output that writes to nowhere.
[] > dead-output
Expand Down
Loading

1 comment on commit 658b6d9

@0crat
Copy link

@0crat 0crat commented on 658b6d9 Jan 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yegor256 It is not a good idea to push directly to the default branch master. You've earned -16 points. Next time, create a new branch, push your changes over there, then make a pull request and merge it. Even if you are flying solo, contributing via pull requests is a good practice. Your running balance is -8.

Please sign in to comment.