Current Server Time: 14:39 (Central Europe)

#apertus IRC Channel Logs

2021/03/23

Timezone: UTC


23:17
lexano
left the channel
00:06
lexano
joined the channel
03:15
mumptai
joined the channel
03:37
rassu_12[m]
<BAndiT1983 "rassu_12: why do you need virtua"> because docker desktop required that
03:38
Bertl
off to bed now ... have a good one everyone!
03:38
Bertl
changed nick to: Bertl_zZ
03:39
rassu_12[m]
uploaded an image: (160KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/ZIVOOOsmexaZobUlORhvZroU/Screenshot%20(11).png >
05:13
BAndiT1983|away
changed nick to: BAndiT1983
05:15
BAndiT1983
rassu_12[m]: i know that it's required etc., but do you need docker for challenge task?
05: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.
05: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
05: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
05: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
06:42
se6ast1an
good day
06:42
BAndiT1983
hi
06:47
se6ast1an
great to see so much activity here :)
07:34
vnksnkr
joined the channel
08:43
markusengsner
joined the channel
09:28
vnksnkr
left the channel
09:39
Bertl_zZ
changed nick to: Bertl
09:39
Bertl
morning folks!
10:03
markusengsner
left the channel
10:34
rassu_12[m]
i am not getting what ProcessBytes does, i searched that on internet but got results something related to SSH protocol ,
10:34
rassu_12[m]
uploaded an image: (134KiB) < https://matrix.org/_matrix/media/r0/download/matrix.org/cpxfMUpncxbnWIckKbHrdkFq/Screenshot%20(26).png >
10:38
BAndiT1983
why do you search for that on the internet when the source code is right there?
10:38
BAndiT1983
SSH? on the pic32? that would be a miracle
10:39
Bertl
dropbear?
10:41
BAndiT1983
could work
10:43
markusengsner
joined the channel
10:54
rassu_12[m]
<BAndiT1983 "why do you search for that on th"> sorry, but still i haven't the function of ProcessBytes
10:55
BAndiT1983
interesting, but i see it actually see it in your screenshot, you just have to look more thoroughly
10:55
BAndiT1983
*but i actually see it
10: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..
10:59
BAndiT1983
look at your screenshot, maybe you will get the idea, can't give more hints than that
11:39
markusengsner
BANdiT1983: So I was looking at the utils functions, and I was wondering about the need for declaring them static?
11:41
Bertl
rassu_12[m]: part of the challenge tasks is that you 'figure out things on your own'
11: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
11:41
BAndiT1983
markusengsner: haven't looked at them for quite some time, can be changed if it's not correct
11:42
Bertl
static inline is like macros and the compiler is free to decide how to handle them
11:42
markusengsner
BAndit1983: I tried just removing 'static' from them, and the only effect was that the executable shrunk by 4kb or so
11:43
BAndiT1983
great! then you have a plan there ;)
11:43
Bertl
I wouldn't do that, I would look at the compiler options first
11:44
Bertl
i.e. 4kb more code usage means that the compiler decides to go for speed/convenience instead of code size
11:44
BAndiT1983
inline should be sufficient
11:45
markusengsner
Bertl: I'm mostly confused about what effect `static inline` has compared to just `inline`
11:45
markusengsner
shouldn't just inlining allow the compiler to inline the function too?
11:46
BAndiT1983
https://www.microchip.com/forums/m922244.aspx
11:47
Bertl
of course 'just' inline allows to inline the function, that's the purpose
11:48
Bertl
static inline limits the scope to the current unit
11:49
Bertl
so, if the compiler decides to go for a non inlined version, there might be several copies of those
11: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`
11:52
Bertl
well, depends, in case all functions get inlined, you are left with a dummy
11:54
markusengsner
oh okay now I see, I hadn't considered that
11:56
Bertl
it still might make sense to do that though, depending on the desired compiler options
11:56
Bertl
it also has some implications during include, i.e. 'normal' inline defined functions should complain if included twice
11:57
Bertl
the static inline will not complain as long as the definition is the same :)
11:57
markusengsner
is that an advantage? :)
12:03
Bertl
it can be :)
12:22
danieel
left the channel
12:43
danieel
joined the channel
12:43
BAndiT1983
markusengsner: you can inspect the resulting ELF file with radare2/cutter, there you can see if it placed it correctly
12:46
BAndiT1983
and through X-ref search there one can see where the calls to the function are
13:06
markusengsner
BAndiT1983: I checked a couple of spots now in the ELF file with Cutter
13:06
markusengsner
and I haven't found a single actual inlining
13:06
markusengsner
when `static inline`, it just calls a local version of the function instead
13: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
14:35
preetimenghwani[
left the channel
14:35
JiteshHemji[m]
left the channel
14:35
RizwanMemon[m]
left the channel
14:36
eppisai
left the channel
14:36
aleb
left the channel
14:36
priyamraj2000[m]
left the channel
14:36
elkos
left the channel
14:37
DevendraKharolia
left the channel
14:37
karl[m]
left the channel
14:37
eppisai
joined the channel
14:37
pangelo[m]
left the channel
14:37
SurajKMahto[m]
left the channel
14:37
vedant16[m]
left the channel
14:37
metal_dent[m]
left the channel
14:37
rassu_12[m]
left the channel
14:38
satacker[m]
left the channel
14:38
NikhilBarik[m]
left the channel
14:38
promach3
left the channel
14:38
panintended
left the channel
14:48
eppisai
left the channel
14:48
eppisai
joined the channel
15:00
preetimenghwani[
joined the channel
15:01
priyamraj2000[m]
joined the channel
15:03
JiteshHemji[m]
joined the channel
15:03
elkos
joined the channel
15:03
DevendraKharolia
joined the channel
15:04
karl[m]
joined the channel
15:07
metal_dent[m]
joined the channel
15:08
RizwanMemon[m]
joined the channel
15:10
rassu_12[m]
joined the channel
15:13
pangelo[m]
joined the channel
15:13
aleb
joined the channel
15:15
vedant16[m]
joined the channel
15:16
vnksnkr
joined the channel
15:18
NikhilBarik[m]
joined the channel
15:18
satacker[m]
joined the channel
15:23
promach3
joined the channel
15:24
SurajKMahto[m]
joined the channel
15:25
panintended
joined the channel
15:33
markusengsner
left the channel
15:42
vnksnkr
left the channel
15:47
illwieckz
left the channel
15:49
vnksnkr
joined the channel
15:51
illwieckz
joined the channel
16:04
vnksnkr
left the channel
16:10
vnksnkr
joined the channel
16:23
vnksnkr
left the channel
17:01
Bertl
off for now ... bbl
17:01
Bertl
changed nick to: Bertl_oO
17:18
mumptai
left the channel
18:33
markusengsner
joined the channel
18:35
mumptai
joined the channel
20:09
se6ast1an
off for today, good night
20:16
Bertl_oO
nn
22:13
markusengsner
left the channel