Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Commit db0e219

Browse files
authored
Update code for Mojo 24.4 (#40)
* add new builder * fix string builder bug * update slice builder * rm comment now that builders are diff * Update builder.mojo * cover case where write is too big for the buffer * update big write test * revert read trait to using list * more reverts * update net package * cleaned up file a bit, read not working but read_all does which is weird * some more cleanup, but span index inference still an issue * comment out vectorized builder test * cleanup runes file * cleaning up for 24.4 * more 24.4 cleanup
1 parent 2d71da6 commit db0e219

Some content is hidden

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

48 files changed

+970
-2857
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.DS_Store
2+
install_id
23

34
# Byte-compiled / optimized / DLL files
45
__pycache__/
@@ -159,4 +160,4 @@ cython_debug/
159160
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
160161
# and can be added to the global gitignore or merged into this file. For a more nuclear
161162
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
162-
#.idea/
163+
#.idea/

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ All of these packages are partially implemented and do not support unicode chara
2525
- `Reader`: Buffered `io.Reader`
2626
- `Scanner`: Scanner interface to read data via tokens.
2727
- `bytes`
28-
- `Buffer`: Buffer backed by `List[Int8]`.
29-
- `Reader`: Reader backed by `List[Int8]`.
28+
- `Buffer`: Buffer backed by `List[UInt8]`.
29+
- `Reader`: Reader backed by `List[UInt8]`.
3030
- `io`
3131
- Traits: `Reader`, `Writer`, `Seeker`, `Closer`, `ReadWriter`, `ReadCloser`, `WriteCloser`, `ReadWriteCloser`, `ReadSeeker`, `ReadSeekCloser`, `WriteSeeker`, `ReadWriteSeeker`, `ReaderFrom`, `WriterReadFrom`, `WriterTo`, `ReaderWriteTo`, `ReaderAt`, `WriterAt`, `ByteReader`, `ByteScanner`, `ByteWriter`, `StringWriter`
3232
- `Reader` and `Writer` wrapper functions.
@@ -46,7 +46,6 @@ All of these packages are partially implemented and do not support unicode chara
4646

4747
- `FileWrapper`: `FileHandle` Wrapper Reader/Writer
4848
- `STDOUT/STDERR` Writer (leveraging `libc`).
49-
- `CSV` Buffered Reader/Writer Wrapper around Maxim's `mojo-csv` library.
5049

5150
## Usage
5251

@@ -74,7 +73,7 @@ fn test_bytes() raises:
7473
bytes += String(" World").as_bytes()
7574
test.assert_equal(str(bytes), "hellof World")
7675

77-
var bytes2 = List[Int8]()
76+
var bytes2 = List[UInt8]()
7877
bytes2.append(104)
7978
bytes.extend(bytes2)
8079
test.assert_equal(str(bytes), "hellof Worldh")

external/__init__.mojo

Whitespace-only changes.

external/csv/__init__.mojo

Lines changed: 0 additions & 4 deletions
This file was deleted.

external/csv/csv_builder.mojo

Lines changed: 0 additions & 131 deletions
This file was deleted.

external/csv/csv_table.mojo

Lines changed: 0 additions & 159 deletions
This file was deleted.

0 commit comments

Comments
 (0)