Skip to content

Worked on wrong branch#5

Merged
slackydev merged 5 commits intomainfrom
indent-based
Mar 19, 2026
Merged

Worked on wrong branch#5
slackydev merged 5 commits intomainfrom
indent-based

Conversation

@slackydev
Copy link
Owner

  • Finalizes ToStr
  • Proper print statement.
  • setlen is now fually n-dimensional like in pascal.
  • string and array content equality test (!= and =)
  • x86-64 jit had a mistake regarding loading ints, where we forgot about signs.

Typemethods added, I was considering waiting for a proper generics to do this, but you never know how long that takes.
More should be added as overloads and variants to handle case where builtin operators does not exist, taking functions and lambda closures to do the action.

    array.push       
    array.pop        
    array.slice      
    array.copy       
    array.contains   
    array.indexof    
    array.delete     
    array.insert     
    array.remove     
   
    array.reverse    
    array.sort       
    array.concat     
   
    array.sum        
    array.min        
    array.max        
    array.mean       
    array.variance   
    array.stddev     
    array.median
    
    array.__eq__
    array.__neq__

Names are subject to change currently.

Sorting: I decided to go with a shellsort algorithm rather than quicksort, while a little slower (300K items test with jit max) shows: 88ms (ss) v. 65ms (qs) - the fact that shellsort is so compact and not recursive gives it the thumbs up for me. Changes may be done in the future.

print now takes multiple arguments
> print x,y,z
and calls tostr on them, with spacing between arguments.

`.tostr` now covers existing types.
Creates temporary for tostr in the print node.
- Fixes a move mistake in x64 machinecode.
- Fixes call chaining a.b().c()

Adds many many methods for arrays. Mostly experimental stuff.
@slackydev slackydev merged commit 8db6597 into main Mar 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant