« first day (2175 days earlier)      last day (2777 days later) » 

10:07 PM
I'm having a "doesn't work how?" day.
It's hard to Be Nice
I agree that there's no point in bombarding anyone with unnecessary amount of code. Hence "Please reduce your problem to a Minimal, Complete, and Verifiable example". — Andras Deak 42 secs ago
 
Is there alternative languages to python but more oriented to enterprise development?
But with similar syntax quality and design philosophy.
 
@AndrasDeak looks like you need some help being polite. How can I help?
:D
 
Thanks, Canny:D
 
@davidism they do, but:
import ast
assert ast.parse('''"""
Multiline

line 4"""''').body[0].lineno == 4
#fun
 
'''"""\o/"""'''
 
10:14 PM
tokenizer detects those correctly, but the code would get veeery messy
 
@AndrasDeak Seems like enough has been said and it is on hold. If OP comes back, I'll sprinkle some please and thank you in there
 
Please don't:P
 
@DSM Its less about branch of service and more about "did you see ground combat or not" so Army and Marines have the highest percent of members that see ground combat, then Navy, and last Airforce - but there are some units (like Security Forces) that still see plenty
and anger levels (or at least the perception of these levels) tend to follow
 
@TomasZubiri Yes. It's called Python. Unless Google and Netflix aren't enterprise-y enough for you.
 
10:30 PM
that was a weird ping to get in the middle of the day - also cbg
 
@Wayne well not REALLY
 
^^ huh?
please do explain
 
What's unsuitable about Python for enterprise environments?
 
Use Python but call it "Agile Python" or "Extreme Python"?
 
agithon
 
10:36 PM
also does IBM count? cause they use some Python
 
Static typing.
And ease of deployment for non web apps.
 
@vaultah so this thing invalidates my other answer, which is accepted. The OP's answer handles that case well. Woooo!
 
"non-web apps"? you mean GUI (then it would what OS) as I don't see how one would find an easier and better language for the type of corporate analysis tasks I did then Python
granted the answer to your question is: go learn Python or don't - most of us know (sometimes even use) multiple languages
 
@TomasZubiri enforce usage of mypy to allow deployments
@TomasZubiri What's an example of something that's easy?
 
> I started playing around with panda and it seems like it is much harder than numby.
 
10:44 PM
myPy looks good. Not sure if it allows deployments.
 
*twitch*
 
twitch wha?
 
that 0.4.5 doesn't look nice though.
 
suspects Zubiri be trollin'
 
@AndrasDeak *twitch*
 
10:48 PM
general question: How can I prevent single precision rounding errors? I want to do two matrix dot products in a row (output of the first dotted with a 3rd matrix) but my OpenCL algorithm is having issues replicating the output even for a single one.
 
Use double precision.
 
And what do you mean by "replicating"? Vectorized/batched calculations will happen in arbitrary order, so you'll always get numerical errors on the order of machine precision. Which is big for singles. Is your error larger than that?
 
output for `numpy.dot()`: [[ 720.73242188 733.10144043 848.64550781 ..., 855.74609375
907.65856934 870.90185547]
[ 637.30218506 644.11193848 745.58258057 ..., 752.35388184
798.92694092 764.88049316]
[ 729.68737793 741.03649902 855.5713501 ..., 858.89447021
911.45611572 878.86993408]
...,
[ 778.37133789 794.20367432 912.04864502 ..., 922.02099609
977.77984619 940.86950684]
[ 679.37341309 696.58215332 802.88226318 ..., 813.71789551
860.12823486 826.93023682]
[ 710.61431885 728.19592285 834.77532959 ..., 848.4576416 898.75091553
 
my eyes
 
10:50 PM
output for my openCL algorithm: [[ 705.06506348 722.52886963 817.58581543 ..., 696.37915039
721.95697021 730.50238037]
[ 680.44616699 693.67242432 789.43920898 ..., 670.35119629
692.40917969 712.55407715]
[ 700.11651611 711.19378662 819.8515625 ..., 695.88153076
718.45343018 733.2421875 ]
...,
[ 802.44036865 941.0826416 799.32287598 ..., 793.85919189
843.83062744 811.33392334]
[ 791.87353516 928.27185059 785.00994873 ..., 765.09680176 831.331604
798.68029785]
[ 799.90057373 939.45422363 796.2053833 ..., 781.18511963
 
its just numbers @idjaw - weird phobia you have there
 
Oddly enough, in the entire rest of my algorithm, there's been no loss of precision. numpy.allclose() is returning true compared to sequential code
which is far more complicated arithmetically compared to a dot product
 
matrix products shouldn't give you an error of ~10, in my limited experience
have you looked for a bug?
 
I confirmed that the opencl kernel works for integers
 
weird
dunno:)
how big are your matrices?
you'd need 1e8 operations each with error of 1e-7 to get errors of ~10
that would mean 1e8x1e8 matrices, which I doubt
are you sure the only thing happening is a matrix product?
 
11:08 PM
Magnificent Seven : decent. I enjoyed it. Not amazing. Some great fight scenes. Chris Pratt just being Chris Pratt a lot of the time.
 
How many Fizzy points?
 
5/7
 
6/10.
Maybe 7.
 
6/7?
 
(6|7)/10
 
11:11 PM
You crazy Russians and your base 7.
 
"Chris Pratt being himself" as in Parks And Rec?
or the buffed-up superhero machoman they turned him into?
 
^^ valid point
 
Well every character he plays in movies. Devilish rogue with a heart of gold who's only attribute better than his rugged good lucks is his quick wit.
 
so, you?
hugs
 
11:13 PM
<3
My heart is made of black ice, but the rest is totally inaccurate too.
 
Salmiakki ice cream for a heart...makes sense
OK, I can't stand it
> who's only attribute better than his rugged good lucks
phew, much better
did we miss another ZedGemâ„¢?
> Python 3 has Quantum Typed Strings. You have no idea if it's a string or bytes until it blows up and makes you observe the stack trace.
seriously, dude
 
The matrices are 81x81
I've got a,b,c which are all 81x81 numpy.random.rand(81,81).astype(numpy.float32)
and I compute temp = numpy.dot(a,b) and then numpy.dot(temp,c) and neither of those really match the output of the opencl kernel which I pulled from a public source
 
11:35 PM
try transposing your matrices (in numpy for convenience), in case there's some indexing magic being off once again
you know, you had to fiip your indices compared to some of the online sources; using somebody else's kernel might mean that the indices are switched once again
 
hmm I'll investigate that
 
the error surely means a bug:)
 
you're a bloody genius
 
everything checks out just fine now
 
11:44 PM
glad to hear that:)
 

« first day (2175 days earlier)      last day (2777 days later) »