kasperl
11/02/2025, 5:10 PMTask.group helper.kasperl
11/02/2025, 5:12 PMmilkmansson
11/06/2025, 3:02 PMbmentink
11/06/2025, 10:22 PMartemis auth login and follow the link, the browser refuses to redirect after I enter the login details ..floitsch
11/06/2025, 10:23 PMbmentink
11/06/2025, 10:23 PMnas2011
11/07/2025, 12:24 PMfloitsch
11/07/2025, 12:31 PMfloitsch
11/07/2025, 12:44 PMadd-first but not for add.floitsch
11/07/2025, 1:33 PMnas2011
11/07/2025, 8:14 PMfloitsch
11/07/2025, 8:45 PMbmentink
11/08/2025, 9:03 PMbmentink
11/08/2025, 9:12 PMfloitsch
11/08/2025, 9:35 PMfloitsch
11/08/2025, 10:06 PMfloitsch
11/09/2025, 12:10 AMbmentink
11/09/2025, 3:33 AMMichaelK
11/10/2025, 9:10 AM[jaguar] INFO: program 94e7226f-cba3-e548-86bb-a0233c7c1731 started
address->#[0x00, 0x07, 0x35, 0x00, 0xcf, 0x83, 0x72]
device connected...
Exception: Characteristic does not support reads
[jaguar] INFO: program 94e7226f-cba3-e548-86bb-a0233c7c1731 stopped
https://cdn.discordapp.com/attachments/918498540232253483/1437368694383710249/find_device.toit?ex=6912fd69&is=6911abe9&hm=a185c0d9bde3b335ad0cdc3ba78157d26aef5730690ec9a6923c37c40a1b0e3f&floitsch
11/10/2025, 9:29 AMheart-characteristic.subscribe
while true:
new-value := heart-characteristic.wait-for-notification
I don't remember what happens if you don't call wait-for-notification enough. Whether the values are queued (using up memory), or discarded.
If you only need one value, you should just subscribe, then wait-for-notification, and then unsubscribe.floitsch
11/11/2025, 10:47 AMto-string or stringify. In the process deprecated all {num|int|float}.stringify functions that took arguments and redirect them to to-string XXX. (`to-string`: explicit well defined conversion. `stringify`: give me a string representation; maybe for debug).nas2011
11/11/2025, 9:21 PM// Base class for all AST nodes.
class AstNode:
line_/int
col_/int
constructor .line_ .col_:
// A simple stringify for debugging.
// Subclasses should override this.
stringify -> string:
return "AST Node: ($line_:$col_)"
// --- File Nodes ---
class LibFileNode extends AstNode:
entries/List // List<NamedSpecNode | NamedDataNode>
constructor line_/int col_/int .entries:
super line_ col_
stringify -> string:
return "LibFileNode: entries:$entries"
When I run a parsing function that returns an instance, called result of LibFileNode I can validate this with result is LibFileNode which does return true, however if I try and run print result.entries I get an error saying:
error: Class 'AstNode' does not have any method 'entries'
Shouldn't the Instance.field getter work by default?floitsch
11/11/2025, 9:23 PMfloitsch
11/11/2025, 9:23 PMprint result?floitsch
11/11/2025, 9:23 PMfloitsch
11/11/2025, 9:25 PMis check?
Unfortunately we haven't implemented automatic downcasting yet.
Use (result as LibFileNode).entriesnas2011
11/11/2025, 9:29 PMresult example is there a function that would return LibFileNode ? Thinking of something like typeof in other languages.floitsch
11/11/2025, 9:30 PMjag toit tools snapshot ... to get the name from an id. (Don't remember the exact command)z3ugma
11/12/2025, 5:20 AMhttp package can implement long-polling?floitsch
11/12/2025, 8:13 AM