Readit News logoReadit News
leourbina commented on Most RESTful APIs aren't really RESTful   florian-kraemer.net//soft... · Posted by u/BerislavLopac
leourbina · 2 months ago
This post follows the general, highly academic/dogmatic, tone that I’ve seen when certain folks talk about REST. Most of the article talks about what _not_ to do, and has very little details on how to actually do it.

The idea of having client/server decoupled via a REST api that is itself discoverable, and that allows independent deployment, seems like a great advantage.

However, the article lacks even the simplest example of an api done the “wrong” vs the “right” way. Say I have a TODO api, how do I make it so that it uses HATEOAS (also who’s coming up with these acronyms…smh)?

Overall the article comes across more as academic pontification on “what not to do” instead of actionable advice.

leourbina commented on Ask HN: I'm an MIT senior and still unemployed – and so are most of my friends    · Posted by u/MITthrow123
leourbina · 5 months ago
I’m a MIT grad from ‘12. PM me (email is on my profile)
leourbina commented on A few words about FiveThirtyEight   natesilver.net/p/a-few-wo... · Posted by u/JumpCrisscross
genewitch · 6 months ago
lol TIL "The View" is "some rando on youtube"

And to answer your question, the video is a guest on the view who i don't know, saying the exact numbers i quoted. I was quoting the person on the view, which aired yesterday or something.

what's interesting, is instead of discussing what i said prior to the link, you chose to instead try and make me feel bad for linking a video.

Keep it classy, HN.

leourbina · 6 months ago
Anyone can say anything on YouTube. I think you’re confusing confirmation bias with “citing your sources”.
leourbina commented on How bloom filters made SQLite 10x faster   avi.im/blag/2024/sqlite-p... · Posted by u/avinassh
dymk · 8 months ago
Because if you want to refer to things by a UUID, now you have two indexes
leourbina · 8 months ago
UUIDs are very wasteful [1]. For most use cases you can replace them with much shorter strings and still have very low chances of collisions [2]

[1] https://henvic.dev/posts/uuid/

[2] https://alex7kom.github.io/nano-nanoid-cc/

leourbina commented on Starbase: SQLite on the Edge   starbasedb.com/... · Posted by u/hunvreus
brayden_wilmoth · a year ago
We don't cache query responses in the Starbase application layer. When we originally set out to build this, we were under the assumption we had to handle the ACID transactional support ourselves. Thankfully someone from Cloudflare shed some light for us as you can see in our Github issues and open PR's :)

Learn more about that here: https://github.com/Brayden/starbasedb/issues/12

leourbina · a year ago
Just fyi, the person that replied wasn't just "someone" at Cloudflare. It was Kenton Varda (kentonv here). He's the creator of Cloudflare workers, he's an incredible engineer.
leourbina commented on Codestral Mamba   mistral.ai/news/codestral... · Posted by u/tosh
bhouston · a year ago
What are the steps required to get this running in VS Code?

If they had linked to the instructions in their post (or better yet a link to a one click install of a VS Code Extension), it would help a lot with adoption.

(BTW I consider it malpractice that they are at the top of hacker news with a model that is of great interest to a large portion of the users where and they do not have a monetizable call to action on the page featured.)

leourbina · a year ago
If you can run this using ollama, then you should be able to use https://www.continue.dev/ with both IntelliJ and VSCode. Haven’t tried this model yet - but overall this plugin works well.
leourbina commented on Ask HN: How are engineers leveraging AI in your org?    · Posted by u/bognition
leourbina · a year ago
I've been using co-pilot as well as Claude (Sonnet 3-3.5) and ChatGPT (4-4o) since the beginning of the year with somewhat mixed success. My general take is that, at least so far, the improvement is very much marginal. These tools save me a few seconds by quickly surfacing information that otherwise would require me having to google and search through docs/stackoverflow/etc, or by writing code that's generally tedious (like tests).

Co-pilot is mostly useful to stay in the zone, allowing me to focus on a larger task and letting it get some of the details right (which it does ~90% of the time).

On the other hand, I use ChatGPT/Claude for more open ended tasks (e.g. "I got this <insert obscure> error", "how do I configure this framework so that xxx") which previously I would have googled hoping to find a stackoverflow answer or a doc page somewhere. For this use case I'd say it's ~50% successful, but I often have to deal with hallucinations - some times just following up with "Are you sure?" does help, but it's hit/miss.

As I said a the beginning, mostly marginal improvement. It's definitely saved me time, but thus far nothing that I couldn't do myself by spending a little bit more time. Largely it is a nice to have, not a need to have.

leourbina commented on Does ChatGPT make us dumber?   bohdankit.com/does-chatgp... · Posted by u/bohdank
sim7c00 · a year ago
Pointing at tech and blaming it for degrading the human condition is refusing to take responsibility of your own predicament. (not saying anyone here is doing it - it's a generalization!)

People who get 'dumber' from technologies, like GPS mentioned by a commenter (nice example), but also auto-correct, intellisense and such helpertools, they choose themselves the path of least resistance, and least learning. Arguably, they are already dumb, as they choose themselves not to learn.

It's all ok, i would say there's no rule that forces people to learn or be smart. But if you do want to learn, avoid using technologies _constantly_ which hamper your learning.

In the end, be responsible for yourself, and don't blame external things from preventing you to do things while you choose yourself to engage with them. (if it's not by choice, it'd be a different case perhaps, but no one is forcing anyone to use AI....)

leourbina · a year ago
I’d take a slightly different perspective. I’d like to think that these tools are in some ways “humanizing” - we can offload things that we’re not particularly good at (like memorization tasks) and instead we can use our capacities to do things that (at least for now) we humans are uniquely capable of doing. As an example: Back in the 90’s people knew many phone numbers by heart, nowadays I don’t think people know more than a handful, if that. Does that mean that “phone contacts” are making us dumber? Or perhaps we can use the time/effort/capacity to better use.
leourbina commented on Fly.io has GPUs now   fly.io/blog/fly-io-has-gp... · Posted by u/andes314
UncleOxidant · 2 years ago
I don't want to deploy an app, I just want to play around with LLMs and don't want to go out and buy an expensive PC with a highend GPU just now. Is Fly.io a good way to go? What about alternatives?
leourbina · 2 years ago
Paperspace is a great way to go for this. You can start by just using their notebook product (similar to Collab), and you get to pick which type of machine/GPU it runs on. Once you have the code you want to run, you can rent machines on demand:

https://www.paperspace.com/notebooks

leourbina commented on Kullback–Leibler divergence   en.wikipedia.org/wiki/Kul... · Posted by u/dedalus
kgwgk · 2 years ago
> it doesn’t satisfy some basic properties a real distance (a norm) would satisfy, including the fact that it isn’t symmetric [...] and it does not satisfy the triangle inequality.

Not sure about "real" but one can have useful distances which are not symmetric like the distance between cities measured in time or in gallons.

leourbina · 2 years ago
It just needs to be clarified that KL divergence isn’t a proper mathematical norm, so it doesn’t behave the way we intuitively think a distance should. As mentioned, it doesn’t satisfy the triangle inequality, which is a basic property for any distance-like function.

In comparison, both of your examples are much closer to norms as they both satisfy the triangle inequality.

For reference, this is what I’m referring to when I say a “norm”:

https://en.m.wikipedia.org/wiki/Norm_(mathematics)

u/leourbina

KarmaCake day61January 3, 2013
About
I like to build things and enjoy learning.

[ my public key: https://keybase.io/leo; my proof: https://keybase.io/leo/sigs/dN7Slupw75sgWe6AsNmOucD6LSkuTAo7zzO6YW2cnkc ]

View Original