HackerTrans
TopNewTrendsCommentsPastAskShowJobs

xLaszlo

no profile record

Submissions

Show HN: Python decorator to log local variables with each line of code run

pypi.org
42 points·by xLaszlo·vor 3 Jahren·13 comments

comments

xLaszlo
·vor 2 Jahren·discuss
6TB - Snowflake

Why?

That's the boring solution. If you don't have a use case, what kind of queries you would run then opt for maximum flexibility with the minimum setup of a managed solution.

If cost is prohibitive on the long run, you can figure out a more tailored solution based on the revealed preferences.

Fiddling with CSVs is the DWH version of the legendary "Dropbox HN commenter".
xLaszlo
·vor 2 Jahren·discuss
That's Kent Beck's 3X: Explore Expand Extract (there is a good video on it about his time at FB)
xLaszlo
·vor 2 Jahren·discuss
It's a question of "What is the economy for?"

Disruptive tech monopolies upset entire existing industries for the sake of their owners/shareholders/employees, which is usually tiny compared to the said industries.

(Think of FB/Google advertisement centralisation as the end of other media providers.)
xLaszlo
·vor 2 Jahren·discuss
I think feast is sunsetted
xLaszlo
·vor 2 Jahren·discuss
Hungary had and still has a state sponsored "elite" education for gifted children. From a relatively early age kids are regularly tested (both materially and curiosity wise) if they are interested in "better" Maths. So they are prepared to a STEM trajectory.

You don't need to be a genius just reasonably good and interested. I would think 10% of all kids take part.

Check out UKMT for the equivalent in the UK or Kangaroo competitions.

Secondary schools has a 130! year old journal (KOMAL) for competition Maths (again various difficulties) but those who go on to become mathematicians (an extremely selective subject in Hungary) pass the hardest tests as well.

So Hungary has various levels of gifted children support programs and has it for the last 100+ years (across 3-4 different government structures)
xLaszlo
·vor 2 Jahren·discuss
Hmm, I had to check this and came across this thread on Reddit. NIST has a standard for it, but the exact point is that _that_ can be influenced by them.

Also, somewhere in the thread, they mention that it is probably too hard to verify how it is actually implemented in the hardware.

https://www.reddit.com/r/crypto/comments/klcx4p/is_true_rand...

I guess in security only the paranoid prevails...

Or it is indeed just a cool gimmick...
xLaszlo
·vor 2 Jahren·discuss
Until it turns out that the NSA was involved writing said RNG and explicitly weekend it with a backdoor...
xLaszlo
·vor 2 Jahren·discuss
It's beer, isn't? Completely makes sense...

If they find evidence that the next step was caffeine, I have no more questions...
xLaszlo
·vor 2 Jahren·discuss
Neither does Tadatem ;)
xLaszlo
·vor 2 Jahren·discuss
There should be a balance of short term and long term thinking and project management is the optimisation between the two.

My experience is that managers only think short term which makes SWEs defensive and be dogmatic about long term.

The the project fail.
xLaszlo
·vor 2 Jahren·discuss
If you are looking for low discrepancy (fills the space "smoothly") quasy random numbers check out Sobol and Niederreiter sequences.
xLaszlo
·vor 2 Jahren·discuss
I found that the best to think of graph implementation is sparse matrices of the adjacency matrix. CSR/CSC format has fast lookup abilities, building and switching between formats is "relative" efficient. Most graph algorithms need primitives that can be built on top of this.

For distributed computing one can look int GraphLab or its smaller version, now largely abandoned GraphChi.
xLaszlo
·vor 2 Jahren·discuss
This is called "Goodhart's Law"
xLaszlo
·vor 3 Jahren·discuss
Thanks for the comments.

I don't have anything against debuggers, but I feel more natural to write into the code and this simplifies it.

TBH I haven't tried this or snoop heavily and the project was more of a curiosity of how the internals of python work after I found a relevant SO post.

Honestly I was surprised how easy it was.

If you actually want to use something like this use snoop: https://pypi.org/project/snoop/ it is more feature rich and maintained.
xLaszlo
·vor 3 Jahren·discuss
Ahh, I never heard about it, but it looks promising.

I will reach out to the author.

Thanks for bringing it to my attention.
xLaszlo
·vor 3 Jahren·discuss
WIP: suggestions most welcome.
xLaszlo
·vor 3 Jahren·discuss
I don't remember response speed mattered until at least ten years after Google's start.

Certainly not when they won.

They were better. Basic PageRank was better than anything else. And once they figured out advertisement, they kept making it better to seal their dominance.