Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
logv
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
Logs vs. Metrics – A False Dichotomy
(whiteink.com)
2 points
by
logv
7y ago
|
0 comments
2.
▲
by
logv
8y ago
wow, that's way off! for n = 2, n^n^n^n returns 65536. for n = 3, javascript thinks its infinity. i guess BOAT should start using decimal values for n so we can detect this problem.
3.
▲
by
logv
8y ago
Yes, this is likely true - I really need to think about it more, though. I don't know how to do static or runtime analysis, so I can't say much about it
4.
▲
by
logv
8y ago
Yes, it analyzes a formula or recurrence relation - sorry to get your hopes up :-D I wish it could analyze source code, but the halting problem says that would be a bit difficult. I think one could execute source code with varying size inpu
5.
▲
by
logv
8y ago
Thanks for the feedback and good catch! The list of big O classes is the following: var classes = [ define_func("0"), define_func("1"), define_func("lg(n)"), define_func("sqrt(
6.
▲
by
logv
8y ago
BOAT is a quick tool I made for analyzing and comparing the Big O growth rate of mathematical functions. I built it to help students get a sense of Big O notation, as its a common class exercise to have to rank several math functions in ter
7.
▲
Show HN: Boat – Big O analysis tool
(boat.algorithm.city)
24 points
by
logv
8y ago
|
9 comments
8.
▲
by
logv
9y ago
good point! i'm not against a DSL. as I was working on plait.py, one thought going through my head was: "am i re-writing haskell or lisp but worse"? my experience with python and DSL is that I need to use YACC / PLY to c
9.
▲
by
logv
9y ago
it's a drop in replacement for stympy/faker, but not joke2k faker joke2k/faker is python and the data is stored in code (all or most of the random values are in .py files around the codebase), perhaps leading to its slowness.
10.
▲
by
logv
9y ago
part of what prompted the work on plait.py was that joke2k/faker was reasonably slow to generate 10K fake names for me: https://paste.ubuntu.com/26354987/ PS. that's a really cool python tip!
11.
▲
by
logv
9y ago
if you already have a way of printing XML, you can add a "printer" field (that is a python function) to your template, like so: http://github.com/plaitpy/plaitpy/blob/master/templates/test..
12.
▲
by
logv
9y ago
if you create a template and keep calling .gen_record(), i think it will do what you want. Template() does not implement python's __next__ or __iter__ at the moment, but that's a good idea - i'm very open to diffs :-D
13.
▲
Show HN: Plait.py – a fake data modeler
(github.com)
85 points
by
logv
9y ago
|
19 comments