Léa Saviot
de6646a0ae
[build/emscripten] Add turtle symbols to the whitelist
2018-12-18 12:05:51 +01:00
Léa Saviot
ed19d19070
Merge branch 'master' into python_turtle
2018-12-17 15:49:46 +01:00
Léa Saviot
49e8a501e7
[python] Fix micropython_port_interruptible_msleep
...
It now gets interrupted. Turtle drawing can now be interrupted too.
2018-12-05 17:41:16 +01:00
Émilie Feral
7e52483eec
[build] emscripten: add 'Pointer_stringify' as EXTRA_EXPORTED_RUNTIME_METHODS
2018-11-23 12:03:35 +01:00
Léa Saviot
6de650064e
[build] Disable WebAssembly on emscripten
2018-11-23 11:57:44 +01:00
Romain Goyet
253c183963
[python] Clean the time module
...
- Export micropython_port_should_interrupt and
micropython_port_interruptible_msleep in Emscripten
- Make micropython_port_interruptible_msleep available in a helper
2018-11-16 09:40:53 +01:00
Romain Goyet
8fa1558fc4
[python] Small cleanup
2018-11-15 15:12:17 +01:00
Romain Goyet
e73033b19c
Merge branch 'master' into utime_module
2018-11-15 14:37:11 +01:00
Romain Goyet
5dfefb477a
[python] Rename micropython_port_should_interrupt to micropython_port_vm_hook_loop
2018-11-13 10:06:23 +01:00
Damien Nicolet
24630011b1
[code] keep only CPython equivalent functions in utime module
2018-11-10 00:00:03 +01:00
Damien Nicolet
9b818bd963
[ion] fix sleep functions in emscripten build
2018-11-09 01:36:38 +01:00
Romain Goyet
9825c73238
[ion/emscripten] Actual implementation of Ion::Keyboard::scan
...
This allows interrupting Python scripts on the Emscripten port
2018-11-08 17:11:17 +01:00
Romain Goyet
b26f0abe81
[emscripten] Update a symbol name in the whitelist
2018-11-08 17:11:17 +01:00
Romain Goyet
0634e9ea7d
[emscripten] Expose IonSoftwareVersion and IonPatchLevel
2018-06-26 14:13:31 +02:00
Léa Saviot
b8fbc35793
[emscripten] Fix float rouding errors when computing grid axis labels
...
Emscripten converts C++ floats to doubles, which produces rounding
errors. In the Graph application, when displaying y=sin(x), the ordinate
'1' displayed "10" instead, because the exponent of 1000f was wrongly
computed.
To prevent this, we add the -s PRECISE_F32=1 flag, which uses 32-bits
floating point values for floats.
See https://kripken.github.io/emscripten-site/docs/getting_started/FAQ.html#why-do-i-get-odd-rounding-errors-when-using-float-variables
2018-06-18 16:33:44 +02:00
Ecco
e304da5ee1
[emscripten] Removing trailing comma hack more obvious
2018-06-13 10:02:47 +02:00
Ecco
3d9748d172
[emscripten] Remove empty line
2018-06-13 10:02:47 +02:00
Claire Savinas
208f340993
Fix build using emsdk version sdk-1.37.40-64bit
2018-06-13 10:02:47 +02:00
Émilie Feral
f2d096be63
[emscripten] Add WHITELISTED symbols to call 'input()' outside a
...
function in Python
2018-05-22 17:48:48 +02:00
Romain Goyet
8fc32900c2
[emscripten] Sort ASYNC symbols
2018-05-22 15:59:20 +02:00
Romain Goyet
bb10e13aab
[emscripten] Allow "input()" to be called outside of a function
2018-05-22 15:59:20 +02:00
Émilie Feral
c934eab947
[emscripten] Add white-listed symbols
...
When input() is called in a script, it will happen at script
importation and thus requires more white-listed symbols.
2018-04-18 11:20:39 +02:00
Romain Goyet
5744c010a4
[emscripten] Add more debug flags
2018-04-18 10:04:18 +02:00
Émilie Feral
849cbf7b89
[build] emscripten toolchain: add white-listed symbols
2018-03-22 11:58:56 +01:00
Émilie Feral
af877c19bb
[build] Add a flag MODULARIZE when building with
...
emscripten toolchain
2018-03-22 11:58:56 +01:00
Émilie Feral
37ff8dc0a3
[ion] Give the options to ion_app that becomes ion_main
2018-03-22 11:58:56 +01:00
Romain Goyet
c0a9ec1c91
[emscripten] Events can be enqueued
2018-03-21 15:54:17 +01:00
Romain Goyet
e5a7b936bc
[emscripten] Some mor ASYNC symbols
...
Needed when starting a script from the contextual script menu
2018-02-05 16:50:43 +01:00
Romain Goyet
054fffe77d
[emscripten] Use a whitelist of sync symbols that will be interpreted
2018-02-05 16:50:43 +01:00
Romain Goyet
ad261a79aa
Emscripten has no SIZE tool
2018-02-02 14:30:35 +01:00
Romain Goyet
489b26e813
Re-organize and re-prefix the Makefile variables
2018-02-02 14:30:35 +01:00
Romain Goyet
67f082f4e8
[emscripten] Use emterpreter
...
This allows us to control the runloop
2018-02-01 14:10:26 +01:00
Romain Goyet
9a41ee8ad9
Add the ability to package the web simulator
2017-11-06 21:54:18 +01:00
Romain Goyet
70174638df
[ion] Fix sending events to emscripten build
...
Change-Id: I9306554044a0b2fe2ee26769cc66a2684a05bebe
2017-07-21 15:12:38 +02:00
Romain Goyet
babfe50763
Organize the build system
...
Change-Id: Ib331bae99041b998eb721b44c3b0b44426270b38
2017-02-15 19:10:23 +01:00