Skip to content

Jule 0.3.0

Latest

Choose a tag to compare

@mertcandav mertcandav released this 02 Nov 15:12
· 31 commits to master since this release

jule

  • add: the inline, noinline, and noinit directives
  • add: address casting support for structure and trait methods
  • add: compiler intrinsics
  • add: the built-in clear, sizeof, alignof, and offsetof functions
  • add: the shift option to the disable directive
  • update: uintptr supports pointer arithmetic now
  • update: address casting semantics for functions
  • update: concurrency model
  • update: add catch keyword for fallible functions instead of else
  • remove: namespace directive

julec

  • update: fallback to undeterministic but efficient name generation for IR
  • update: darwin operating system target as macos
  • update: avoid double computation of the length data when the built-in make function uses length data as capacity for slice allocation
  • update: catch negative shift amount values at runtime and panic
  • update: --opt-inine no longer marks #export functions as inline by default to improve API develeopment experience
  • improve: generate IR code to prevent infinite loop undefined behavior based optimizations of the back-end compilers
  • fix: code generation for underlying tuple types of function result types may generate same type name for different function attributes
  • fix: generation of duplicate source code arguments for external use statements linking to a source file
  • fix: optimized shift expressions may block possible optimizations on parent expressions
  • ast: rename ScopeTree as Scope
  • sema: fix untyped status of untyped constant values is removed when they used in binary expression and operands are different kind of types
  • sema: include module/package name in type error messages when suitable
  • sema: migrate to AST-backed semantic AST
  • sema: improve error message for non-instantiated generic types in casting expressions
  • sema: allow blank identifiers for scope variables
  • sema: catch constant negative shift amount values at comptime
  • sema: fix assignments with constant values can cause mutability error when type is mutable
  • sema: fix compiler error may appear when comparing trait with a compatible type
  • sema: fix misused comptime functions may cause compiler crash due to nil pointer dereference
  • sema: fix variadic arguments with a compatibile type allowed for type enums and traits
  • sema: fix method analysis of structures
  • sema: fix illegal cycle analysis for structures
  • sema: fix goto and label handling of the missing return analysis
  • sema: fix type compatibility analysis of binary eval for numerical types

Standard Library

  • remove: std/mem
  • all: migrate to sync runtime and remove async runtime specifics
  • runtime: add Task
  • runtime: migrate to runtime implemented allocator
  • runtime: print and println calls panics if write operation failed
  • runtime: replace darwin value of OS variable as macos
  • runtime: show dereferencing location instead of panic call location for nil reference pointer dereferencing panics
  • (darwin) runtime: use CLOCK_UPTIME_RAW instead of CLOCK_MONOTONIC for nanotime
  • runtime: fix juleToString implementation of functions
  • runtime: fix channel senders may be blocked infinitely
  • add: std/intrinsic
  • std/comptime: add HasTag
  • std/comptime: rename IncludeStr as IncludeString
  • std/comptime: rename TypeOf as Typeof
  • std/comptime: rename ValueOf as Valueof
  • std/encoding/json: fix depth handling of encoding
  • std/encoding/json: unkown fields disallowed by default
  • std/encoding/json: reimplement Decoder.DisallowUnknownFields
  • std/fmt: reimplement formatting
  • std/jule/ast: reimplement
  • std/jule/directive: remove Namespace
  • std/jule/directive: add Noinit, Noinline, Inline
  • std/jule/dist: add MacOS, IsMacOS
  • std/jule/mod: add InvalidID
  • std/jule/parser: add Parser
  • std/jule/token: reimplement
  • std/math/big: update mutability of Int
  • (darwin) std/net: fix XNU kernel bug for accepted sockets
  • (darwin) std/net: fix max listener backlog detection passes invalid syscall argument
  • std/os: remove unnecessary mutability of Cmd.New
  • std/slices: add IsSortedFunc
  • std/sync/atomic: add Fence
  • std/sync/atomic: reimplement CompareAndSwap and CompareAndSwapWeak
  • std/time: add Instant

API

  • add: __JULE_NOINLINE
  • add: __jule_unreachable
  • add: __jule_doSpin
  • add: __jule_malloc
  • add: __jule_free
  • remove: __jule_readStdin
  • remove: __jule_pseudoMalloc

Backwards Compatibility

This version includes fundamental changes, such as a shift in the concurrency model. Code written for older versions may exhibit significant differences in behavior or fail to compile.