Skip to content

Use new Javascript FFI for js_dataView - #507

Merged
ymeister merged 1 commit into
reflex-frp:developfrom
MaxHearnden:js_dataView
Sep 19, 2026
Merged

ymeister merged 1 commit into
reflex-frp:developfrom
MaxHearnden:js_dataView

Conversation

@MaxHearnden

Copy link
Copy Markdown
Contributor

Currently, js_dataView uses the old GHCJS FFI (variable substitution), this PR adds a new implementation of js_dataView using the function call based FFI.

This allows ByteStrings to be used with the XhrRequest API when using upstream GHC.

@ymeister
ymeister merged commit 7193774 into reflex-frp:develop Sep 19, 2026
@ymeister

Copy link
Copy Markdown
Contributor

@MaxHearnden


⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⢹⣿⡏⡏⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⠿⢸⣿⠷⠇⣿⡗⢶⡄⢠⣶⢲⣄⢲⣶⢲⣦⠀⣿⡇⣲⠆
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⠀⠀⣿⡇⢸⡇⠸⠿⢸⣿⢸⣿⢸⣿⠀⣿⣧⠏
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⠀⠀⣿⡇⢸⡇⢰⡟⢹⣿⢸⣿⢸⣿⠀⣿⣿⣀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⠀⠀⣿⡇⢸⡇⢸⡇⢸⣿⢸⣿⢸⣿⠀⣿⡇⣿
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠚⠛⠂⠐⠛⠓⠘⠛⠘⠛⠚⠛⠚⠛⠚⠛⠒⠛⠃⠛⠓
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢲⢲⠂⢰⠖
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡇⣸⠀⣀⣀⡀⣀⣀⢀⣀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣧⡇⣼⡏⢸⣿⢸⣿⠀⢸
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⠃⣿⡇⢸⣿⢸⣿⠀⢸
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠞⢧⠀⢸⣿⠀⣿⡇⢸⣿⢸⣿⠀⢸
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠦⡄⣼⠁⠀⠈⡆⢸⣿⡄⠹⢧⣸⠟⠸⢿⡴⢼⡄
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡎⠀⠘⡏⠀⠀⢀⡃⠀⠀⢀⢀⡠⠤⠴⢤⡤⠤⢄⣀⣀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢇⠀⠀⢿⢳⠀⢸⡥⠔⠒⠛⢿⠲⡄⠀⠀⢱⠀⠀⠀⠀⠉⠓⠒⠤⢤⣀⡀⣤⣄⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢦⡆⠸⣏⣦⠘⠇⠀⠀⠀⠈⡆⠘⡄⠀⠘⡄⠀⠀⢀⣄⠀⠀⠀⠀⠀⠈⠙⢻⡿⠆
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣦⣿⠆⠁⢀⣆⡖⠀⠀⡇⠀⢻⡄⣠⢧⡀⠀⠈⠙⠷⡄⠀⠀⠀⠀⠀⠀⠙⢦⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢻⠀⠀⣿⠞⢠⡀⠀⠙⢲⣼⣿⣿⡦⠷⣄⡀⠀⠀⠘⢦⠀⠀⠀⠀⣦⣀⠀⠙⣆
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⣒⢇⠀⠀⡠⠟⠃⢀⣤⣰⣿⣿⡟⣦⠖⠛⠟⠃⠀⣠⠞⠀⠀⠀⢠⡟⠛⠣⣄⠈⢦⡀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡤⠋⢦⡀⠀⠀⠈⠉⢹⣿⣟⣶⠛⣿⣄⠀⢀⡶⠋⠁⠀⠀⠀⢀⠟⢛⡍⠃⢸⢹⡶⣽⣆
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡖⠉⠀⠀⠀⢈⣣⣤⡴⠥⠞⠙⠚⢦⣔⣈⡿⢿⡿⢦⡀⠀⠀⠀⢠⡞⠴⢾⡿⠭⡟⢼⣿⠌⢹
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡤⢾⢣⠀⠀⢀⡬⠏⠁⠀⠀⠀⠀⠀⠀⠀⠹⣬⠷⠄⢹⡶⠝⢲⣄⠀⣸⠄⣀⣸⣇⣠⣧⢼⣿⡆⢸
⠀⠀⠀⠀⠀⠀⠀⠀⢀⡤⢾⡤⢌⢳⠽⠚⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⠷⣤⢿⡽⡳⡟⣿⠛⢃⠆⠁⢹⠋⢹⠁⠀⠙⢦⣸
⠀⠀⠀⠀⠀⠀⢀⢔⣽⡾⣻⠆⣸⣁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⢻⠓⡙⡆⢿⠒⠺⡷⠀⠸⠶⢺⠀⠀⠀⠀⠻
⠀⠀⠀⠀⠀⣰⣫⠟⠀⣢⢟⣴⣿⣿⠂⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⢻⡻⡧⢷⢾⡦⣤⣧⡤⠤⠤⣾
⠀⠀⠀⠀⣸⠁⠯⠦⣚⣵⣿⣿⠏⠿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⢶⠶⡶⠾⢻⣥⢠⣇⣤⣼⣤⣽
⠀⠀⠀⠀⠳⠵⠒⠛⢿⡿⣿⣧⠀⠀⣨⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠷⣧⠤⠼⣌⡀⡇⠀⠸⠇⢸⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⡌⢻⣷⡾⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠰⣿⣤⣀⣿⡉⡿⠋⢹⡞⠻⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡐⠹⣇⣀⠀⠠⡏⠉⣿⠛⢹⡟⠓⡇
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣤⣿⣿⣯⣥⣭⣭⣿⣋⡓⠿⣤⣤⣥⡾⠃
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⢉⣽⣿⣿⣿⣿⣿⣿⣿⣿⡿⠿⠃
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⠉⠉⠉⠉⠉

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

Successfully merging this pull request may close these issues.

2 participants