527 karma · joined Jun 23, 2020 (6y ago) · 61 submissions
comment 10mo ago · link · parent
One trick that I always find helpful is to unroll the subqueries into a long sequence of CTEs. You can do a depth first traversal of whatever data structure produces your subqueries and build a list of CTEs as you go (and track of all the CTE names of course). The ordering 'just works'!
Slightly nicer SQL doesn't seem important at first for stuff like this, but it's actually a godsend for debugging. Every operation in the query gets a name that's accessible in the outermost scope, so you can slap a `select * from cochoice_abc123` on the end and see what's going on.
Figuring out what's going on in those subqueries was no doubt hellish at times.
comment 11mo ago · link · parent
It's definitely worth learning SQL very well, but you also need to learn the data structures your RDBMS uses, how queries translate into operations on that data, and what those operations look like in a query plan.
You can go surprisingly far with just that knowledge.
A great resource is https://use-the-index-luke.com/
comment 11mo ago · link · parent
In my experience, the average programmer isn’t even aware of the stack vs heap distinction these days. If you learned to write code in something like Python then coming at Go from “above” this will just work the way you expect.
If you come at Go from “below” then yeah it’s a bit weird.
comment 1y ago · link · parent
It generally happens when the grammar is highly constrained, for example if a boolean is expected next.
If the model assigns a low probability to both true and false coming next, then the sampling strategy will pick whichever one happens to score highest. Most tokens have very similar probabilities close to 0 most of the time, and if you're picking between two of these then the result will often feel random.
It's always the result of a bad prompt though, if you improve the prompt so that the model understands the task better, then there will then be a clear difference in the scores the tokens get, and so it seems less random.
11.
Ask HN: Are LLMs an Acceptable Lisp?
6 points · by tdfirth · 1y ago · 2 comments
comment 1y ago · link · parent
I reached several quintillion stimulation, at which point I was offered to purchase "go to the beach" for 2 million. This ends the game and plays a relaxing beach video.
You too can get to the beach in just 5 minutes.
comment 2y ago · link · parent
There is only one standard of accomplishment and it's set by people like Mozart.
Accepting that is humbling, but it's required to know yourself and grow. My contributions probably won't amount to much, but Mozart (et al) have shown us what good looks like and it's fun to strive.
comment 2y ago · link · parent
I think a lot of VC backed founders aren't just in it because they want to get rich though. Sure, we all want that, but we're also all predisposed to irrationally believe that we're the exception. That trait (for better or worse) comes with implications, and many founders I speak to are simply compelled to try because it's hard, and it's theirs, and they're impatient.
I also very much agree with the sibling though. Getting rejected does not carry that much signal, because YC are wrong more than they're right. So just keep trying.
comment 2y ago · link · parent
As you say, a lot of YC founders don't have a real business yet, but they're not there because they're well connected. They're there because YC thinks they fit the profile of someone who really wants to build a big business and might pull it off. They're wrong most of the time but it's a numbers game.
18.
Show HN: Nasty, a cross-warehouse, type-checked, unit-testable analytics library(getnasty.dev ↗)
47 points · by tdfirth · 2y ago · 6 comments
comment 3y ago · link · parent
As far as how to conduct these sorts of interviews goes, a few people have mentioned the mom test - it's v short and simple but it is indeed good. People, for the most part, avoid conflict and so don't give you honest feedback. Instead they tend to be complimentary, but non-committal. As a result, you need to be a little indirect in your line of questioning, and pay more attention to what they do than what they say.
When it comes to testing a product, try and deliver the value manually instead. Businesses don't buy software, they buy solutions to problems. Software is just a way to deliver the solution to many customers. If you can't convince someone to pay you to keep their menu up to date by hand, they won't pay for your software to do it either. Perhaps you convince them to give you the relevant credentials to update menus across platforms yourself, and then they email you when something changes, or you give them a google form, or you go into the restaurant every day and ask what's new. Not everyone is open to working with someone in a scrappy way like this, but you'd be surprised.
You can easily serve a handful of customers manually like this, which will give you the data you need to decide if it's worth it, and the data you need to build the product.
Anyway, good luck!
21.
Cotera (YC W22) Is Hiring Engineers(ycombinator.com ↗)
by tdfirth · 4y ago
comment 4y ago · link · parent
Not great... I'm ashamed but it's just me on this project atm.
edit: misread parent originally
comment 4y ago · link · parent
https://wayland.freedesktop.org/
Appreciate where you're coming from re the detail. It can be hard to know where to draw the line when explaining projects and it depends on the target audience etc.
In this case, I would say it's ok that they don't explain what Wayland is on the project page. Wayland has pretty widespread adoption now and I reckon the vast majority of people that might be interested in projects like tiling window managers for linux will have heard of it (and that has probably been true for quite some time now, Wayland has been around for over a decade).
If you're keen to dig into it more, another popular project in the space is sway https://swaywm.org/.
comment 4y ago · link · parent
Could the observation that the universe is expanding actually be the result of a sort of gravitational lensing and not the result of space expanding or bodies moving through space?
My rough line of thinking is:
- We believe that gravity has a warping effect on spacetime.
- We believe that this warping can distort light.
- When we observe light from distant galaxies, it must first exit the gravity well of the source, traverse the universe and then make its way down into our gravity well.
- Therefore, the light must have been subject to some distortion. It traversed two regions of 'stretched' space time and so became 'stretched' itself.
- This 'stretching' is interpreted as redshift and is indistinguishable from if the light source had just been moving away quickly.
Naively, I would have thought this interpretation explains a couple of things quite well: - Light would be redshifted in every direction as every bright and distant source (i.e. galaxies) resides in a large gravity well.
- It would explain a lack of redshift in nearby objects as we sit in a broadly similar part of the Milky Way's gravity well. As such the relative lensing effect would not be apparent.
Anyway, I obviously have no idea what I'm talking about and someone will have thought of this before - however I'm interested to know why the theory doesn't work.Most likely I don't really understand gravitational lensing and it wouldn't distort the wavelength of light as I suggested. Alternatively, perhaps someone has done the maths and the impact of any such effect does not align with observations.
edit: formatting
comment 5y ago · link · parent
We didn't know him before this so I can only conclude it was a genuinely kind act from someone looking to give back to the community.
All the best and good luck with Terra!
comment 5y ago · link · parent
My experience working with code written by researchers is that it frequently contains a large number of bugs, which brings the whole project into question. I've also found that encouraging them to write tests greatly improves the situation. Additionally, when they get the hang of testing they often come to enjoy it, because it gives them a way to work on the code without running the entire pipeline (which is a very slow feedback loop). It also gives them confidence that a change hasn't lead to a subtle bug somewhere.
Again, I'm not criticising. I am aware that there are many ways to produce high quality software and Google/DeepMind have a good reputation for their standards around code review, testing etc. I am, however, interested to understand how the team that wrote this think about and ensure accuracy.
In general, I hope that testing and code review become a central part of the peer review process for this kind of work. Without it, I don't think we can trust results. We wouldn't accept mathematical proofs that contained errors, so why would we accept programs that are full of bugs?
edit: grammar
comment 5y ago · link · parent
I'm based in the UK (Oxford). I'm open to a remote co-founder but I'd prefer someone in the UK so we'd be able to meet in person and get to know each other.
I've got a mixed background, I used to work in finance (did the CFA etc) but have worked as an engineer in the data space since 2016. I got to know the data industry and the analytical challenges that finance and marketing teams face really well, and now I want to solve some of the (many) problems I've encountered.
I have spent the last couple of months talking to as many businesses as I can. The goal has been to learn about how others are working and whether they have experienced the same problems as me. I am now quite confident in a few of my market hypotheses and I think I've got a promising direction to take an MVP in.
I've also been looking for a co-founder! I'm interested to meet anyone who is highly motivated, and who has expertise in the industry - either as an engineer or as a PM or in sales. Ideally you'll know what it's like to work for an early stage business, and you need to be willing to commit full time (for the right idea of course!). I will be putting _all_ of my time into this and I need to find someone who is willing to do the same. I think that there is a big opportunity to be had in the B2B data space over the coming decade, and there are loads of great businesses to be built.
If you're interested in setting up a call to get to know each other and see if there's a fit you can reach me at thomas dot d dot firth at gmail dot com.
Cheers!
Tom
edit: grammar