whitequark[cis] changed the topic of #glasgow to: https://glasgow-embedded.org · digital interface explorer · https://www.crowdsupply.com/1bitsquared/glasgow · code https://github.com/GlasgowEmbedded/glasgow · logs https://libera.irclog.whitequark.org/glasgow · matrix #glasgow-interface-explorer:matrix.org · discord https://1bitsquared.com/pages/chat
<_whitenotifier-3> [glasgow] attie commented on pull request #677: Implement a GPIO applet, for controlling the pins directly from Python - https://github.com/GlasgowEmbedded/glasgow/pull/677#issuecomment-2308581556
siriusfox has joined #glasgow
redstarcomrade has joined #glasgow
skipwich has quit [Remote host closed the connection]
<_whitenotifier-3> [glasgow] purdeaandrei synchronize pull request #672: applet.program.psoc1: implemented - https://github.com/GlasgowEmbedded/glasgow/pull/672
redstarcomrade has quit [Read error: Connection reset by peer]
<_whitenotifier-3> [glasgow] purdeaandrei commented on pull request #672: applet.program.psoc1: implemented - https://github.com/GlasgowEmbedded/glasgow/pull/672#issuecomment-2308635635
redstarcomrade has joined #glasgow
skipwich has joined #glasgow
Fridtjof has quit [Quit: ZNC - http://znc.in]
Stary has quit [Quit: ZNC - http://znc.in]
Stary has joined #glasgow
Fridtjof has joined #glasgow
meklort has quit [Quit: ZNC 1.7.5+deb4 - https://znc.in]
meklort has joined #glasgow
trh has quit [Quit: weg]
trh has joined #glasgow
<_whitenotifier-3> [glasgow] whitequark commented on pull request #672: applet.program.psoc1: implemented - https://github.com/GlasgowEmbedded/glasgow/pull/672#issuecomment-2308686404
jstein has joined #glasgow
redstarcomrade has quit [Read error: Connection reset by peer]
Guest75 has joined #glasgow
Guest75 has quit [Quit: Client closed]
Guest75 has joined #glasgow
Guest75 has quit [Write error: Broken pipe]
Guest48 has joined #glasgow
Guest48 has quit [Client Quit]
Guest75 has joined #glasgow
Guest75 has quit [Quit: Client closed]
Guest75 has joined #glasgow
Guest75 has quit [Quit: Client closed]
Guest75 has joined #glasgow
jstein has quit [Remote host closed the connection]
Guest75 has quit [Quit: Client closed]
Guest75 has joined #glasgow
Guest75 has quit [Quit: Client closed]
<purdeaandrei[m]> How should I pass a struct literal from python code to gateware?... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/OEfsJxhLboguBuzVwtZGgZcE>)
Guest75 has joined #glasgow
Guest47 has joined #glasgow
FFY00_ has joined #glasgow
FFY00 has quit [Ping timeout: 246 seconds]
FFY00 has joined #glasgow
Guest63 has joined #glasgow
FFY00_ has quit [Ping timeout: 252 seconds]
Guest63 has quit [Client Quit]
Guest75 has quit [Ping timeout: 256 seconds]
Guest72 has joined #glasgow
Guest47 has quit [Ping timeout: 256 seconds]
Guest32 has joined #glasgow
Guest75 has joined #glasgow
Guest72 has quit [Ping timeout: 256 seconds]
Guest32 has quit [Ping timeout: 256 seconds]
Guest75 has quit [Quit: Client closed]
Guest53 has joined #glasgow
Guest53 has quit [Quit: Client closed]
Guest75 has joined #glasgow
Guest75 has quit [Write error: Broken pipe]
<purdeaandrei[m]> hmm, I don't think that's good, it seems slow
Guest31 has joined #glasgow
Guest31 has quit [Killed (ozone (No Spam))]
Guest75 has joined #glasgow
Guest75 has quit [Client Quit]
<_whitenotifier-3> [glasgow] purdeaandrei synchronize pull request #672: applet.program.psoc1: implemented - https://github.com/GlasgowEmbedded/glasgow/pull/672
<purdeaandrei[m]> So I did the following change to increase the readbility of my code, and make it clear how flags in the command byte overlap:
<purdeaandrei[m]> this is all fine
<purdeaandrei[m]> however I didn't like that the python-side still had hard-coded bit positions
<purdeaandrei[m]> So I tried this:
<mwkmwkmwk[m]> uh, that's... subject of an RFC which I will definitely write, one of these days
<purdeaandrei[m]> so there's no way to do this fast right now, correct?
<mwkmwkmwk[m]> "fast"?
<mwkmwkmwk[m]> we're talking about python
<galibert[m]> we're also talking about something that's run only once, right?
<mwkmwkmwk[m]> actually hold on
<mwkmwkmwk[m]> I did write an RFC?
<purdeaandrei[m]> Out[88]: 0.00014405246349633673
<purdeaandrei[m]> it takes 0.14 milliseconds to calculate one byte
<purdeaandrei[m]> most of that is constructing the Const object
<purdeaandrei[m]> constructing the dict is 0.13 microseconds
<purdeaandrei[m]> I'd consider this slow even for python
<mwkmwkmwk[m]> hrm. imagine having working long-term memory.
<mwkmwkmwk[m]> anyway
<mwkmwkmwk[m]> want to profile it?
<purdeaandrei[m]> And for some reason it has an even bigger effect on my own code, since I see 20 milliseconds of no activity
<purdeaandrei[m]> anyway, that's probably some interaction with the kernel
<mwkmwkmwk[m]> um what
<purdeaandrei[m]> My point is that using Const() literally slows down my applet by 2x
<purdeaandrei[m]> it takes 20 seconds to program a psoc1 chip rather then 10
<purdeaandrei[m]> Anyway, am I even doing this right?
<purdeaandrei[m]> which RFC are you referring to?
<mwkmwkmwk[m]> ... I think?
<mwkmwkmwk[m]> no
<mwkmwkmwk[m]> that doesn't
<purdeaandrei[m]> Actually , perhaps not, I don't think there's any interaction with the kernel
<mwkmwkmwk[m]> ... okay disregard everything, I'm not at my most coherent today
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #glasgow
<_whitenotifier-3> [glasgow] purdeaandrei synchronize pull request #672: applet.program.psoc1: implemented - https://github.com/GlasgowEmbedded/glasgow/pull/672
<purdeaandrei[m]> I ended up adding these asserts, to keep speed, but at the same time feel safe that a future change to my struct's layout will not silently break something:
norineko has quit [Remote host closed the connection]
norineko has joined #glasgow
norineko has quit [Remote host closed the connection]
norineko has joined #glasgow
Guest75 has joined #glasgow
Guest3 has joined #glasgow
Guest3 has quit [Client Quit]
Guest75 has quit [Client Quit]
Guest75 has joined #glasgow
Guest75 has quit [Quit: Client closed]
Guest20 has joined #glasgow
Guest20 has quit [Write error: Broken pipe]
Guest75 has joined #glasgow
<_whitenotifier-3> [glasgow] purdeaandrei synchronize pull request #672: applet.program.psoc1: implemented - https://github.com/GlasgowEmbedded/glasgow/pull/672
Guest59 has joined #glasgow
Guest75 has quit [Quit: Client closed]
Guest11 has joined #glasgow
Guest11 has quit [Client Quit]
Guest75 has joined #glasgow
Guest75 has quit [Client Quit]
Guest77 has joined #glasgow
urja has quit [Read error: Connection reset by peer]
Guest77 has quit [Quit: Client closed]
urja has joined #glasgow
Guest25 has joined #glasgow
Guest25 has quit [Client Quit]
Guest75 has joined #glasgow
Guest75 has quit [Client Quit]
Guest75 has joined #glasgow
Guest59 has quit [Quit: Client closed]
Guest75 has quit [Quit: Client closed]
<_whitenotifier-3> [glasgow] purdeaandrei commented on pull request #672: applet.program.psoc1: implemented - https://github.com/GlasgowEmbedded/glasgow/pull/672#issuecomment-2308969700
Guest75 has joined #glasgow
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has joined #glasgow
Guest15 has joined #glasgow
Guest15 has quit [K-Lined]
Guest75 has quit [K-Lined]
Guest75 has joined #glasgow
Guest8 has joined #glasgow
Guest75 has quit [Quit: Client closed]
Guest8 has quit [Quit: Client closed]
Guest14 has joined #glasgow
Guest14 has quit [Client Quit]
Guest75 has joined #glasgow
Guest75 has quit [Client Quit]
redstarcomrade has quit [Read error: Connection reset by peer]