ChanServ changed the topic of #lowempire to: Low Level Empire | This channel was created for Algorithms, Compilers, OS, Hardware, CS theory stuff (low-level) | be patient, polite | don't do off top | Ask your question | Paste your codes/long texts https://paste.debian.net/ or "echo just testing! | nc termbin.com 9999" | Logs: https://freenode.irclog.whitequark.org/lowempire
ascii has joined #lowempire
ascii has quit [Ping timeout: 246 seconds]
ascii has joined #lowempire
ascii has quit [Ping timeout: 260 seconds]
ascii has joined #lowempire
ascii has quit [Ping timeout: 272 seconds]
ascii has joined #lowempire
ascii has quit [Remote host closed the connection]
ascii has joined #lowempire
marlin has joined #lowempire
ascii has quit [Remote host closed the connection]
lucid_0x80 has joined #lowempire
ascii has joined #lowempire
ascii has quit [Ping timeout: 256 seconds]
ascii has joined #lowempire
ascii has quit [Ping timeout: 246 seconds]
ascii has joined #lowempire
ascii has quit [Ping timeout: 260 seconds]
ascii has joined #lowempire
marlin has quit [Quit: Konversation terminated!]
ascii has quit [Remote host closed the connection]
ascii has joined #lowempire
ascii has quit [Remote host closed the connection]
lucid_0x80 has quit [Ping timeout: 246 seconds]
dumenci has joined #lowempire
ascii has joined #lowempire
ascii has quit [Remote host closed the connection]
ascii has joined #lowempire
ascii has quit [Remote host closed the connection]
ascii has joined #lowempire
<ascii> dumenci ne var ne yox?)))
<dumenci> shukur
<dumenci> salamatcio
<dumenci> salamatcilig
<dumenci> sende ne var ne yox? )
<ascii> salamatciligdi)) nenirsen?)
<dumenci> hecne isleyirem
<dumenci> as usual :-D
<dumenci> sen neynirsen?
<ascii> mende ele)) nece gedir ishler?? mennen sora gec cixdiz o gun ?
<dumenci> yoo
<dumenci> 1 saat oturduq cixdiq ele
<dumenci> "
<dumenci> :-D
<dumenci> hami uje yuxuluyurdu
<dumenci> :-d
<dumenci> yatirdi
<dumenci> gece gelib 4de yatmisame :-d
<dumenci> yuxumda gelmedi gelennen sonra
<ascii> xaxaxaxa))))) be ne basirdilar orda biz hele burdayig zad))))
<ascii> vaxtin var qisaca bir sual verim
<ascii> tez bazar :DD
<dumenci> aha elbette ver gelsun
<ascii> okay) demeli pythonda logger-e msg oturursen a,onu men f string-nen oturende yeni f"test {name}" bele, mene warning cixardir ki lazy load ele
<ascii> yeni bele "test %s" % name
<ascii> ferqi nedi? yeni menne niye warning verirki onu?
<ascii> prinsip eyni deil?
<ascii> arxada ishleme prinsipi maraglidi
<dumenci> format string prosesidir o
<dumenci> f string deyesen yenidir onun haqqinda cox genis melumatim yoxdur
<dumenci> indi baxdim amma
<dumenci> baxdigima gore
<dumenci> name="test" f"test{name}"
<dumenci> bele edende
<dumenci> eslinde bele islemelidir
<dumenci> f string bele basha dusdum ki butun local scope-a aid olur local scopedaki variablei goturur onun valuesi ile replace edir
<dumenci> >>> name = "test"
<dumenci> >>> f"hello {name}"
<dumenci> >>>
<dumenci> 'hello test'
<dumenci> sen "test %s" % name edende
<ascii> ishlemesin bilirem prostu niye loggere stringi ele oturende meslehet gorur ki fstring yox kohne variantda lazy loading olan variantnan yeni bele name="tural" "name -> %s" % name
<dumenci> aaa logger ucun sirf deirsen?
<ascii> heee
<ascii> imenni loggerde
<dumenci> yeginki parse ede bilmirde
<dumenci> sen erroru
<dumenci> at mene
<dumenci> konkret
<ascii> error deil warningdi, parse elir ishdir ele) gozde atiram
<dumenci> aha warningi at
<dumenci> logger neyi parse edir?
<dumenci> logger prosto argument kimi goturur
<dumenci> orda parse emeliyyatini cpython edir
<dumenci> sebebini tapdim
<ascii> kecen defe cixmiwdi qabgima indi vermir amma ba bele bir shey idi
<ascii> (format_string.format(format_args...))”. Such calls should use % formatting instead, but leave interpolation to the logging function by passing the parameters as arguments.
<dumenci> he gozle
<ascii> nedi sebebi?
<dumenci> bu loggerin optimizationidir
<dumenci> birdeq
<ascii> he nese optimizatsiya meselesidi, prosto ferqi nediki ikiside stringi formatdida
<ascii> bular yeni arxada eyni prinsipi gormuller?
<dumenci> yox mellim
<dumenci> sen f"{name}" yazanda
<dumenci> python onu interpolate etmir
<dumenci> cunki name variabledir
<dumenci> yuxarilarda hardadisa
<dumenci> onun valuesi teyin oldugdan sonra
<dumenci> deyise biler
<dumenci> python onu nevaxt interpolate edir bilirsen
<dumenci> f{name} setrine catanda
<dumenci> ancaq sen
<dumenci> bele yazsan
<dumenci> meselen
<dumenci> "%s" % name
<dumenci> python uje bunu birbasha evaluate edir
<dumenci> yeni bu f string-de
<dumenci> birbasha o stringin objectine muraciet edir
<dumenci> onu embedded etmir
<dumenci> bax
<dumenci> Formatting of message arguments is deferred until it cannot be avoided. However, computing the arguments passed to the logging method can also be expensive, and you may want to avoid doing it if the logger will just throw away your event. To decide what to do, you can call the isEnabledFor() method which takes a level argument and returns true if the event would be created by the Logger for that level of call. You can write code like this:
<dumenci> sen muraciet edende var % name sheklinde
<dumenci> bu lazy evaluate edir
<dumenci> sen muraciet edirsen
<dumenci> sonra evaluate edir
ascii has quit [Remote host closed the connection]
<dumenci> {name} de ele deyil sen objecte muraciet edirsen deye
<dumenci> o uje evaluate edilir mecburan
<dumenci> f-de
<dumenci> f string-de
<dumenci> yeni olur run time (kind of)
<dumenci> meselen
<dumenci> name = "emin" (evaluated)
<dumenci> name = "Tural"
<dumenci> (evaluated)
<dumenci> name = "test" (evaluated)
<dumenci> f"{name}" goturur name objectini
<dumenci> onu embedded edir
<dumenci> bele yazanda ise
<dumenci> name = "emin" (evaluated)
ascii has joined #lowempire
<dumenci> name = "Tural" (evaluated) *object
<dumenci> name ="Test Name" (evaluated) *object
<dumenci> "test name is %s" % name
<dumenci> sen bu name objectini istifade etmeyene kimi
<dumenci> o evaluate edilmir
<dumenci> string kimi
<dumenci> ne vaxtki logging onu istifade edecek onda da
<dumenci> evaluate edecek
<dumenci> yeni bu optimizasiyani logging ozu edir
<dumenci> lazy interpolation
<dumenci> It should be noted that an f-string is really an expression evaluated at run time, not a constant value
<ascii> aydindi mellim bildim he) prosto men ele bilirdim arxada eyni prinsipnen ishliyir ona gore catmirdiki niye meslehet gormur ele elemeyi)
<dumenci> eyni prinsiple islemir
<ascii> you are awesome ))))
<dumenci> biri lazim olanda evaluate edir biri ise ahead of time
<dumenci> thanksss)
<ascii> sensiz bir gunumuz olmasin )))
<ascii> bu mahnini sene hesr edirem )))
<dumenci> opurem bratt :-D
<dumenci> ahahahah
<dumenci> :-D :-D
<dumenci> babattt
<ascii> :DDD macello )))
<dumenci> leetcode edirsiz? :-D
<ascii> codility-de elirem heleki )
<dumenci> heee
<dumenci> mende CPU zad temalarini bitirim girisecem :-D
<dumenci> hansisa tasklari etmisiz?
<ascii> leetcode-da switch elirem arada,amma heleki easy levelde guleshirem))
<ascii> codilityde FrogRiverOne taskindayam
<ascii> leetcode-da Remove Duplicates from Sorted Array taskindayam
<dumenci> heee
<dumenci> etmisen bunu?
<dumenci> deyim bunun birdene hellini
<dumenci> ? :-D
<dumenci> demeli 1 1 2 2 2 3 3 3 3 birdene variable olur adida currelement birinci baslayanda bunun deyeri 0ci element olur
<dumenci> yeni 1
<dumenci> sonra novbeti elemente kecirsen
<dumenci> onu currelement ile yoxlayirsan
<dumenci> eynidirse silirsen novbetini
<dumenci> yox deyilse
<dumenci> currelement = 2
<dumenci> edirsen
<dumenci> sonra kecirsen novbetiye
<dumenci> yoxlayirsan currelement == array[currindex] then delete else currelement = array[currindex]
<dumenci> bele birsey :-D
<dumenci> yariyar bu yol? :-D
<ascii> xaxaxaxaxA))) niye dedin mellim ?)))))) qeshey variantdi ))))))
<ascii> xaxaxaxax))))
<dumenci> ahahahaha
<dumenci> :-D :-D
<dumenci> elememisdin?
<ascii> yox hele)))))
<ascii> :DDDD
<dumenci> heee
<dumenci> sorry :-D
<dumenci> basqalarinda nedese ilishsen
<dumenci> menede denen
<dumenci> maraglidir menede
<ascii> amma qeshey sobetdi,teklif elirem hansisa taski eliyende, yada ilishende burda bolushey gorey kim nece fikirleshir))
<dumenci> cox ejdaha
<dumenci> burdan muzakire eek
<dumenci> edek
<ascii> heee,fikirler ferqli ve gozeldi ))))
<dumenci> meselen hefte sonu
<dumenci> birgunumuzu ayiraq
<dumenci> birdene hard goturek
<dumenci> onun ustunde isleyek
<dumenci> lap
<ascii> obaaaa,bu voobshe babat sobet etaga)
<dumenci> sen bu temalari hell etsen vare
<dumenci> bilki xarici intervyulari 80% kececeksen
<dumenci> cunki orda texniki hecbir sual vermirler demek olar
<dumenci> ancaq bele alqoritm zad
<dumenci> technical sual cox az verirler
<dumenci> ona gore bunlara fokuslanmaq lazimdir
<ascii> he etaga) hell eliye bilsemde))) easylerde ilishib qalmishig))))
<dumenci> bilireme anormaldir :-D
<dumenci> prosto beledide
<dumenci> esh
<dumenci> yazdigca
<dumenci> oyreseceksen
<dumenci> kececeksen
<dumenci> basqa hansinda ilismisen
<ascii> he orasida duzdu ))
<dumenci> marlinede denen qosulsun
<dumenci> muzakire edeK
<ascii> yes qrupa yazacam
<dumenci> ejdahasiz)
<dumenci> men gedim adboyu sixim
<dumenci> gecen xeyre qalsin
<ascii> mellim bide heftede bir defe bize arxitekturadan task vere bilersen e) bilirsen nece?
<dumenci> aha
<ascii> ay blya) yaxshi saba deyerem yat)))
<dumenci> nece?
<dumenci> arxitektura dediyin nedir
<dumenci> yoo denen
<dumenci> low level?
<ascii> ele bilki problem deyesen,ya neyinse planin deyesen biz ona uygun struktur nece qurulmalidi teklif eliyey)
<dumenci> heee
<dumenci> ferqi yoxduda
<dumenci> hersey ola biler he?
<ascii> hee
<dumenci> okay olar
<dumenci> dusunum birdene complex
<dumenci> problem
<dumenci> deyerem
<dumenci> yada ozumun qarsilasdigim
<dumenci> birsey
<ascii> vse ela))) danisharig yene)) opurem,gecen xeyre)
<dumenci> opurem brat xeyre qarsi
dumenci has quit [Ping timeout: 260 seconds]
ascii has quit [Remote host closed the connection]