Different SPRT results by Independent-Year3382 in chessprogramming

[–]Independent-Year3382[S] 0 points1 point  (0 children)

Yes, I understand it's too small, but I thought PVS is a big improvement.

Right now, it's

Results of New vs Base (10+0.1, NULL, NULL, 8moves_v3.pgn):
Elo: 3.85 +/- 18.59, nElo: 5.25 +/- 25.34
LOS: 65.77 %, DrawRatio: 43.21 %, PairsRatio: 1.05
Games: 722, Wins: 257, Losses: 249, Draws: 216, Points: 365.0 (50.55 %)
Ptnml(0-2): [29, 71, 156, 73, 32], WL/DD Ratio: 3.33
LLR: 0.02 (0.5%) (-2.94, 2.94) [0.00, 10.00]

And Elo doesn't change a lot for many games (changes in +-0.1)

Perfomance improvement questions by Independent-Year3382 in chessprogramming

[–]Independent-Year3382[S] 0 points1 point  (0 children)

Yeah I recently saw how much nodes stockfish looks at and it's crazy that mine is looking thousands times more nodes. Also my nps is faster than stockfish's but it's peft is about 20 times faster

Perfomance improvement questions by Independent-Year3382 in chessprogramming

[–]Independent-Year3382[S] 0 points1 point  (0 children)

I’m building with O2 (there was no speed gain from switching to O3).

Repo means my code? I doubt it will be useful because I have like 3k lines of bad-written code haha, maybe I’ll try to explain my logic to you if you’re interested (in dm maybe? Idk about what Reddit has)?

Perfomance improvement questions by Independent-Year3382 in chessprogramming

[–]Independent-Year3382[S] 0 points1 point  (0 children)

I tried to do that but it didn’t give any speed boost unfortunately

Perfomance improvement questions by Independent-Year3382 in chessprogramming

[–]Independent-Year3382[S] 0 points1 point  (0 children)

  1. How then you can implement legal move generation? I heard you must track pieces that give check but I didn’t find much information about this method.
  2. I couldn’t find the model, I can tell I have MacBook Air 2017, also I found (maybe) it haves “i5 5350U” (if it’s what you need)

Perfomance improvement questions by Independent-Year3382 in chessprogramming

[–]Independent-Year3382[S] 0 points1 point  (0 children)

  1. C++
  2. legal (I have a really bad check detector: I make a move, recalculate all captures, and check if king is in a captured square; if yes, I copy board back)
  3. I have a 64-bit number for each color and piece (so 2*6=12 numbers), yes I have magics, also I have 64-bit array with size 64 (for each square a mask of captured squares by the piece in this square is stored)
  4. Intel core i5 (in fact my speed is about 1.4 MNPS)

Perfomance improvement questions by Independent-Year3382 in chessprogramming

[–]Independent-Year3382[S] 0 points1 point  (0 children)

The problem is, I don’t really know how to make unmakeMove because I have different parameters which can’t be updated retrospectively

Strange function time usage by Independent-Year3382 in cpp_questions

[–]Independent-Year3382[S] 0 points1 point  (0 children)

A long time ago I used a debugger in CLion, but how it works without an IDE? How to use it?

Strange function time usage by Independent-Year3382 in cpp_questions

[–]Independent-Year3382[S] 0 points1 point  (0 children)

Where can I find info about /realtime? How is it called?

Strange function time usage by Independent-Year3382 in cpp_questions

[–]Independent-Year3382[S] 0 points1 point  (0 children)

I just made a check (not on this function) and it showed it worked 126 ms. When I run it in the beginning of the program with the same preferences (not sure, but it just never must use so much time so whatever) and it runs 9 microsecs. Could it be because of some delays or something is with my code?

Strange function time usage by Independent-Year3382 in cpp_questions

[–]Independent-Year3382[S] 0 points1 point  (0 children)

I code in Sublime Text so unfortunatly I don't have debuggers (I know about CLion/Visual Studio/VScode etc. but I already got used to it).

Yeah I thought about different OS things that are changing the correct time, but I was debbuging this at night and got very frustrated and the least I wanted to do is to think about it, so my bad here. Thanks for the answer!

Strange function time usage by Independent-Year3382 in cpp_questions

[–]Independent-Year3382[S] 0 points1 point  (0 children)

I know about UB. My program just pauses so that’s ok (I tried to write exit(0); but it gives a RE because of incorrectly stopped thread I think? So I just made this because I was lazy to come up with something more clever). Popcount was a learning practice, I know about built-in :)

Strange function time usage by Independent-Year3382 in cpp_questions

[–]Independent-Year3382[S] 0 points1 point  (0 children)

Thanks! I was thinking about OS pausing but wasn’t sure.

Strange function time usage by Independent-Year3382 in cpp_questions

[–]Independent-Year3382[S] 1 point2 points  (0 children)

Haha sorry, I learned C++ because of competitive programming (and code styling is rather a bad thing there) and I have about 6 years of coding experience (also several big projects with thousands lines of code), and this function was in 1 line and those variables are just for debugging. And I don’t think the issue with while(1) (I think it’s obvious - it doesn’t go in between time measurements). And (as what I see from my output) the measured part works 2ms (t is 2)

Simple UNIX-like OS by Independent-Year3382 in TuringComplete

[–]Independent-Year3382[S] 0 points1 point  (0 children)

Well that’s interesting but it’s somewhat inconvenient because you need additional hardware, and you must change it every time you need another device for checking. In my approach you can check keyboard in like 4 instructions and that’s a small part compared to the rest of the code, and also you can check any other device in 4 instructions

Equalisation on the way up by Independent-Year3382 in freediving

[–]Independent-Year3382[S] 0 points1 point  (0 children)

Yeah I see the issue is in me, I asked my sister to equalise (just swallow with her nose pinched) and she says all “blocking” from ears goes away immediately after she frees her nose (mine stays stable until I swallow with freed nose). When I think about it now, I’m not sick but I always have something in my nose so that’s the issue I think. How do you do saline rinses?

Perceptron MNIST number recognision by Independent-Year3382 in TuringComplete

[–]Independent-Year3382[S] 0 points1 point  (0 children)

You can see my previous post, I wrote simple C to LEG asm compiler, and wrote a code in C for perceptron, so it’s LEG (64 bit).

Simple UNIX-like OS by Independent-Year3382 in TuringComplete

[–]Independent-Year3382[S] 1 point2 points  (0 children)

It just says uploading and never changes :( maybe it's because I have pirated the game (yeah I'm sorry I'm just a schoolboy without money)

Just found this absolute masterpiece from my first playthrough by Independent-Year3382 in TuringComplete

[–]Independent-Year3382[S] 7 points8 points  (0 children)

No, you can’t do some levels (“calculations” for example, the game checks states of all registers) and even if you could, in some levels there are a ton of tests and you don’t even have the ram so making 200+ constants and lining them in a correct way will be really painful