Better HN
topnewbestaskshowjobs
Log inSign up

capableweb

37,790 karma · joined Sep 7, 2019 (7y ago) · 9,208 submissions

Curabitur pretium dui sit amet quam pharetra, at condimentum turpis auctor. Maecenas vitae varius sem. Sed vel ante massa. Nulla a leo est. Morbi quis pulvinar nulla, et imperdiet nibh. Curabitur varius felis tempor nisl vulputate, id accumsan libero placerat. Sed mi odio, auctor ac lacus vel, sollicitudin mattis dolor.
Submissions

comment 3y ago · link · parent

The keys for GPT3 (`GPT-3.5-turbo` is the actual model ID) is the same as for GPT-4. You define the model when you make the request to the API.

comment 3y ago · link · parent

It seems to support both? First it tries to load the key from a environment variable, and if it cannot, it'll ask for it client-side.

None the less, if you're building a project for others, you most likely don't want the secret key to be public, which it'd be if you embed it in the client-side code.

comment 3y ago · link · parent

I've heard a lot of strange things on HN but this one absolutely ends up in top-ten. How in the world is HN anti-startup? Sure, there is some anti-startup sentiments in the comments usually, but there is also comments anti-anything in the comments. HN is very much a startup-centric place if anything.

comment 3y ago · link · parent

I don't really care about how others use it. I myself find it enough useful and productive to use it, and what I wrote before is how I "protect" myself. As you say, people who don't check sources won't do so with or without GPT4.

comment 3y ago · link · parent

> but you need to actually know something about the topic to evaluate ChatGPTs ability.

I don't necessarily think you have to, but you have to be ready to look up further, more trustworthy sources after your discussion with ChatGPT.

comment 3y ago · link · parent

Yes, for sure. Some applications of procedural texture primitives (like Perlin Noise) that I wasn't super familiar with and for example "quaternion" which I never heard about before trying to write a game.

comment 3y ago · link · parent

Basically. I'm not sure I'm losing much efficiency, my previous approach was contacting friends who know how to do math in programming, sometimes it could days before I could move past the issue. And the result is the same, ending up with a piece of code I mostly understand, but struggled to write myself so the knowledge is fleeting at best.

Just to be clear, the context here is me writing games for fun, while struggling with the math heavy parts. I would never professionally use GPT4 for anything, and wouldn't push anything to production that I don't 100% understand, that would be failing at my profession and I take bigger pride in my work than that.

But for fucking around with games in my free time, it has made me a lot of efficient at the parts I'm struggling with.

comment 3y ago · link · parent

I'm not saying it's any good, but it's pretty standard in Terms of Conditions that the platform "grants" themselves the right to suspend your account for any reason or without providing any reason to you. Sucks, but I'm sure they have every provision in place to ban 100% of their users if they wanted to.

1989.

xkcd: Will _____ Destroy Whole Industries? (Simple Answers)(xkcd.com ↗)

47 points · by capableweb · 3y ago · 23 comments

comment 3y ago · link · parent

Problem is, the issue doesn't go away because you ignore it.

Similarly to providing safe needles for heroin usage for example. If a heroin addict asks you for a safe needle and you say no, they're not gonna just give up and say "Well, better not do heroin then", but instead re-use needles from others or whatever else they can do. If you instead provide them with safe needles, at least you can eliminate some risk with the behavior, even if you don't eradicate the dangerous action fully.

comment 3y ago · link · parent

> Reminds me of that Microsoft bot years ago that just kinda became quite racist even when not prompted for it. That's what broken looks like.

I think you're referring to Tay (https://en.wikipedia.org/wiki/Tay_(bot)) here right? The context is slightly different, as Tay "learned" from what random people on the internet told it, so unsurprisingly, a bunch of internet randoms got together to make the bot racist and a holocaust denier.

comment 3y ago · link · parent

Harm reduction has been shunted at large in most societies (except a few), to the detriment of many. But that doesn't stop politicians and puritans from working against harm reduction. Not sure why we'd expect something different to happen with AI, it is a mirror of humanity after all (and specifically for OpenAI, a mirror of US society), for better or worse.

comment 3y ago · link · parent

I've worked with disabled people and elderly, and most of them like banter related to their conditions, maybe 1/10 didn't appreciate some lighthearted jokes about it but weren't also deeply offended by it, just not amused like the others. Obviously I wouldn't go up to random persons face and make fun of them, but as you develop a personal relationship, most people are OK with banter as long as that's not the only thing you do and it is clear you are only joking around.

comment 3y ago · link · parent

Funny coincidence, I just managed to get GPT4 to give me some high-level instructions on how to synthesize LSD, but when I tried to help me synthesize Methamphetamine, it refused no matter what I tried.

Seems the "anti-knowledge" training has been a bit more aggressive for some chemicals than others.

comment 3y ago · link · parent

I don't think they were. Maybe they were new in gaming, but for the 3D/animation scene they were not new at that point, I remember using them earlier than so, and also using dump and displacement maps which are related concepts.

comment 3y ago · link · parent

I count 9 + 13 + 7 "AreWeXYet" comments while the rest of the 100 comments (129 - (9 + 13 + 7)) seems to be related to the subject. "Rust" is mentioned 137 times.

Unless you've manually counted all the comments, it seems like you're incorrect, most of the discussions are related to the subject at hand, compared to this thread you started here :)

comment 3y ago · link · parent

