-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scala Native #3057
Merged
djspiewak
merged 78 commits into
typelevel:series/3.x
from
armanbilge:experiment/native
Sep 21, 2022
Merged
Scala Native #3057
Changes from 26 commits
Commits
Show all changes
78 commits
Select commit
Hold shift + click to select a range
47bf28d
kernel.native
armanbilge 5096ca3
kernel-testkit.native
armanbilge 38c3a25
laws.native
armanbilge 6f509f2
std.native
armanbilge d1afc95
core.native compiles
armanbilge 689dcc7
example.native
armanbilge f588289
tests.native compiling
armanbilge ae44a3b
Add missing javalib
armanbilge c36ad50
Fix FiberMonitor
armanbilge 9040aa7
Fix file name
armanbilge 2336b7e
Use busy-wait scheduler for tests
armanbilge 557da3c
fix busy wait scheduler
armanbilge 8fe1977
All tests pass
armanbilge 2b96471
Setup snapshotting
armanbilge 50ff72d
Weird scaladoc issue on native
armanbilge 904a40b
Fix Scala 3 compile
armanbilge 2db9428
Merge branch 'typelevel:series/3.x' into experiment/native
armanbilge 13999c2
Updates
armanbilge e063f5c
Try setting up CI
armanbilge a620bef
scalafmt+scalafix
armanbilge 280a314
Add ciNative alias
armanbilge 29df46b
Explicit types for implicits
armanbilge d0cd453
De-boot-leg
armanbilge 2e2ae42
Fix MiMa
armanbilge 1ff75b5
Fix workflow
armanbilge c1c5b17
Implement `SecureRandom` for Native
armanbilge bd6b6ea
Hopefully docs work now ...
armanbilge 2ccf82e
Tweak Native `IOApp` exiting
armanbilge 468d92b
Use `DetectPlatform` as needed
armanbilge 162a3bf
Scala Native supports `os.version`
armanbilge 57257f4
Just use global IORuntime for tests
armanbilge ccdb3e1
Fix compile
armanbilge ce7ce1d
Extract `PollingExecutorScheduler` abstraction
armanbilge 3c1e3b2
Fix Native CI alias
armanbilge d113169
Privatize and finalize stuff
armanbilge 259f2f1
Simplifying
armanbilge 370d507
Use `j.u.ArrayDeque` instead of `ListBuffer`
armanbilge 1815732
Use `j.u.PriorityQueue`
armanbilge 495cfe2
First pass at better event loop
armanbilge 76f0a6d
Fix stupid mistake
armanbilge 7d4e846
Just directly execute 0-sleep tasks
armanbilge d710e54
Save some allocations
armanbilge 439cb9d
Fix use of `cachedNow` for `sleep`ing
armanbilge affcada
Less contention on Native
armanbilge dfca087
Merge remote-tracking branch 'upstream/series/3.x' into experiment/na…
armanbilge 49ea8ce
Re-order steps in event loop
armanbilge 0ac7d09
Merge branch 'fix/syncstep-uncancelable-3.x' into experiment/native
armanbilge bb6a2f0
Merge branch 'fix/syncstep-uncancelable-3.x' into experiment/native
armanbilge d9d1589
Formatting
armanbilge f28b163
Merge branch 'fix/syncstep-uncancelable-3.x' into experiment/native
armanbilge 5111712
Add support for microsecond time
armanbilge e624931
Fix binding
armanbilge 05e6a4c
Add fallback for Windows
armanbilge 7efbac0
Make `installGlobal` public
armanbilge 693d193
Add explanation doc b/c, well, even I forgot (:
armanbilge eb55dd2
poll as the last step in the loop
armanbilge 519e5ce
Cleanup canceled timers before polling
armanbilge d093f95
Use secure UUIDGen for Native
armanbilge 54f2b02
Bump Scala Native version
armanbilge bbb5d0d
Surround blocking calls with cede
armanbilge 8c8ae32
Update `nowMicros` with SN 0.4.7 APIs
armanbilge 989ad9c
More cleanup for `nowMicros`
armanbilge 2b3bc18
`guarantee(cede)` after `blocking` `thunk`
armanbilge ff197d1
Add failing test for `SecureRandom#nextInt`
armanbilge 6ab05af
Correctly override `SecureRandom#next`
armanbilge 82b2665
Gracefully handle negative sleeps
armanbilge 6075d85
Merge remote-tracking branch 'upstream/series/3.x' into experiment/na…
armanbilge 7d9b802
Add `pollEvery` parameter for fairness, default 64
armanbilge ea87873
`try`/`catch` like the WSTP
armanbilge 9e27023
`ScheduledTask` -> `SleepTask`
armanbilge 39cdd77
Refactor `sleep` cancelation
armanbilge 1221506
Rip out `cachedNow` stuff
armanbilge a14be23
Revert "Make `installGlobal` public"
armanbilge 0f3ea9c
Fix `suspend` impl
armanbilge e442f8f
Merge remote-tracking branch 'upstream/series/3.x' into experiment/na…
armanbilge 989e648
Add native+macOS job
armanbilge dd56b2a
Add implementation note/limits for `SecureRandom`
armanbilge 2a3c545
Document limitations for `IOApp` on Native
armanbilge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think Scala Native has the same artifact size concerns as Scala.js, so I reckon we should ship
java.time
support out-of-the-box.