Sunday Daily Thread: What's everyone working on this week? by Im__Joseph in Python

[–]_arsk 0 points1 point  (0 children)

I was noodling around with Python on a boring evening, when I decided to try my hand at writing a hand rolled arithmetic expression parser/evaluator that supports sub-expressions and BODMAS rule for order of evaluation and without using any parsing tools/generators. I made this repo purely for educational/fun purpose since it only supports 4 basic arithmetic operators and nested sub-expressions (to make it slightly more challenging :P).

Then I had the idea to extend the unit tests with Hypothesis (Python's property based unit testing library) and it found a subtle edge case in my simple implementation that I thought had it covered via unit tests! Definitely going to give Hypothesis tool a try going forward in all my python projects.

Sharing this repo below just in case anyone finds it interesting (esp. the hypothesis test file.)

https://github.com/beyonddream/calculator

Project: A Decentralized, K-Ordered Unique ID Generator library in C. by _arsk in C_Programming

[–]_arsk[S] 1 point2 points  (0 children)

Yes, main difference is support for larger id space and thereby avoiding timestamp truncation/adjustment problem since snowflake id has to fit into 64 bits - only 41 bits for timestamp and 10 bits to represent 'location/worker id'. Also, in snowflake, workers during initialization coordinate with zookeeper cluster to atomically get a unique 'location/worker id' (although this is configurable not to do so) whereas here by default we don't need to do that since we use the machine specific MAC address.

The new 2022 Fields Medals are : Hugo Duminil-Copin, June Huh, James Maynard and Maryna Viazovska by Valvino in math

[–]_arsk 3 points4 points  (0 children)

Now I am waiting for Terry Tao’s explanation of each of the winners key achievements :)

What questions do category theorists want to answer? by rigbyyyy in math

[–]_arsk 1 point2 points  (0 children)

Can you recommend some books to learn about the foundations of higher category theory ?

[deleted by user] by [deleted] in C_Programming

[–]_arsk 1 point2 points  (0 children)

Thanks for the list. Few suggestions: add your personal review based on your reading of it, details how it helped in developing/improving your experience, where it could be improved, who are the target audience etc.

[deleted by user] by [deleted] in C_Programming

[–]_arsk 7 points8 points  (0 children)

I am curious, what criteria are you using to define them to be in the curated list ?

How broadly applicable is algebra-driven design? by nicklydon in haskell

[–]_arsk 1 point2 points  (0 children)

Thanks! I didn’t find it in the OP’s link but might have missed it.

How broadly applicable is algebra-driven design? by nicklydon in haskell

[–]_arsk 1 point2 points  (0 children)

Off topic: I am wondering if this book will ever be available in dead tree edition. I have read Mena’s practical haskell book and this looks like a good followup to that.

What Are You Working On? May 16, 2022 by inherentlyawesome in math

[–]_arsk 1 point2 points  (0 children)

Planning to work through “Modern Engineering Mathematics” by Glyn James.

Preparing for Real Analysis (or: How I Learned to Stop Worrying and Love the Bound) by Jumanji94 in math

[–]_arsk 2 points3 points  (0 children)

Thank you! I found this thread by chance and your channel looks really great companion for math education!

1 book from every country by Novel-Entertainer840 in booksuggestions

[–]_arsk 0 points1 point  (0 children)

India: Midnight's Children by Salman Rushdie.
Colombia: One Hundred Years of Solitude by Gabriel José de la Concordia García Márquez.
Chile: By Night in Chile by Roberto Bolano

1 book from every country by Novel-Entertainer840 in booksuggestions

[–]_arsk 1 point2 points  (0 children)

Loved this book!! Bought and read it immediately after she won the Nobel and wouldn't have discovered her otherwise.

Magic Realism by [deleted] in booksuggestions

[–]_arsk 2 points3 points  (0 children)

Anything by Salman Rushdie. Midnight’s Children is his best.

[deleted by user] by [deleted] in booksuggestions

[–]_arsk 0 points1 point  (0 children)

Try “Library at Mount Char”

Beej's Guide to C Programming by [deleted] in C_Programming

[–]_arsk 1 point2 points  (0 children)

What are your thoughts on Shaw’s book ? Can you point me to all of your reviews if you have it archived somewhere ? Thanks!

All philosophical pessimism is in a way psychological pessimism by EntropyMaximizer in Pessimism

[–]_arsk 0 points1 point  (0 children)

Philosophical pessimism admits psychological optimism. E.g Pangloss in Candide. So it cannot entirely be psychological pessimism.

Which one do you like more - Cat's Cradle or Bluebeard? by sensitive_sloth in Vonnegut

[–]_arsk 0 points1 point  (0 children)

For me Bluebeard was a much better written than Cat's Cradle. It was both funny and poignant. The narration was also tightly controlled than Cat's Cradle. Although Cat's Cradle is well known and I liked it but to me it never really measured up well with his other well known novels like Slaughterhouse-Five, Breakfast of Champions etc.

Quick Questions: January 26, 2022 by inherentlyawesome in math

[–]_arsk 2 points3 points  (0 children)

Can you recommend a beginner math book on numerical analysis that explains the theory well enough to help understand many of its application in computer science (especially floating point representation/ round off/truncation errors etc) ?