« first day (1794 days earlier)      last day (1435 days later) » 

4:23 AM
Happy Shavuot! @AndrasDeak ;)
 
 
4 hours later…
8:03 AM
@Dev-iL thanks, you too! :)
 
 
2 hours later…
10:26 AM
@AndrasDeak I asked a question on SO regarding the python debugger breakpoint() - do you have any experience with using the debugger in a terminal?
 
10:45 AM
@flawr a bit
I wouldn't assume that calling breakpoint() will actually set a breakpoint, I could accept it either way
 
11:14 AM
stackoverflow.com/q/62084276/5211833 can we dupe this as floating point error?
 
>>> format(1.005, '.20f')
'1.00499999999999989342'
yes
 
Cool. Hulk, SMASH!
Oh, wait, that's another avenger
 
@AndrasDeak I start to believe that too, but it seems so very misleading
 
it's probably mostly a short-hand for import pdb; pdb.set_trace() which doesn't have this connotation
I always only thought of it as "drop me into the debugger here", which it does. I rarely need actual breakpoints, and when I do I run my code in a proper debugger.
 
11:31 AM
Well I'm using it to investigate something curious that just happens very infrquently, like once every few days of running the code
@AndrasDeak what is this "proper debugger" you use?
 
Personally I use pudb. Pdb is a proper debugger too, so I mostly meant running python -m pdb your.py from outside.
if you use an IDE it probably has a decent debugger
just don't use spyder
 
ah pudb looks nice, thanks for recommending!
 
for c/fortran I prefer gdb --tui, so that's what I was looking for in python :)
 
Yes but this is code I run remotely, and my IDE crashes even more than this code:)
 
oof
 
11:35 AM
(using pycharm)
I think this is a sign that I should completely switch to haskell.
 
that would solve your python problems
 
there is just no usefull IDE for haskell
or maybe I should switch to more theoretical stuff where you don't actually have to run code
 
...there's haskell where you actually run code?
 
Compiling usually suffices
 
 
2 hours later…
2:04 PM
@AndrasDeak have you ever used haskell?:)
 
 
3 hours later…
5:06 PM
@flawr nah, I have real programming problems
 
 
5 hours later…
10:21 PM
LOLz. I'm reviewing a paper that claims their method is the fastest of them all, by a significant margin. Turns out they wrote their code partially in MATLAB, and to compare timings to code written in C++ they decided to divide their time by 50!!! Yeah, no wonder it's so fast. Wow.
4
 
10:37 PM
wow, that's terrible
like, reject on sight terrible
 
@CrisLuengo I need to remember that trick when I want to make my code run faster :D
 
the wishful-thinking and make-believe programming paradigms
 
11:05 PM
@CrisLuengo I'm curious: they provide any justification for this factor?
Did they maybe compare a for loop in each of the languages?:)
 

« first day (1794 days earlier)      last day (1435 days later) »