HackerTrans
TopNewTrendsCommentsPastAskShowJobs

harerazer

no profile record

Submissions

Advent of Chess

adventofchess.com
1 points·by harerazer·قبل 3 سنوات·0 comments

Perfetto – Performance profile viewer (formerly about:tracing on Chrome)

ui.perfetto.dev
1 points·by harerazer·قبل 3 سنوات·0 comments

comments

harerazer
·قبل 3 سنوات·discuss
Then don't do that. Of all the footguns in POSIX/C programming, having to remember to free this is really not as bad as you seem to imply.
harerazer
·قبل 3 سنوات·discuss
> How much will it cost, what will the free version lose, what data of mine will be sold, etc?

It is open source, so you can run it yourself.
harerazer
·قبل 3 سنوات·discuss
To be fair, I don’t think its so much about white collar jobs being under threat as it is about creative jobs being under threat. Many creative pursuits are viewed as an outlet of human expression in a way that other jobs never were, and I think this is what is driving the new wave of the Resistance^TM
harerazer
·قبل 3 سنوات·discuss
This isn’t really correct. Typically exchanges have safety parameters which market makers can set according to how they wish to trade, and if you exceed those your orders will no longer be accepted and existing orders may also be pulled.

Obviously there are false positives occasionally and there is typically communication between the exchange and the market maker to ensure those don’t reoccur.
harerazer
·قبل 3 سنوات·discuss
Indeed, many linear algebra textbooks define a tuple of real numbers as a function f: {1,...,n} -> R.
harerazer
·قبل 3 سنوات·discuss
Recently, mold 2.0 was posted, which is also C++.
harerazer
·قبل 3 سنوات·discuss
I've learned a lot from Matt Godbolt's blog https://xania.org/ . He's the author of Compiler Explorer, also works at https://aquatic.com/.
harerazer
·قبل 3 سنوات·discuss
I mean, it’s no secret that zig is pre 1.0. I’m not sure this is on them, although it does seem like a drastic proposal.
harerazer
·قبل 3 سنوات·discuss
This makes a lot of sense and gives context to the assumption that we only need to handle the case where an opponent's piece is in the way. Would be great if the author took the 2 sentences to explain this near the beginning of the article.
harerazer
·قبل 3 سنوات·discuss
I'm clearly misunderstanding something here. Assuming the rest of the board is empty, if e1 is occupied, the rook can't move to e1, whereas if it isn't occupied, the rook can move to e1, so there is at least one position in which we must check e1. What am I misunderstanding here?
harerazer
·قبل 3 سنوات·discuss
I was also confused by this. I was wondering if he was going to use #embed or something of the like.
harerazer
·قبل 3 سنوات·discuss
While this post has a good amount of substance, I found it rather hard to understand due to small mistakes (or hidden assumptions, or something else?). All of which seem easily fixed/clarified, but these sorts of things are unnecessary friction for readers.

Edit: Thanks to Jasper for stating the big hidden assumption made by the author - that he is only considering the case of being blocked by enemy pieces, not one's own pieces. This is motivated by the fact that one can use the same side occupancy board to trivially remove all moves that are illegal due to self-blocking. This resolves many of the technical issues, although again, it should be be made explicit. The typos/silly errors and pedagogical mistakes remain.

Some examples:

- According to the first bitboard (and the convention stated in the OP), A2 has index 8, not 1.

- In the second bitboard, the rook on e4 should be able to move to e1,a4,e8,h4.

- max of 9 relevant occupancy bits for a bishop - how? A bishop on e4 for example would have to check b1,c2,d3,f5,g6,h7 and a8,b7,c6,d5,f3,g2,h1 for a total of 13 bits. Similar mistake for a the rook.

- The so called "original" masked occupancy bitboard was not mentioned previously

- That same bitboard has variables b1,b2,b3,b4,b5 on it, a notational collision with the squares b1-b5. - The variables b1-b5 are in the wrong place (presumably they were meant to be on c3,d4,e5,f6,g7 since the bishop is on b2, and again there is the question of why not h8 and the other missing squares).

- Magic number comes out of nowhere. What is it doing? Presumably the purpose is to extract the relevant positional bits to be the most significant ones while keeping the order, done through the multiplication + bitmasking, but this should be explicitly stated. We also have no idea how it is derived.

- What are the "collisions" actually collisions of? It would be nice to see an example of this.
harerazer
·قبل 3 سنوات·discuss
This is essentially calculating the Kolmogorov complexity of whatever the final state of memory wrt to the constrained assembly (and giving the associated program). Since the any program in the constrained assembly always halts, this is possible a la brute force.

It also doesn't seem particularly interesting because it doesn't allow the programs to get input. Obviously that makes things much more difficult wrt to proving program equivalence.
harerazer
·قبل 4 سنوات·discuss
I regularly fill out pdf forms using firefox on Linux Mint.
harerazer
·قبل 4 سنوات·discuss
Another vote for Mint here. Had some minor mouse sensitivity problems starting out but other than that I’ve been using it as my daily driver for 2 years now without any problems.
harerazer
·قبل 4 سنوات·discuss
As someone who does most reading on an IPad, and was already somewhat reluctant to update: I'm never updating to iOS 16. This along with some other changes have convinced me totally (see, for example, some of the changes listed by dmitriid)
harerazer
·قبل 4 سنوات·discuss
y - x overflows on y = INT_MAX and x = -1.
harerazer
·قبل 4 سنوات·discuss
I’m just going to point out that growing 10% per year is actually exponential growth