It would reduce the number of draw calls and increase the performance of rendering, as it's simpler to render textures than polygons. Although I think you wouldn't be able to use the same method for everything, as you'd use more vram when using textures for the effect rather than polygons. But for the case of something like coins in a Mario game, I guess it makes sense.

As always, what is the right approach depends. If you want to run the game in a very memory constrained environment (early game consoles), the approach of using polygons might make more sense. But nowadays we have plenty of vram and if the entity is used a lot, 1 texture for 100s of entities makes it a worthwhile tradeoff.

Edit: thank you for the corrections, I'm not heavily into game programming/rendering but am familiar with 3D/animation software, but the internals of rendering is really not my specialty so I appreciate being corrected. Cunningham's Law to the rescue yet again :)

comment 3y ago · link · parent

I think programming is very easy most of the time, most time I spend is just typing/moving code around, figuring out the solution is the easy part for me, only the computer<>brain coordination is slowing me down most of the time.

But there are things that are harder for me, or more complex maybe. I struggle with math, and always had, so anything involving heavy math or algorithms is harder for me (I'm a hacker, not a computer scientist, if you will).

For these things, I found GPT4 to be very helpful. I can write what I want, get a WIP version back, work out some kinks with it myself and ask it to rewrite it if it's not perfect, until I have a perfect version. Add some unit tests, find more things that are missing/wrong (sometimes), more back and forward.

Before GPT4 I either just tried to work around having to deal with heavy math, or find people IRL that could help me. Now I'm a lot faster even if it involves math, because of GPT4.

comment 3y ago · link · parent

Personally, I found GPT-4 to be helpful when writing code for games. But I'm a web programmer trying to learn game development, I'm no professional game developer by any measure. And I'm using Rust and Bevy, for what it's worth. So it might not be as helpful for someone like Tyler who actually know what they are doing, similarly for me if I were to use it for web development.

The most helpful thing with GPT-4 have been getting help with math heavy stuff I don't really grok, and that I can try to compile the code, get an error and instruct GPT-4 that the code didn't work, here is the error, please fix it. Other things it been helpful for is applying the "Socratic method" for helping me understand concepts I don't really grok, like Quaternions. Then, knowing GPT-4 isn't perfect, I always verify the information it tells me, but it gives me great starting points for my research.

Here a conversation I had lately with GPT-4 in order to write a function that generates a 2D terrain with Perlin Noise: https://pastebin.com/eDZWyJeL

Summary:

- Write me a 2D terrain generator

- Me reminding GPT-4 it should be 1D instead of 2D (I used the wrong wording, confusing a 1D vector with 2D)

- Code had issues with returning only values with 0.0

- GPT-4 helping me tracking down the issue, where I used the `scale` argument wrong

- Got a working version, but unhappy with unrealistic results, I asked it to modify the function

- Finally got a version I was happy with

comment 3y ago · link · parent

Yeah sure, but regardless, if someone told you that someone died when they were 66 years old, would you say that they died "so young"?

comment 3y ago · link · parent

You can release whatever you want under MIT :) It grants you the right to use the binary for commercial projects (or any type of projects you want), to modify the binary, distribute it yourself and more. You cannot hold Bellard/the license holder liable for anything related to it, and you must include the license and copyright if you distribute it.

Seems pretty doable to me :)

comment 3y ago · link · parent

I guess the ACM A. M. Turing Award is as close as we get, which AFAIK, they never won. But Bellard won countless of other awards, competitions and benchmarks, it is not like they are unrecognized for their work in the field.

comment 3y ago · link · parent

AFAIK, only the older models allows you to do fine tuning, not sure GPT4 will allow to create your own fine tuned model so basically with the API it will work the same as with the chat gui.

comment 3y ago · link · parent

In their pricing calculator I put in 8 cores, 16GB of RAM, 1TB of egress and get the ludicrous price of $715.95 per month per location.

Is this a joke or do some people/orgs actually pay these amount of those specs (+ the other stuff that's included, obviously)?

If so, I need to rethink which market segment I'm in...

comment 3y ago · link · parent

Average life expectancy aside, if someone died when they were 66, would you write something like "She died so young"?

comment 3y ago · link · parent

Why / How?

comment 3y ago · link · parent

What do you mean "died so young"? She seems to have been born in 1867 and died in 1934, meaning she was 66 years old. The average life expectancy in the US in 1934 was 63.3, so above average compared to a country (US) she didn't even live in.

comment 3y ago · link · parent

I'm sure you know, but she discovered two new radioactive elements and laid out the foundation for a lot of what we know today about radioactivity and atomic structure. Probably she have been a huge inspiration to women in science as well as she was the first ever woman to win the Nobel Prize and faces a lot of challenges as a woman doing science in the early 1900s.

comment 3y ago · link · parent

Not knowing, understanding or having any experience of the "streaming" community of the internet. What is the purpose/fun with watching someone not just gamble as in playing poker or whatever for money, but slots specifically? Feels like watching someone rolling a dice by themselves, but with fancier graphics.

comment 3y ago · link · parent

> Like why is it here?

I submitted the URL and enough people found it interesting, so it ended up on the frontpage. The same for every submission you find on the frontpage.

> What's to discuss?

The state of game development with Rust. Apparently there is a lot to discuss, as it's currently on the #1 spot on the frontpage, with 60 comments.

> Should we just link to the PIP repository, too?

You're welcome to submit whatever websites you want. If enough people find it interesting, there will discussion around then subject.

1
666768
307