00:13
siriusfox has joined #glasgow
00:39
redstarcomrade has joined #glasgow
01:49
skipwich has quit [Remote host closed the connection]
02:36
redstarcomrade has quit [Read error: Connection reset by peer]
03:22
redstarcomrade has joined #glasgow
03:38
skipwich has joined #glasgow
04:00
Stary has joined #glasgow
04:01
Fridtjof has joined #glasgow
04:40
meklort has joined #glasgow
04:47
trh has quit [Quit: weg]
04:48
trh has joined #glasgow
10:32
jstein has joined #glasgow
11:35
redstarcomrade has quit [Read error: Connection reset by peer]
11:56
Guest75 has joined #glasgow
12:01
Guest75 has quit [Quit: Client closed]
12:03
Guest75 has joined #glasgow
12:04
Guest75 has quit [Write error: Broken pipe]
12:05
Guest48 has joined #glasgow
12:06
Guest48 has quit [Client Quit]
12:10
Guest75 has joined #glasgow
12:18
Guest75 has quit [Quit: Client closed]
12:20
Guest75 has joined #glasgow
12:24
Guest75 has quit [Quit: Client closed]
12:26
Guest75 has joined #glasgow
12:45
jstein has quit [Remote host closed the connection]
13:19
Guest75 has quit [Quit: Client closed]
14:08
Guest75 has joined #glasgow
14:44
Guest75 has quit [Quit: Client closed]
14:46
Guest75 has joined #glasgow
14:48
Guest47 has joined #glasgow
14:48
FFY00_ has joined #glasgow
14:50
FFY00 has quit [Ping timeout: 246 seconds]
14:52
FFY00 has joined #glasgow
14:53
Guest63 has joined #glasgow
14:53
FFY00_ has quit [Ping timeout: 252 seconds]
14:54
Guest63 has quit [Client Quit]
14:55
Guest75 has quit [Ping timeout: 256 seconds]
14:55
Guest72 has joined #glasgow
14:56
Guest47 has quit [Ping timeout: 256 seconds]
14:56
Guest32 has joined #glasgow
14:59
Guest75 has joined #glasgow
15:00
Guest72 has quit [Ping timeout: 256 seconds]
15:03
Guest32 has quit [Ping timeout: 256 seconds]
15:03
Guest75 has quit [Quit: Client closed]
15:04
Guest53 has joined #glasgow
15:09
Guest53 has quit [Quit: Client closed]
15:10
Guest75 has joined #glasgow
15:11
Guest75 has quit [Write error: Broken pipe]
15:12
<
purdeaandrei[m] >
hmm, I don't think that's good, it seems slow
15:13
Guest31 has joined #glasgow
15:13
Guest31 has quit [Killed (ozone (No Spam))]
15:16
Guest75 has joined #glasgow
15:19
Guest75 has quit [Client Quit]
15:34
<
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:
15:34
<
purdeaandrei[m] >
this is all fine
15:35
<
purdeaandrei[m] >
however I didn't like that the python-side still had hard-coded bit positions
15:35
<
purdeaandrei[m] >
So I tried this:
15:38
<
mwkmwkmwk[m] >
uh, that's... subject of an RFC which I will definitely write, one of these days
15:39
<
purdeaandrei[m] >
so there's no way to do this fast right now, correct?
15:39
<
mwkmwkmwk[m] >
"fast"?
15:39
<
mwkmwkmwk[m] >
we're talking about python
15:39
<
galibert[m] >
we're also talking about something that's run only once, right?
15:40
<
mwkmwkmwk[m] >
actually hold on
15:40
<
mwkmwkmwk[m] >
I did write an RFC?
15:41
<
purdeaandrei[m] >
Out[88]: 0.00014405246349633673
15:41
<
purdeaandrei[m] >
it takes 0.14 milliseconds to calculate one byte
15:42
<
purdeaandrei[m] >
most of that is constructing the Const object
15:42
<
purdeaandrei[m] >
constructing the dict is 0.13 microseconds
15:42
<
purdeaandrei[m] >
I'd consider this slow even for python
15:42
<
mwkmwkmwk[m] >
hrm. imagine having working long-term memory.
15:42
<
mwkmwkmwk[m] >
anyway
15:42
<
mwkmwkmwk[m] >
want to profile it?
15:43
<
purdeaandrei[m] >
And for some reason it has an even bigger effect on my own code, since I see 20 milliseconds of no activity
15:44
<
purdeaandrei[m] >
anyway, that's probably some interaction with the kernel
15:44
<
mwkmwkmwk[m] >
um what
15:45
<
purdeaandrei[m] >
My point is that using Const() literally slows down my applet by 2x
15:45
<
purdeaandrei[m] >
it takes 20 seconds to program a psoc1 chip rather then 10
15:45
<
purdeaandrei[m] >
Anyway, am I even doing this right?
15:45
<
purdeaandrei[m] >
which RFC are you referring to?
15:46
<
mwkmwkmwk[m] >
... I think?
15:47
<
mwkmwkmwk[m] >
that doesn't
15:47
<
purdeaandrei[m] >
Actually , perhaps not, I don't think there's any interaction with the kernel
15:48
<
mwkmwkmwk[m] >
... okay disregard everything, I'm not at my most coherent today
15:59
cr1901 has quit [Read error: Connection reset by peer]
16:04
cr1901 has joined #glasgow
16:36
<
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:
16:59
norineko has quit [Remote host closed the connection]
17:01
norineko has joined #glasgow
17:18
norineko has quit [Remote host closed the connection]
17:20
norineko has joined #glasgow
18:08
Guest75 has joined #glasgow
18:08
Guest3 has joined #glasgow
18:10
Guest3 has quit [Client Quit]
18:10
Guest75 has quit [Client Quit]
18:13
Guest75 has joined #glasgow
18:17
Guest75 has quit [Quit: Client closed]
18:20
Guest20 has joined #glasgow
18:22
Guest20 has quit [Write error: Broken pipe]
18:23
Guest75 has joined #glasgow
18:26
Guest59 has joined #glasgow
18:33
Guest75 has quit [Quit: Client closed]
18:36
Guest11 has joined #glasgow
18:37
Guest11 has quit [Client Quit]
18:38
Guest75 has joined #glasgow
18:41
Guest75 has quit [Client Quit]
18:43
Guest77 has joined #glasgow
18:43
urja has quit [Read error: Connection reset by peer]
19:00
Guest77 has quit [Quit: Client closed]
19:02
urja has joined #glasgow
19:02
Guest25 has joined #glasgow
19:03
Guest25 has quit [Client Quit]
19:05
Guest75 has joined #glasgow
19:08
Guest75 has quit [Client Quit]
19:09
Guest75 has joined #glasgow
19:26
Guest59 has quit [Quit: Client closed]
19:26
Guest75 has quit [Quit: Client closed]
20:20
Guest75 has joined #glasgow
20:30
redstarcomrade has joined #glasgow
20:30
redstarcomrade has quit [Changing host]
20:30
redstarcomrade has joined #glasgow
21:08
Guest15 has joined #glasgow
21:10
Guest15 has quit [K-Lined]
21:10
Guest75 has quit [K-Lined]
22:46
Guest75 has joined #glasgow
22:46
Guest8 has joined #glasgow
23:00
Guest75 has quit [Quit: Client closed]
23:00
Guest8 has quit [Quit: Client closed]
23:04
Guest14 has joined #glasgow
23:04
Guest14 has quit [Client Quit]
23:23
Guest75 has joined #glasgow
23:26
Guest75 has quit [Client Quit]
23:58
redstarcomrade has quit [Read error: Connection reset by peer]