Better HN
topnewbestaskshowjobs
Log inSign up

acidbaseextract

576 karma · joined Aug 7, 2016 (10y ago) · 160 submissions

Submissions

comment 6y ago · link · parent

Not at all. I'd highly recommend CMU's 15-445/645 Intro to Database Systems course (sponsored by Snowflake lol) because they put all their lectures online on YouTube [1]! Here's what's involved in making fast databases from the syllabus [2]:

This course is on the design and implementation of database management systems. Topics include data models (relational, document, key/value), storage models (n-ary, decomposition), query languages (SQL, stored procedures), storage architectures (heaps, log-structured), indexing (order preserving trees, hash tables), transaction processing (ACID, concurrency control), recovery (logging, checkpoints), query processing (joins, sorting, aggregation, optimization), and parallel architectures (multi-core, distributed). Case studies on open-source and commercial database systems are used to illustrate these techniques and trade-offs. The course is appropriate for students that are prepared to flex their strong systems programming skills.

[1] https://www.youtube.com/playlist?list=PLSE8ODhjZXjbohkNBWQs_...

[2] https://15445.courses.cs.cmu.edu/fall2020/syllabus.html

comment 6y ago · link · parent

I came to HN for the lisp fanboy culture when it washed out of reddit, and stayed for the great moderation.

comment 6y ago · link · parent

I had my first startup fail in the late 2000s because we built a sales prediction software that sounded cool, but nobody actually wanted. We even had a large paid pilot with a major auto manufacturer, but they didn't renew when it turned out that none of their employees had actually used the software.

Making something nobody wants is a classic startup mistake. I resolved not to make it again and read a great deal about market validation and building products.

I have one recommendation for those reading this thread: Steve Blank's "Four Steps to the Epiphany". It contrasts Product Development (focusing on a product with no customers) vs Customer Development (focusing on customer problems and building software around those). Honestly you don't even need the whole book, there's a PDF with the first couple chapters floating around [1]. I had a bunch of "holy shit, that's exactly what I did wrong" moments while reading it.

Eric Ries' "Lean Startup" is also an excellent book on this topic.

[1] http://web.stanford.edu/group/e145/cgi-bin/winter/drupal/upl...

comment 6y ago · link · parent

I really wish that book was a little cheaper. It looks really interesting and I've had my eye on it for months, but there aren't really any used copies of it floating around to bring down the price.

comment 6y ago · link · parent

Yes, the transpiler (though everybody is already bundling these days). I really like JSX, though it's not everybody's cup of tea.

I also think other folks in this thread are referring to mounting on existing DOM in jQuery-esque use cases.

comment 6y ago · link · parent

> you can arbitrarily render a React root anywhere

I think this exact capability is what led to such strong React adoption. It's almost viral within an application. The main application that I worked on a few years ago was on Backbone / Marionette and we evaluated React by writing several small but complicated nested components, with state controlled by existing mechanisms. After liking both the flux application architecture and the ease of gradual transition, we pulled the trigger on React. It slowly ate our application from the inside out, but never forced our hand.

React isn't "lightweight" (JSX being the primary hurdle), but it is very easy to adopt incrementally!

comment 6y ago · link · parent

Why is RISC-V bad? You spend paragraphs ripping on it without actually explaining why it's bad.

comment 6y ago · link · parent

I appreciate the clarity in code — I'm asking for `betamaxinv` I think?

    >>> betamax((3, 14), (4, 12))
    0.29448379324802676

    >>> betamaxinv(0.29, allowed_error=0.01)
    [((3, 14), (4, 12)), ...]
I assume the results of `betamaxinv` are not unique, and so perhaps there need to be constraints, or return a family of results. I don't know. I'm trying to wrap my head around how OP got A ~ Beta(2,13) and B ~ Beta(3,11) without just brute forcing numbers into `betamax`.

comment 6y ago · link · parent

Maybe I'm an idiot, but I thought he showed how to evaluate "P(B > A)" given A ~ Beta(2,13) and B ~ Beta(3,11).

What I'm asking is: how do you find parameters for A and B given "P(B > A) = 0.71"?

comment 6y ago · link · parent

That makes sense in the analytic case, but you mean in the monte-carlo case? I presume just 4D Newton's method on the final integral over the pdf_X to get the value we're looking for?

It makes sense, I'm just surprised the blog never comes out and says "you have to do a brute force search to get the parameters for the likelihoods A ~ Beta(2,13) and B ~ Beta(3,11) for P(B > A) to have about the right value".

comment 6y ago · link · parent

Did the post ever actually answer the question:

> this is an awesome example. is there an easy way (as in non-brute force) to finding the beta parameters that'll match a probability?

comment 6y ago · link · parent

Titano is nice, but may have some trademark issues. Tanobo is easy to say, if a bit generic. Just playing with syllables.

comment 6y ago · link · parent

Definitely, especially from a memory bandwidth perspective: https://youtu.be/KpnIx1kLq9w

comment 6y ago · link · parent

In general it's an amazing time to be a computer hardware consumer. There's real competition in pretty much every primary component hardware vertical. The spinning rust data storage market has been uniquely crappy of late.

The sketchy stuff shows up in cheap components with slim margins (budget AIO watercoolers, budget hard drives, budget PSUs budget/no-name ebay video cards).

comment 6y ago · link · parent

> the toy-ishness of the language

