Skip to content
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

some notes before migrating to Nim 1.xx #399

Closed
8 tasks done
jangko opened this issue Oct 2, 2019 · 8 comments
Closed
8 tasks done

some notes before migrating to Nim 1.xx #399

jangko opened this issue Oct 2, 2019 · 8 comments

Comments

@jangko
Copy link
Contributor

jangko commented Oct 2, 2019

some reminder to ease the transition to Nim 1.xx

zah added a commit that referenced this issue Oct 2, 2019
This is not working yet. Various compilation issues are described here:
#399

The currently tracked Nim version is a recent Nim devel commit, which
aims to approximates a release candidate for Nim 1.0.2.
@mratsim
Copy link
Contributor

mratsim commented Oct 2, 2019

The static keyword in modExpInternal can be changed to {.compileTime.}. Iirc the case where {.compileTime.} triggered Error: request to generate code for .compileTime proc: foo while static worked was fixed. Can't find the PR but related nim-lang/Nim#8051.

For the gas cost table, we may be able to use

let `ResultGasCostsName`*{.compileTime, inject.}: GasCosts = block:

https://github.com/status-im/nimbus/blob/78714295dab4ead5e56c0048c46ae07d8bbed91a/nimbus/vm/interpreter/gas_costs.nim#L358-L379

PR that fuzzed the boundary between compileTime and runtime vars: nim-lang/Nim#12128

@jangko
Copy link
Contributor Author

jangko commented Oct 2, 2019

nice

@arnetheduck
Copy link
Member

[1:54 PM] BOTgitterirc: well regarding #12332, most probably the fix won't be backported

@narimiran
Copy link
Contributor

well regarding #12332, most probably the fix won't be backported

It will be (if no packages break when fixed).

@arnetheduck
Copy link
Member

It will be (if no packages break when fixed).

if no packages you are testing break - worth keeping in mind that this is but a small subset, when creating up an upgrade policy for nim.

@jangko
Copy link
Contributor Author

jangko commented Oct 12, 2019

another nasty bug nim-lang/Nim#12420

@stefantalpalaru
Copy link
Contributor

@mratsim's suggested fixes applied to Nimbus in this branch: https://github.com/status-im/nimbus/commits/nim_v1

Everything compiles and the tests pass on Linux. Let's see the CI.

@jangko
Copy link
Contributor Author

jangko commented Oct 20, 2019

latest Nim devel branch now can compiles both nimbus and beacon-chain and pass all tests.
closing this issue and we can concentrate to move to Nim 1.0.2

@jangko jangko closed this as completed Oct 20, 2019
zah added a commit that referenced this issue Oct 23, 2019
This is not working yet. Various compilation issues are described here:
#399

The currently tracked Nim version is a recent Nim devel commit, which
aims to approximates a release candidate for Nim 1.0.2.
zah added a commit that referenced this issue Oct 25, 2019
This is not working yet. Various compilation issues are described here:
#399

The currently tracked Nim version is a recent Nim devel commit, which
aims to approximates a release candidate for Nim 1.0.2.
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

No branches or pull requests

5 participants