▽Gauche Devlog ●04/14 12:44 Exact and repeating decimals2025/04/13#permalinkExact and repeating decimalsNovice programmers are often perplexed by most programming languagesbeing not able to add 0.1 ten times ``correctly'':s = 0for i in range(10): s += 0.1print(s)# prints: 0.9999999999999999"Floating point numbers are inexact, that's why," tells a tutor."You should expect some errors."Gauche isn't an exception,
▽時の羅針盤 ●01/29 23:05 2025-01-27Memo: Socket selector on WindowsSagittarius has (net socket) library which defines socket selector. A socket selector takes arbitary number of sockets and waits until one or more of the given sockets are readable. The concept was there quit a long time, however it wasn't really working on Windows unfortunately. Now, I put some effort to make it work as I expected.The requirement of th