I think that this is a feature, not a bug. Part of my maturation from a junior to a senior engineer was learning to trust that simple implementations are ok. I remember often not trusting that the simple thing would work robustly (passing around a list) and reaching for something way more heavy (perhaps a wrapper around sqlite persistence). I now recognize that the simple implementation is better and almost always more robust than something fancy, and I definitely attribute that to internalizing the zen of python over time.

> JS is a pass by value language... except when it comes to arrays and objects, it then becomes pass by ref. Go figure.

It's all pass by value. For objects and arrays, the value passed is the reference.

comment 6y ago · link · parent

The moment I saw that name I wondered the same thing. It would be cool to be running in the same internet circles as Ed Catmull.

I'm in awe of his contributions to both computer graphics and Pixar, and I really liked his management book, even if he definitely did some sketchy stuff with wage fixing.

comment 6y ago · link · parent

Completely agree. The same thing pops up with filenames, as well as many automation tools where functions end up being commands. Python's fabric for example has a help function that dumps out possible commands in alphabetical order... the "restore_database" convention ends up being painful to sort out visually.

comment 6y ago · link · parent

Steve Brunton, a University of Washington professor has a sweet lecture series called the Control Bootcamp that dives deep into control fundamentals while still being approachable. Great production values too: https://www.youtube.com/watch?v=Pi7l8mMjYVE&list=PLMrJAkhIeN...

comment 6y ago · link · parent

A typical way to articulate it is that the experience of consciousness is just another sense-perception, not the "center of you". In the same way that your sense for certain types of light is called sight, your sense for certain types of neural activity is consciousness.

comment 6y ago · link · parent

This helps you figure out if you’re building VSCO or Facetune.

This is a perfect example of where JtbD is stronger than personas. There are lots of people who use both VSCO and Facetune. The thing differentiating those two cases is what they intend to do with a photo, the job to be done. Another simple example of this type is YouTube vs TikTok. How are the personas different?

The case for personas is stronger within a specific task, for example: iMovie vs Final Cut Pro, ffmpeg vs Adobe Media Encoder. Even then it's not the touchy feely aspects of personas that bring value, but instead the basic market segmentation.

comment 6y ago · link · parent

Thanks for the detailed response. I'm curious, is the NoSQL store a canonical store of its own data? If not, how do you replicate from postgres to the secondary store?

I ask because where I work we sync postgres to a secondary store for search, but the way it's done in a piecemeal, application-specific way gives me the heebie jeebies. It almost certainly will result in that secondary store drifting. Unfortunately we can't use something like zombodb [1] as we're on amazon RDS. It seems like you know your stuff, and seeing non-deterministic consistency irritates the heck out of me!

[1] https://github.com/zombodb/zombodb

comment 6y ago · link · parent

I would vouch for Imagineering Story as well. Great mix of technical stuff that's awesome from a nerd perspective, while entertaining for the non-techies too.

comment 6y ago · link · parent

There's evidence of significant problems in business/management philosophy, as the consensus is that you need to optimize for now, and later is somebody else's problem.

Dead on. I've seen boards of directors ask for fried ice:

Management: We haven't put adequate time into building a sales training program.

Board: Focus only on revenue this quarter. It's the only thing that matters!

Then next quarter:

Board: Why aren't your new sales guys producing?! They need to drive revenue!

Management: Uh... you told us not to spend time on training.

comment 6y ago · link · parent

Here's a section of Michael Redmond's (9-dan professional Go player) commentary on the Lee Sedol vs AlphaGo matches: https://youtu.be/yCALyQRN3hw?t=3031

It's really fun to watch his commentary because he relentlessly plays "variations" — possible next moves and sequences — while waiting for the players, explaining the tradeoffs between moves and the consequences they lead to a few steps ahead in the game.

I don't know what to call "variations" but a tree search with heuristics. He does it slowly to explain it to the audience, but I have no doubt the same process runs much faster in his mind.

comment 6y ago · link · parent

> The whole RISC philosophy was a huge mistake. Yes, x86 instructions do not map well to transistors, and they have to be unpacked into uops to be executed.

The RISC philosophy wasn't a mistake. Our architectures have just become more sophisticated so that we don't have to make a binary choice. The hybrid is good. The internal uops get the pipelining advantages of RISC, while we get the encoding compression of a CISC instruction set.

comment 6y ago · link · parent

What is this referring to?

comment 6y ago · link · parent

Not to be trite, but uh... like WSGI or Rack?

comment 6y ago · link · parent

Nobody's drawing conclusions here. All I'm saying is that it isn't crazy to think that an A14 part will be competitive with Intel's lineup, especially from a core performance perspective.

Power limits and memory hierarchy both benefit the 9900k heavily in this comparison, which is why I went with the single-core score. I'd be surprised if an iPhone 11 Pro Max will floor all its cores even for a short microbenchmark. A desktop/laptop A14 will likely look much more competitive in these respects.

comment 6y ago · link · parent

Geekbench has a clang benchmark. Randomly picking from their public results data, looking at the "Single-Core Performance, Clang"

• iPhone 11 Pro Max - 1413 (11.0 Klines/sec) https://browser.geekbench.com/v5/cpu/2634126

• 9900K - 1270 (9.89 Klines/sec) https://browser.geekbench.com/v5/cpu/2633843

The A13 is really impressive.

comment 6y ago · link · parent

> That’s why I ask for the costs of finding a new tenant as a discount.

Great stuff. Thank you for the reply!

123456