-
-
Notifications
You must be signed in to change notification settings - Fork 322
🍓 Support 32-bit systems #740
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
Conversation
|
Probably (but not even 50% sure, source) that's also needed for the webassembly build |
|
Can you share the error you get when you use Pluto without this fix? |
|
I'm sure that this PR will break the array view: try running |
|
EDIT: I've updated script I'm sorry, @fonsp Here is my error message: (Pluto v0.12.15) Failed to show value:
MethodError: no method matching get_my_display_limit(::Array{Float64,1}, ::Int32, ::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Int32, ::Int32)
Closest candidates are:
get_my_display_limit(::Any, !Matched::Int64, ::IOContext, !Matched::Int64, !Matched::Int64) at /home/pi/.julia/packages/Pluto/aJBx9/src/runner/PlutoRunner.jl:654
tree_data(::AbstractArray{var"#s10",1} where var"#s10", ::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}})@PlutoRunner.jl:667
show_richest(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Any)@PlutoRunner.jl:585
#sprint_withreturned#27(::IOContext{Base.DevNull}, ::Int32, ::typeof(Main.PlutoRunner.sprint_withreturned), ::Function, ::Array{Float64,1})@PlutoRunner.jl:544
#format_output_default#15(::Pair{Symbol,Dict{Tuple{UInt32,Int64},Int64}}, ::typeof(Main.PlutoRunner.format_output_default), ::Any)@PlutoRunner.jl:469
#format_output#16(::Pair{Symbol,Dict{Tuple{UInt32,Int64},Int64}}, ::typeof(Main.PlutoRunner.format_output), ::Array{Float64,1})@PlutoRunner.jl:486
formatted_result_of(::Base.UUID, ::Bool, ::Nothing)@PlutoRunner.jl:411
top-level scope@none:1EDIT: When we put Failed to show value:
MethodError: no method matching get_my_display_limit(::Array{Char,1}, ::Int32, ::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Int32, ::Int32)
Closest candidates are:
get_my_display_limit(::Any, !Matched::Int64, ::IOContext, !Matched::Int64, !Matched::Int64) at /home/pi/.julia/packages/Pluto/aJBx9/src/runner/PlutoRunner.jl:654
tree_data(::AbstractArray{var"#s10",1} where var"#s10", ::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}})@PlutoRunner.jl:667
show_richest(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Any)@PlutoRunner.jl:585
#sprint_withreturned#27(::IOContext{Base.DevNull}, ::Int32, ::typeof(Main.PlutoRunner.sprint_withreturned), ::Function, ::Array{Char,1})@PlutoRunner.jl:544
#format_output_default#15(::Pair{Symbol,Dict{Tuple{UInt32,Int64},Int64}}, ::typeof(Main.PlutoRunner.format_output_default), ::Any)@PlutoRunner.jl:469
#format_output#16(::Pair{Symbol,Dict{Tuple{UInt32,Int64},Int64}}, ::typeof(Main.PlutoRunner.format_output), ::Array{Char,1})@PlutoRunner.jl:486
formatted_result_of(::Base.UUID, ::Bool, ::Nothing)@PlutoRunner.jl:411
top-level scope@none:1 |
|
Thanks! I managed to get a 32 bit version of Julia working so I can have a look at it myself :) It looks like there are still some small things to fix before all the tests pass, working on it now |
|
(FYI this is what I mean with Pluto's tests: image) |
|
thank you so much! |





Int32. Therefore if one defines function which accepts onlyInt64(notInt), we will getMethodError: no method matching f(::Int32). Here is my log that shows what happens.julia _ _ _ _(_)_ | Documentation: https://docs.julialang.org (_) | (_) (_) | _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 1.5.3 (2020-11-09) _/ |\__'_|_|_|\__'_| | |__/ | julia> versioninfo() Julia Version 1.5.3 Commit 788b2c7* (2020-11-09 13:37 UTC) Platform Info: OS: Linux (arm-linux-gnueabihf) CPU: ARMv7 Processor rev 3 (v7l) WORD_SIZE: 32 LIBM: libopenlibm LLVM: libLLVM-9.0.1 (ORCJIT, cortex-a72) julia> Sys.WORD_SIZE 32 julia> 1 |> typeof Int32 julia> f(x::Int64) = 2x f (generic function with 1 method) julia> f(1) ERROR: MethodError: no method matching f(::Int32) Closest candidates are: f(::Int64) at REPL[4]:1 Stacktrace: [1] top-level scope at REPL[5]:1 julia> f(x::Int) = 2x f (generic function with 2 methods) julia> f(1) 2If this PR is merged, Pluto.jl can support many devices 👍 . Below image is our future.