Comments (5)
Do calls to @unsafe
methods count as unsafe, like in Rust (and unlike in C#, where unsafe
is always lexical)?
from scala-native.
Yes, they do count as unsafe.
from scala-native.
Yay!
from scala-native.
@densh Could you add an ability to use IR code in this task or maybe in separate?
For example
def start: Unit ={
ir{
%src.2 = alloca %"scala.scalanative.runtime.OmrThread"
%src.3 = bitcast %"scala.scalanative.runtime.OmrThread"* %src.2 to i8*
%src.4 = alloca void(...)*, align 8
store void (...)* bitcast (void (i8*)* @"java.lang.Thread::run_unit" to void (...)*), void (...)** %src.4, align 8
%src.5 = load void (...)*, void (...)** %src.4, align 8
%src.6 = bitcast void (...)* %src.5 to i8*
call void (i8*, i8*, i32, i8*, i8*) @"omrthread_create_ex"(i8* %src.3, i8* zeroinitializer, i32 0, i8* %src.6, i8* zeroinitializer)
}
}
Also, it would be perfect to add annotation which marks method us usable in IR and does not remove them in dead code elimination phase
from scala-native.
@gurinderu Including inline IR in the code is not something that we are going to support. IR is subject to change without further notice, it's not meant to be stable. We want to have freedom to innovate in this area without breaking end-users code.
Regarding the second feature suggestion, I do not quite get exactly what you mean. Lets discuss on gitter. Also please try to refrain from suggesting new features in issues which are not strictly related to your suggestion (like this one.)
from scala-native.
Related Issues (20)
- javalib missing Exception symbols at link time HOT 2
- Segmentation fault in `Test runtime extension` in scheduled CI
- javalib String.offsetByCodePoints throws if the final character in the string is an unpaired high surrogate HOT 2
- Cannot override `computeIfPresent` in `java.util.ConcurrentMap` HOT 1
- Usage of statically called methods can lead to crash of toolchain
- javalib read() returned by Channels.newChannel should report EOF
- linux-arm64 multiarch CI builds have errors.
- RuntimeException: failed tests HOT 26
- Can't read binary-incompatible version of NIR from 'package.nir' HOT 2
- Contributor's guide possibly out of date HOT 6
- SN 0.5.0 should update its minimal supported Clang & SBT versions HOT 1
- Remove emitting single file when using LTO=none + release mode
- Implement JDK 21 `SequentialCollection`s
- ClassCastException: scala.scalanative.runtime.IntArray cannot be cast to scala.scalanative.runtime.ObjectArray HOT 3
- Build: Discover.scala does not fail when it should HOT 3
- Build: Discover.scala can use wrong includes in certain cases.
- Build: Discover.scala discovers possibly wrong include files for macOS Xcode clang. HOT 2
- Scala Native unit tests do not work with JVM 21 HOT 2
- test-all command appears to publish twice. HOT 2
- Scala.org docs should be PR'd to link to a good description of SN java & java 21 support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scala-native.