Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jupp0r
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
211.
▲
by
jupp0r
3y ago
This has nothing to do with the language and is just a huge flaw in the design of the standard library: inability to supply a comparator function that is used for data structure types like sets, etc.
212.
▲
by
jupp0r
3y ago
Theoretically yes, but 1. there are lots of problems preventing this working in practice currently (see my sister comment here: https://news.ycombinator.com/item?id=39433274 ). 2. the result of doing this is not the beautifu
213.
▲
by
jupp0r
3y ago
The currently prevailing model in Rails is that a worker is a process that has an instance of your application running (ie the code loaded, global variables initialized etc). Let's say your service makes a request out to OpenAI and wai
214.
▲
by
jupp0r
3y ago
How would you move ChatGPT 4 inside your rails app?
215.
▲
by
jupp0r
3y ago
Hey there, sorry if this came across as critique on the project itself or you personally. I get it, priorities change and projects get abandoned by the original maintainers. My comment was more aiming at the ecosystem at large. Lots of the
216.
▲
by
jupp0r
3y ago
Yeah, right. Because all the interesting things nowadays happen on the same server that renders your html and nobody calls into other SaaS APIs or interacts with external systems much. Rails is great for a world where an app was running on
217.
▲
by
jupp0r
3y ago
Rails is practically unusable for anything that requires concurrency inside of serving one request. If you have all your data in the database that your rails app connects to everything is great. If you need to call out over the network to 1
218.
▲
by
jupp0r
3y ago
All of it almost works.
219.
▲
by
jupp0r
3y ago
Last commit was 5 years ago. I feel like this is 80% of the rails ecosystem nowadays.
220.
▲
by
jupp0r
3y ago
If you are generally interested in how to write components that can be used by many frontend libraries (react/vue, etc), you should take a look at https://github.com/microsoft/fast . I was tangentially involved wit
221.
▲
by
jupp0r
3y ago
Sure, but there's video streaming, server to server long polling bidirectional channels, IOT sensors and all sorts of other things you probably use every day that can really benefit from HTTP3/quic.
222.
▲
by
jupp0r
3y ago
This is true for in memory data as well. Object oriented programming is great for some problems, but it's also limiting the way we think about data by putting it close to the code operating on it. ORMs do the same to databases by prete
223.
▲
by
jupp0r
3y ago
What works for me: counting calories. I use the MacroFactor iOS app. Set a modest deficit goal and stick to it on average. It's ok to splurge sometimes.
224.
▲
by
jupp0r
3y ago
Maybe you just haven't been in organizations that consider head-of-line blocking a problem? Just because you personally haven't encountered it, doesn't mean that there aren't tons of use cases out there that require HTTP
225.
▲
by
jupp0r
3y ago
You could have stayed with HTTP/1.0 as well. Or Gopher.
226.
▲
by
jupp0r
3y ago
I totally see where you are coming from, I've just seen the fallout from more and more tools adding similar features and the net benefit has not been there, quite the opposite. It makes it easy to do the wrong thing. That being said, w
227.
▲
by
jupp0r
3y ago
They probably had their own offices or at least cubicles.
228.
▲
by
jupp0r
3y ago
Slightly offtopic, but because this was prominently featured in their demo: AI generated commit messages are horrible. I'm not opposed to them in principle, but currently every implementation I have seen uses the code change itself as
229.
▲
by
jupp0r
3y ago
Love mine. Make sure you have fellow appreciative keyboard nerds around you in the office, muggles will definitely complain.
230.
▲
by
jupp0r
3y ago
Your explanation of Google delivering lots of AI SEO generated results is that there is an enormous government conspiracy which aims to prevent people from learning the truth about COVID?
231.
▲
by
jupp0r
3y ago
It's an interesting point, but I doubt it's the lions share of egress that's going to other data centers vs to customers. Fan out is where it gets expensive.
232.
▲
by
jupp0r
3y ago
Awesome, thanks and sorry for the pedantism.
233.
▲
by
jupp0r
3y ago
I agree with you on all of this. fx is not doing much more for shutdown than what you describe (calling a handler pushed to a stack created during initialization). Instead of implementing this for every app, I just prefer to use a library w
234.
▲
by
jupp0r
3y ago
I'm confused by that website using $/mo as the unit to describe the cost of 1TB egress. How does the time component play into this? I would have expected the cost to be described in $/TB.
235.
▲
by
jupp0r
3y ago
Weight loss is not starving yourself, it's a great improvement for lots of western adults health if done responsibly.
236.
▲
by
jupp0r
3y ago
I've never seen a tree graph, not without lots of global mutable state to cheat around DI. Your logger is just going to be needed almost everywhere. What do you do on shutdown? In languages with destructors, that can automatically give
237.
▲
by
jupp0r
3y ago
I don't disagree with you, I've argued against the usage DI frameworks plenty of times on projects I was working on. Many are not well made, are overly complicated and do much more than one single thing. Especially in Go, where yo
238.
▲
by
jupp0r
3y ago
Spring is an overly complicated mess. I use DI when it makes things simpler, I don't see how Spring would ever do that.
239.
▲
by
jupp0r
3y ago
They do lift weights daily. Themselves, their offspring, branches, fruit, lots of things.
240.
▲
by
jupp0r
3y ago
If you have ever topologically sorted 100 components connected in a complex graph by hand or found the right spot to insert the 101st, you'd quickly appreciate more help than a compiler check.
More ›