You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently you declare vweb.run<App> and use handle_conn<T>(...) inside the vweb.
That handle_conn function translate to C function like this vweb__handle_conn_main__App
Most of the event loop library use callback to trigger when message arrived, so you need address of that function.
Current syntax does not allow to get generics function like &handle_conn<T> without the call with bracket ().
If you allow the syntax and generate the code same as &vweb__handle_conn_main__App, that would be perfect.
This discussion was converted from issue #5988 on September 22, 2021 00:47.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently you declare
vweb.run<App>
and usehandle_conn<T>(...)
inside the vweb.That handle_conn function translate to C function like this
vweb__handle_conn_main__App
Most of the event loop library use callback to trigger when message arrived, so you need address of that function.
Current syntax does not allow to get generics function like
&handle_conn<T>
without the call with bracket()
.If you allow the syntax and generate the code same as
&vweb__handle_conn_main__App
, that would be perfect.(I got good numbers with pico with vweb, and performance are very close with raw and it is lacking only that functionality. - https://discord.com/channels/592103645835821068/592320321995014154/737145490143051836)
Beta Was this translation helpful? Give feedback.
All reactions