Current Server Time: 23:08 (Central Europe)

#apertus IRC Channel Logs

2021/03/23

Timezone: UTC


00:17
lexano
left the channel
01:06
lexano
joined the channel
04:15
mumptai
joined the channel
04:37
rassu_12[m]
<BAndiT1983 "rassu_12: why do you need virtua"> because docker desktop required that
04:38
Bertl
off to bed now ... have a good one everyone!
04:38
Bertl
changed nick to: Bertl_zZ
04:39
rassu_12[m]
uploaded an image: (160KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/ZIVOOOsmexaZobUlORhvZroU/Screenshot%20(11).png >
06:13
BAndiT1983|away
changed nick to: BAndiT1983
06:15
BAndiT1983
rassu_12[m]: i know that it's required etc., but do you need docker for challenge task?
06:17
BAndiT1983
a couple of days ago a friend of mine has finally installed linux (manjaro) in parallel to windows, as he was complaining about problems of getting OpenShift and docker running in parallel, one of them wanted Hyper-V and the other required VirtualBox, which collides with Hyper-V, also virtual network switch just killed the network connection etc.
06:18
BAndiT1983
have shown him how to install properly, e.g. partitioning and some tips regarding setting up rootless docker, after a short time received a photo of his desktop with OpenShift up and running, maybe you should also consider to dual-boot to linux instead
06:19
BAndiT1983
but for our tasks no docker is required usually (was added for the convenience in first place), as we use windows less, the build has to be adjusted for it
06:20
BAndiT1983
will install MSVC++ in the evening today, when at my desktop, where windows is present, so i can check what's the trouble with building visualiser
07:42
se6ast1an
good day
07:42
BAndiT1983
hi
07:47
se6ast1an
great to see so much activity here :)
08:34
vnksnkr
joined the channel
09:43
markusengsner
joined the channel
10:28
vnksnkr
left the channel
10:39
Bertl_zZ
changed nick to: Bertl
10:39
Bertl
morning folks!
11:03
markusengsner
left the channel
11:34
rassu_12[m]
i am not getting what ProcessBytes does, i searched that on internet but got results something related to SSH protocol ,
11:34
rassu_12[m]
uploaded an image: (134KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/cpxfMUpncxbnWIckKbHrdkFq/Screenshot%20(26).png >
11:38
BAndiT1983
why do you search for that on the internet when the source code is right there?
11:38
BAndiT1983
SSH? on the pic32? that would be a miracle
11:39
Bertl
dropbear?
11:41
BAndiT1983
could work
11:43
markusengsner
joined the channel
11:54
rassu_12[m]
<BAndiT1983 "why do you search for that on th"> sorry, but still i haven't the function of ProcessBytes
11:55
BAndiT1983
interesting, but i see it actually see it in your screenshot, you just have to look more thoroughly
11:55
BAndiT1983
*but i actually see it
11:58
rassu_12[m]
<BAndiT1983 "interesting, but i see it actual"> can you give me a hint where i can find the function of Processbytes , as i can't find that in any of .h included files..
11:59
BAndiT1983
look at your screenshot, maybe you will get the idea, can't give more hints than that
12:39
markusengsner
BANdiT1983: So I was looking at the utils functions, and I was wondering about the need for declaring them static?
12:41
Bertl
rassu_12[m]: part of the challenge tasks is that you 'figure out things on your own'
12:41
markusengsner
afaict it doesn't do anything more than declaring them as just inline, other than forcing the compiler to generate additional versions of the function when it chooses not to inline them
12:41
BAndiT1983
markusengsner: haven't looked at them for quite some time, can be changed if it's not correct
12:42
Bertl
static inline is like macros and the compiler is free to decide how to handle them
12:42
markusengsner
BAndit1983: I tried just removing 'static' from them, and the only effect was that the executable shrunk by 4kb or so
12:43
BAndiT1983
great! then you have a plan there ;)
12:43
Bertl
I wouldn't do that, I would look at the compiler options first
12:44
Bertl
i.e. 4kb more code usage means that the compiler decides to go for speed/convenience instead of code size
12:44
BAndiT1983
inline should be sufficient
12:45
markusengsner
Bertl: I'm mostly confused about what effect `static inline` has compared to just `inline`
12:45
markusengsner
shouldn't just inlining allow the compiler to inline the function too?
12:46
BAndiT1983
https://www.microchip.com/forums/m922244.aspx
12:47
Bertl
of course 'just' inline allows to inline the function, that's the purpose
12:48
Bertl
static inline limits the scope to the current unit
12:49
Bertl
so, if the compiler decides to go for a non inlined version, there might be several copies of those
12:51
markusengsner
Bertl: yeah that was my thinking, and since the utils functions are called from multiple different units, I thought it would be better to omit `static`
12:52
Bertl
well, depends, in case all functions get inlined, you are left with a dummy
12:54
markusengsner
oh okay now I see, I hadn't considered that
12:56
Bertl
it still might make sense to do that though, depending on the desired compiler options
12:56
Bertl
it also has some implications during include, i.e. 'normal' inline defined functions should complain if included twice
12:57
Bertl
the static inline will not complain as long as the definition is the same :)
12:57
markusengsner
is that an advantage? :)
13:03
Bertl
it can be :)
13:22
danieel
left the channel
13:43
danieel
joined the channel
13:43
BAndiT1983
markusengsner: you can inspect the resulting ELF file with radare2/cutter, there you can see if it placed it correctly
13:46
BAndiT1983
and through X-ref search there one can see where the calls to the function are
14:06
markusengsner
BAndiT1983: I checked a couple of spots now in the ELF file with Cutter
14:06
markusengsner
and I haven't found a single actual inlining
14:06
markusengsner
when `static inline`, it just calls a local version of the function instead
14:09
Bertl
means that with the current options, the compiler sees no reason for inlining the code and if those options are what we want, then removing the static might be a good choice
15:35
preetimenghwani[
left the channel
15:35
JiteshHemji[m]
left the channel
15:35
RizwanMemon[m]
left the channel
15:36
eppisai
left the channel
15:36
aleb
left the channel
15:36
priyamraj2000[m]
left the channel
15:36
elkos
left the channel
15:37
DevendraKharolia
left the channel
15:37
karl[m]
left the channel
15:37
eppisai
joined the channel
15:37
pangelo[m]
left the channel
15:37
SurajKMahto[m]
left the channel
15:37
vedant16[m]
left the channel
15:37
metal_dent[m]
left the channel
15:37
rassu_12[m]
left the channel
15:38
satacker[m]
left the channel
15:38
NikhilBarik[m]
left the channel
15:38
promach3
left the channel
15:38
panintended
left the channel
15:48
eppisai
left the channel
15:48
eppisai
joined the channel
16:00
preetimenghwani[
joined the channel
16:01
priyamraj2000[m]
joined the channel
16:03
JiteshHemji[m]
joined the channel
16:03
elkos
joined the channel
16:03
DevendraKharolia
joined the channel
16:04
karl[m]
joined the channel
16:07
metal_dent[m]
joined the channel
16:08
RizwanMemon[m]
joined the channel
16:10
rassu_12[m]
joined the channel
16:13
pangelo[m]
joined the channel
16:13
aleb
joined the channel
16:15
vedant16[m]
joined the channel
16:16
vnksnkr
joined the channel
16:18
NikhilBarik[m]
joined the channel
16:18
satacker[m]
joined the channel
16:23
promach3
joined the channel
16:24
SurajKMahto[m]
joined the channel
16:25
panintended
joined the channel
16:33
markusengsner
left the channel
16:42
vnksnkr
left the channel
16:47
illwieckz
left the channel
16:49
vnksnkr
joined the channel
16:51
illwieckz
joined the channel
17:04
vnksnkr
left the channel
17:10
vnksnkr
joined the channel
17:23
vnksnkr
left the channel
18:01
Bertl
off for now ... bbl
18:01
Bertl
changed nick to: Bertl_oO
18:18
mumptai
left the channel
19:33
markusengsner
joined the channel
19:35
mumptai
joined the channel
21:09
se6ast1an
off for today, good night
21:16
Bertl_oO
nn
23:13
markusengsner
left the channel