Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2020-12-16 00:00:00Z and 2020-12-17 00:00:00Z
Avatar
Avatar
Learath2
The recent ios14 tracking prevention features are my favourite, every app needs to ask you before tracking
My samsung does this by default or just change the permissions settings manually for each app. Things like instagram, etc I dont even allow background usage. Idk, all this data talk is interesting and these companies are definitely trying to comply with local laws. However, if you look at tax avoidance and anti trust, just as bad there lol. Imagine having annual income in billions and being fined a few million, as if being fined even matters lol. The US hearing they had with Facebook, Apple, Amazon and Google was quite funny as well. (edited)
Avatar
Дядя Женя 2020-12-16 04:17:02Z
@deen we are faced with visual illusions now
04:17
04:21
fixed by adding some padding from the sun on some backgrounds
Avatar
@Learath2 apple denied that anything was wrong to essentially* send each app open over the network via HTTP
04:59
essentially, because it only happens every 5min, and because it's only the developer certificate that gets sent, but that is almost unique for every application. how much applications do the tor developers sign, mozilla, zoom, …
Avatar
83f5a35 M Aurora, M entanglement - ddnet-maps
Avatar
Horizontal sliders stays the same THESE FIXES ARE TEMPORARY PR contains some shitty hotfixes which I'm planning to rework later. The reason of them being shitty is that the source code for it was shitty already, simple as it is. The whole list idea should be reworked in order to make the code more clearer and nicer. Will do later. Basically, I'm reworking all the UI tabs one by one. Now I am making the new "Tee" tab, which will combine "Player" and "Tee" setting tabs in one. As we...
Avatar
Avatar
SPYRES
My samsung does this by default or just change the permissions settings manually for each app. Things like instagram, etc I dont even allow background usage. Idk, all this data talk is interesting and these companies are definitely trying to comply with local laws. However, if you look at tax avoidance and anti trust, just as bad there lol. Imagine having annual income in billions and being fined a few million, as if being fined even matters lol. The US hearing they had with Facebook, Apple, Amazon and Google was quite funny as well. (edited)
Permission by app thing is nice and all but what apple did takes it even further. Advertisers use a unique string to identify you across apps that depends on the device. Apple no longer allows them to create or get such a string without permission
Avatar
Avatar
heinrich5991
@Learath2 apple denied that anything was wrong to essentially* send each app open over the network via HTTP
Huh, didn't know about this. That's so uncharacteristic of them in this context
07:43
Big tech really needs a leash, they are like one of the biggest existensial threats to humanity. Can easily get us into a cyberpunk dystopia the amount of power they wield
Avatar
Дядя Женя 2020-12-16 09:42:28Z
Zwelf:
Avatar
[freenode] Zwelf BOT 2020-12-16 10:15:31Z
Дядя Женя: yes?
Avatar
Дядя Женя 2020-12-16 10:22:14Z
Zwelf: I'm trying to use your https://gitlab.com/zwelf/teehistorian in C++ console project. Does it work for C++ or only C?
Teehistorian parser with c api
10:22
And I'm still having problems with .so file
10:23
it says that it's corrupted
Avatar
a .so file is a linux library btw
Avatar
Avatar
Дядя Женя
Zwelf: I'm trying to use your https://gitlab.com/zwelf/teehistorian in C++ console project. Does it work for C++ or only C?
^
10:35
if you are on windows it will never work
Avatar
Дядя Женя 2020-12-16 10:35:25Z
Is It?
Avatar
yeah, tho u can build the rust project urself
10:35
and probably get a .lib file
10:36
which is what u use on windows
Avatar
Дядя Женя 2020-12-16 10:36:29Z
I got a .lib file
10:36
even .dll file, but I still have troubles connecting it
Avatar
then u have to link against that
Avatar
Дядя Женя 2020-12-16 10:37:18Z
yeah, I mean I don't know how to link it
Avatar
u are using visual studio right? well i havent used that in years i cant help much
10:37
Allergro is an open souce C++ addon library for graphics manipulation. How do I add this library to my compiler? The instructions don't work for me as I have Windows 7. I don't know if the OS matt...
Avatar
Дядя Женя 2020-12-16 10:41:23Z
that's much harder then I did before
Avatar
Дядя Женя 2020-12-16 10:50:48Z
no, it does not work
Avatar
[freenode] Zwelf BOT 2020-12-16 11:07:21Z
You managed to build the project for windows and have a teehistorian.dll or teehistorian.lib?
Avatar
Дядя Женя 2020-12-16 11:07:46Z
I asked a friend to build it, he managed to get the .lib, .h and .dll
11:08
[img] v : but it still does not work
11:10
I tried to link it 3 different ways. nothing works
Avatar
[freenode] Zwelf BOT 2020-12-16 11:11:23Z
I'm not experienced with building on windows. But I guess you have to tell the linker where to find the .dll file (via an environment variable) or place it in a directory where the linker is already searching.
11:12
This is my code in Visual Studio C++ #include "stdafx.h" #include<opencv\cv.h> #include<opencv\highgui.h> using namespace cv; int main(int argc, char* argv[]) { IplImage img =
Avatar
Дядя Женя 2020-12-16 11:13:07Z
I've already added every single folder to a lot of properties
11:13
as Stack Overflow said or Microsoft docs
Avatar
Дядя Женя 2020-12-16 11:32:23Z
Zwelf: Could you build windows library for me?
11:32
maybe I should use C instead of C++?
Avatar
[freenode] Zwelf BOT 2020-12-16 11:33:00Z
Yeah, I'll try to cross compile.
Avatar
Дядя Женя 2020-12-16 11:33:15Z
does it work for c++?
Avatar
[freenode] Zwelf BOT 2020-12-16 11:33:26Z
C++ should work just as good (I tried to compile the example with g++)
Avatar
I don't know if Rusts auto deref is a blessing or a curse. I can write whole blocks of code without knowing if I'm dealing with a direct value, a reference or even a double reference. But probably still the right choice, constantly writing (*var).function would be really ugly
11:57
Same goes for deref coercion. I didn't write explicit type annotations and never knew if I was dealing with a vector of &String or a vector of &str
Avatar
@Дядя Женя are the th_close etc. functions in a extern "C" block?
Avatar
Дядя Женя 2020-12-16 12:00:51Z
I dont knoooooow
12:01
just nothing works...
Avatar
you include some header file, right?
Avatar
Дядя Женя 2020-12-16 12:01:05Z
yes
12:01
as well as .lib file I guess
Avatar
cna you check whether in that header file, the functions are in an extern "C" block?
Avatar
You know who solved the ugly (*x).y yeeears ago? C \o/
Avatar
Дядя Женя 2020-12-16 12:01:37Z
which is in the folder of Additional Include Dependencies folder
12:02
it is
12:02
Avatar
Deref coercion also means simply removing a type annotation can give strange type errors. You'd think removing a type annotation would mean either the compiler can't infer the type or it can infer the type, not that the compiler could infer a different type
12:02
@Learath2 Who did? :D
Avatar
Дядя Женя 2020-12-16 12:02:50Z
maybe I should define _cplusplus
Avatar
I already said C. -> is such a natural sugar for any language with pointers
Avatar
And I thought this was a weird emoticon haha
Avatar
@Дядя Женя it's already defined if you compile C++
Avatar
Дядя Женя 2020-12-16 12:04:08Z
bad
Avatar
Yeah why didn't rust use ->
Avatar
\o/ was me celebrating how natural this is in C.
Avatar
Avatar
timakro
Yeah why didn't rust use ->
Probably too convenient to use unsafe things that way
Avatar
hm. I wonder if extra steps are necessary like __declspec(dllimport) or so
12:05
@timakro I'd guess because only one of -> and . is ever possible, so the compiler might as well infer what it is
12:05
and they do similar enough things that it's not confusing
Avatar
The designers of rust spend time on 2 things, first is adding more annoying safety features to the compiler and the second is making being unsafe annoying
Avatar
I doubt more safety features have been added since 1.0
Avatar
Avatar
heinrich5991
hm. I wonder if extra steps are necessary like __declspec(dllimport) or so
I think this is it, there is no implicit exporting for dlls under msvc
Avatar
(I'd guess at most rules were relaxed)
Avatar
Дядя Женя 2020-12-16 12:06:49Z
12:07
it says that there is no definition for function
12:07
I don't know if it's a mistake or not
Avatar
Definition not being found is normal. It’s not part of your project
Avatar
the function is probably in the library
12:07
but for some reason your compiler can't find it
Avatar
Дядя Женя 2020-12-16 12:07:42Z
it must be in the library
Avatar
Hm, msvc does export by default
12:08
You sure your friend compiled it correctly?
Avatar
can you open the dll in a text editor and check if you can find th_open?
12:09
alternatively, try putting __declspec(dllimport) in front of each function in the header file
Avatar
@heinrich5991 seems that’s only an optimization but sure he can try
Avatar
hm TIL
12:10
so only dllexport is mandatory?
Avatar
Дядя Женя 2020-12-16 12:11:15Z
does not help
Avatar
It has been a while since I used garbage studio but, iirc you just need the lib and the dll next to your executable
Avatar
can you open the dll in a text editor and check if you can find th_open?
Avatar
Дядя Женя 2020-12-16 12:11:55Z
there is no th_open
Avatar
also, can you make sure you're really linking to the .lib
Avatar
What does, does not help mean? What is going on? Does it not link?
Avatar
Avatar
heinrich5991
also, can you make sure you're really linking to the .lib
Дядя Женя 2020-12-16 12:12:06Z
how
Avatar
@Learath2 are function names in plain text in the dll?
Avatar
Avatar
Learath2
What does, does not help mean? What is going on? Does it not link?
Дядя Женя 2020-12-16 12:12:20Z
I don't know
Avatar
do you know that?
Avatar
Дядя Женя 2020-12-16 12:12:26Z
seems like it does not link
Avatar
Avatar
heinrich5991
@Learath2 are function names in plain text in the dll?
Дядя Женя 2020-12-16 12:12:38Z
50/50
Avatar
Avatar
heinrich5991
@Learath2 are function names in plain text in the dll?
I don’t remember the dll format. But you can use dependency walker to check what symbols a dll has
Avatar
I don't know the dependency walker, need to check that out some time
12:13
afk-ish
Avatar
I think the only thing dllexport does is keeping the abi consistent so you don’t have to recompile too much
Avatar
Дядя Женя 2020-12-16 12:15:02Z
seems like I'd better go write my own library instead of using this
Avatar
Not the libraries fault that you can’t link to it lol
Avatar
Дядя Женя 2020-12-16 12:15:40Z
idk my libraries always work
Avatar
I won’t go on speculating randomly. What is the error?
Avatar
If that’s it you are not linking the lib correctly
Avatar
Дядя Женя 2020-12-16 12:16:36Z
without all that "open configuration properties, go to X then Y then Z then add folder path, reopen, blah-blah-blah, now it is still not linked"
Avatar
that doesn't sound like the fault of the lib
12:17
more like the fault of the tooling
Avatar
Avatar
Learath2
If that’s it you are not linking the lib correctly
Дядя Женя 2020-12-16 12:17:27Z
seems like it, but how could I possibly go wrong when I've already tried like 4 different methods one of which is from official Microsoft documentation for VS
Avatar
If you added it to additional libraries that’s all you need
12:18
Next thing to check is that the lib actually exports the functions you are trying to call
Avatar
Avatar
heinrich5991
that doesn't sound like the fault of the lib
Дядя Женя 2020-12-16 12:18:09Z
that doesn't, but writing my own lib will solve the problem for sure, no matter what caused it
12:18
it just seems easier then link this
Avatar
Seems msvc has a tool for this. dumpbin /exports whatever.lib
Avatar
where did you get your library btw? I can't find a .lib in the what seems to be the official release page: https://gitlab.com/zwelf/teehistorian/-/releases
Teehistorian parser with c api
Avatar
He said his friend built it for him
Avatar
I guess you should make sure that it really exports these symbols ^^
Avatar
Дядя Женя 2020-12-16 12:20:51Z
Avatar
I hope there is more to it than the summary 😛
Avatar
Дядя Женя 2020-12-16 12:21:27Z
I hope not
12:21
Because if so then it just don't work without any reason
Avatar
Well is it or is it not exporting any symbols?
Avatar
Дядя Женя 2020-12-16 12:22:21Z
Zwelf:
12:22
build .lib pls
Avatar
Fine, I’m out of time to waste. I’ll get back to studying
Avatar
61ef17d Update ddnet.appdata.xml - def-
12:25
61ef17d Update ddnet.appdata.xml - def-
12:28
da6930f Version 15.2.4 - def- b05674c Update ddnet.appdata.xml - def-
Avatar
Дядя Женя 2020-12-16 12:34:46Z
how do I build .lib in Rust? @heinrich5991 ?
Avatar
cargo cbuild, but you have to have cargo cbuild installed for that
12:52
(according to the CI)
Avatar
Дядя Женя 2020-12-16 12:53:29Z
there is no cbuild in the docs
12:53
ok, useless lib, just wasting time
Avatar
@Дядя Женя please stop calling other people's work useless
14:19
that is not welcome here. you can say that it doesn't work for you. it's probably not useless in anyway, but calling it that is just hurtful
Avatar
Дядя Женя 2020-12-16 14:24:11Z
its useful since I'm using it to write my own)
Avatar
[freenode] Zwelf BOT 2020-12-16 14:51:45Z
I haven't tested it, so it might not work, but I added cross compiling to the CI and built the .lib files: https://gitlab.com/zwelf/teehistorian/-/jobs/915964786/artifacts/download
Avatar
Besides as I said before, your inability to link or build it doesn't reflect on the usefulness of the library much if at all
Avatar
Дядя Женя 2020-12-16 16:15:39Z
Neither me or my friend could link it. Wasted whole day on that. Just pointing it out, not discussing (edited)
Avatar
bitcoin reached 20k$ today
Avatar
Wtf dang
Avatar
all time high
17:02
idk if true but they expect it to reach 25k
17:02
i wonder if this inflation is good
17:03
does the value of bitcoin raising increase its use and spread? xd
Avatar
On another note, Tesla stock is up above $600 per share (even after the 4-way stock split...) Some crazy stuff going on in the markets right now. Tesla has gone up 1300% in 5 years... ridiculous
17:09
Bitcoin in particular seems like a shit value though. The (energy) cost of transactions alone is way too high.
Avatar
Avatar
YupHio
On another note, Tesla stock is up above $600 per share (even after the 4-way stock split...) Some crazy stuff going on in the markets right now. Tesla has gone up 1300% in 5 years... ridiculous
i see spacex launching rockets everyday
17:10
idk
17:10
xd
Avatar
I never really used bitcoin as an investment tool so don’t really follow it’s value. Since it has no intrinsic value and is not backed by anything of value it sounds like a great way to earn and lose money. A purely speculative market
Avatar
I wonder if there are any half duplex ethernet networks still lying around
Avatar
Now that I think about it, one could value the network and the computations made and thus argue that bitcoins have intrinsic value. Which would make it not a bubble
Avatar
update ur drivers restart windows with a clean restart thats the classic fixes xd cl_refresh_rate 0 gfx_refresh_rate 0 gfx_opengl_major 4 RIGHT click windows symbol bottom left -> do a restart instead of shutdown
Avatar
restart windows with a clean restart?
? 😄
Avatar
Today's AoC was more fun, finally got a good candidate for Z3: https://github.com/def-/adventofcode-2020/blob/master/day16.js
19:06
Basically in Javascript I just encode the conditions for part 2 and let Z3 do its SMT solving magic
Avatar
z3 is so cool
Avatar
Agreed, I wrote a paper using it once, proving equivalence of programs
Avatar
@murpi RIGHT click windows symbol bottom left -> do a restart instead of shutdown
20:12
looks pretty bad
20:13
I tried the commands but nothing yet, maybe if i can't find the solution for it i'll go for the older versions like you suggested, thank you for the answer! Just to clarify in case it looks like, this is not a problem related to my monitor since i've checked other games and i don't have this issue
Exported 174 message(s)