skysight-inc/HackerNews huggingface dataset:
Show HN: A cost calculator for OpenAI GPT Models
Hey all,

I was on the OpenAI website exploring their model documentation and came across their API pricing page.

I had the idea of using programmatic SEO combined with a GPT language model to generate content for fun and see what can rank in Google as a total experiment. (Yes I know Google's stance on this.)

I wanted to create around 200-500 words of content per page, but needed to know how many tokens that represented and costs in $USD.

So I created a simple (perhaps silly) calculator to convert word count into token counts so I can estimate my costs for this project and not get hit with a higher than expected bill.

Thus, https://www.gptcostcalculator.com/

P.S. I'm not a designer or a developer by trade... I'm just happy to be learning & doing. Feedback/criticism is welcomed, of course.

Disclaimer: This is an estimate calculator, so YMMV :-).
Costs mostly. He's talking from a privileged position of someone who can afford living in Amsterdam with his lifestyle.

Take for example buying groceries in your corner shop daily on your way back from work. Easily 50% more expensive than taking a longer, less frequent trip to a larger supermarket further away.

But what upset me the most was showcasing a building built somewhere in Canada that was, in his view, great because it didn't have parking spaces.

What actually happened is that the building rented-out parking spots from a nearby multi-level parking lot and was only allowed to be built as an exception, because it was too tall according to the zoning. And it shows, because it stands out like a buck tooth.

I live in a country essentially taken over by construction companies' interests and this is the kind of bullshit they peddle to improve their margins.
Blogspam, flagged
The final non-generalized version uses two additions and two bitwise shifts, no multiplication:

(v + (v << 3) + 9) >> 6
Depends on what you're buying. Existing models like the S or 3 have much shorter delays, upcoming models like the Cybertruck are worse. I had a 3 delivered in about two weeks.
Before there had been more complex instructions, doing entire multiplications or divisions at once, computers handled this by dedicated multiplication shift and division shift instructions.

Compare here for the DEC PDP-1 (1959) and related algorithms:

[0] https://www.masswerk.at/spacewar/inside/insidespacewar-pt6-g...
Is Adobe podcast broken again? I am having issues with it now
Yeah the downvotes are interesting.

Many users who are happy with "I want a GPU to drive my display and maybe game" are pleased with the current state of AMD - and that's fine. However, that population rarely goes beyond "how many FPS am I getting?". That population regularly complains about the Nvidia closed-source/binary driver situation. A lot of that criticism (from their point of view) is fair - although I've never had issues with the binary driver and as seen in this thread I'm not alone.

However, if they were to expect even just a little bit more - ML, reliable and usable hardware video encoding/decoding, etc they'd quickly realize what we have. The closed-source Nvidia driver is remarkable capable and consistent (from a functionality perspective) supporting every single feature and function of any and every card that says "Nvidia" on it across multiple platforms. From nearly decade-old laptop GPUs to the latest and greatest H100 datacenter GPU and everything in between. This is before you even get to the dozens of libraries Nvidia supports and provides (like cuDNN, TensorRT, etc) that have the same consistent, reliable, and cross-platform functionality.

Again, I understand their perspective and I don't look down on them or their simple use case (gaming on desktop) but in 2023 that's an extremely low bar. There's also a lot of criticism of the Nvidia price point - but those of us who are making full utilization of our hardware and supported features balk at that criticism. What's also interesting is the more buggy and less supported also closed-source (to my knowledge) AMD Pro driver that's required to do anything more than game. So at this point you're still not going to please the open source community and the functionality and experience is worse in every aspect.

My 4090s will not only beat AMD top of the line on just about every gaming benchmark, in seconds (or simultaneously) I can be training an ML model, encoding video, upscaling, doing realtime noise suppression, etc. The functionality fundamentally supported by that driver is amazing. When you look at it from that standpoint an Nvidia card being (at most) 3x the price point is perfectly reasonable. I'm thrilled to spend $1000 more if it means I can actually use the card for what I need and I save many, many hours of my time. In terms of total value it's not even close.

The increase in value, utility, and time returned is astounding and (to many of us) more than justifies the driver situation and cost. I support competition and have tried several times over the years to get ROCm to perform the most basic ML tasks - it's a blackhole of wasted time, energy, and effort (starting with the AMDPro driver). AMD clearly just doesn't care - and even if they decided to throw everything they have at it Nvidia has a decade-plus head start.

I truly wish the AMD software situation was better but I've been let down too many times to be hopeful I will be making anything approaching full use of any AMD GPU anytime in the near future.
Maybe easier, if limited to the specific case of an input in the range [0..63] and a divisor of 7, but not necessarily faster. Keep in mind the latency of a memory read is typically around 4 cycles, and at least some architectures have a tighter limit on the number of concurrent memory transactions than the number of concurrent integer math instructions, and keep in mind the article is generalizing beyond the initial problem involving the numbers 63 and 7- if you have more than a couple different divisors, and if you want to allow the input to go as large as possible, then a lookup table quickly becomes wasteful and impractical.
Sadly many people don't understand just how different cultures can be, I think this is part of the goal of having so many classes in undergrad that don't count towards the major. That's the whole idea of trying to make someone "well rounded". If you take classes in the humanities you get a glimpse of the variation. Some of those classes even discuss how many cultures aren't considered when doing studies like this
I shun most of the internet these days. HN and (German) reddit are the only "socials" I use. I have no clue what is happening on the wider Anglo speaking internet, especially Twitter and such is completely alien to me.
Fox News Alert!

Politics does not belong on HN
Apple, Inc. | Cupertino | Seattle | Paris | Full-time | Security Software Engineers

We’re perfectionists. Idealists. Inventors. Forever tinkering with products and processes, always on the lookout for better. Whether you work at one of our global offices, offsite, or even at home, a job at Apple will be demanding. But it also rewards bright, original thinking and hard work. And none of us here would have it any other way.

Where do you see yourself at Apple?

Security Engineering & Architecture is looking for engineers who can help make sense of complex hardware and software systems, analyzing their behavior and building upon them to create some of the most secure devices on the planet. We have a few open roles, related to secret storage, core operating system internals, secure infrastructure, and vulnerability research. We are looking for individuals able to build scalable distributed services, analyze highly-complex threats, identify vulnerabilities, and design operating system security mechanisms across our platforms. Ideal candidates will demonstrate clear communication, consistent follow-through, and the capacity to collaborate globally. These roles are a unique opportunity to be part of the team that architects and delivers groundbreaking security to more than a billion devices.

See our open roles and send a résumé to sear-recruiting@group.apple.com with [HN] in the email subject if interested. Please specify which role is most of interest in your email: https://jobs.apple.com/en-us/search?search=SEAR2022%2C%20SEA...
Other providers may follow along with the same kind of copycat behavior we've seen with layoffs and price increases in other markets, but it's hard to imagine that their costs have gone up 20%. Certainly their payroll hasn't.

There have been good reasons to flee Linode for a while now:

- Since their third or fifth or who-knows-which breach and subsequent fumble: https://news.ycombinator.com/item?id=10845170
- Since the announcement that they were acquired by Akamai: https://news.ycombinator.com/item?id=30352772
- Since they became "Akamai Cloud": https://news.ycombinator.com/item?id=34799273

Linode hasn't had a competitive advantage for at least a few years, and many would argue that their handling of repeated security incidents has made them a worse option than lots of competitors.

If you're still on Linode, do yourself a favor and make the time to find a new VPS provider.
An Agenda for Abundant Housing
With Privacy Pass they won't see more captchas, they will actually see fewer of them.
TOTP is only needed if you use very a weak password, which shouldn't be a thing with keepass.
Sucking up personal data to develop an ad profile is a tried and true strategy for them, and it's hardly surprising that they'd at least look into replicating that in the metaverse.
there's 4 things I want more than anything as far as transportation in the US goes

1. affordable, nationwide rail networks

2. affordable local public transportation

3. Expansion into walkable cities

4. range extended EVs, or EVs where it's trivial/cheap to get (either rent or buy) a range extender for long distance trips
Until apple builds a car I guess..

But they don't have a history of selling their platforms.
This is a fully general counterargument for why anything that is bad is actually good because it doesn't matter. "Places where air quality matters it is never sacrificed".
Put your money where your mouth is and do it then. Our lives are series of choices. If the choice you value is not the one you jave made, then make the right choice. Often we don't get what we want, no matter wjat we choose, but it sounds like you deeply want or need this since ypu are making the desparate act of asking strangers on the internet.
There’s certainly a not unreasonable argument that it is if you agreed to watch ads in exchange for getting something.

It is unfortunate for some that this does not apply to online content. Because though vendors of online content might like to pretend that such an agreement is in place, that agreement is at best implicit. No one asked me, and I agreed to no such thing, no matter the fantasies of of the ad suppliers.

So, no; the argument is entirely unreasonable, and falls down at its core premise.
I was a lot happier when I was working for a security tool vendor than I am now working in itsec on the customer side...
Hetzner is pretty good.
Makes sense. Akamai needs to make their $900M back...
The cheapest bikes have weird size pedal assemblies that don’t take “normal” ones and such - but the real problem is a cheap Walmart bike is $98.

A single derailleur can cost more than that! No wonder people just throw them away.
Fastmail | https://www.fastmail.com/ | Multiple roles | Full-time | ONSITE | Melbourne AU and Philadelphia US

Fastmail is a values-driven alternative to Gmail that puts people first. And that includes our staff! We have great benefits and a great team.

On the backend we use Debian, Bash, Perl, Apache, Consul, Cyrus, MySQL, Nginx, Postfix, Prometheus, and of course many other things. We host everything ourselves in physical datacenters.

Much of our software is open source, including our Javascript framework - see https://github.com/fastmail/ . We're heavily involved in the construction and maintenance of open standards, and of course you'll be working a lot with the JMAP protocol in most of these roles!

Philadelphia:

- Customer Support Agent

- Senior Backend Developer

Melbourne:

- Front-end Developer

- Customer Support Agent

- System Engineer

Full list of jobs and details about how to apply at https://apply.workable.com/fastmail-1/#jobs
Thanks, very interesting insight.
Oh yeah, just updated Vivaldi et voilá! AI artifacts in blurry videos! xD
I’ve come to appreciate that the last ~20% of the work takes 80% of the time and if I adjust my expectations I can usually get an 80% solution in 20% of the time.

If you cut with the grain you can get a surprising amount done in a short amount of time.

Depending on the project, I have a bunch of personal 80% projects that I’m happy with where they are.

https://wikiscroll.blankenship.io

I could add native language support for other wikis (some people have forked the project and done just that), but it would be that 20% work. I could expand my coverage beyond the “top articles” but it exceeds what I can track in git so I’d either have to use Wikipedia’s API (slow and offloads cost to Wikipedia) or roll my own DB backend. That’s part of the last 20%. I could update the repo to keep it “fresh” but I’d exceed the git object limit on GitHub and have to have some amount of long-running cron based automation. I choose to leave it as is.

https://audile.blankenship.io

I could store previously discovered albums, but I’d need a DB. I could return more than one album at a time, but I’d have to deal with rate limits and cache responses to take load off Deezer. These are all part of that last 20%, so I leave it with one recommendation per page load.

For things I plan to monetize or share with others I tread out into that 20%. Like https://persona.ink

For my customer contracts I share the same options with them. I let them know when we are cutting against the grain and where costs are going to balloon. I give them options to reduce cost by adjusting their expectations. I’m happy to charge them for the work, but I’d like to give them the chance to save on my time if they can live with the compromises.
It is a really nice minimal package with maximal software. I recently hooked one up to an 8x8 panel of WS2812 rgb LEDs and then found the WLED ecosystem which installs directly from browser (https://install.wled.me/) and has a web/mobile app front end to control the array, accept button inputs, integrate with iot home stuff.

1. Flash D1 mini from browser via USB
2. Solder 3 wires (5v+, ground, data)
3. Power up D1 Mini from USB
4. Have fun with some blinkenlights

WLED Project: https://kno.wled.ge/
> Looks like this is going to cost me an additional $1440/year for... nothing. Anyone have a recommended alternative to Linope?

My favorite hoster for years has been Vultr.com

Other alternatives would be UpCloud and DigitalOcean, I guess.
I think we should clarify that this push is for making it easy to use, not to develop. They are trying to capture the python-based ML community, but care a lot less about people who actually want to write code in ROCm than Nvidia cares about CUDA coders.
Ask HN: How come some articles I post don't have a “discuss” option?
It happens about once a week or so, seemingly randomly.
Besides the seemingly unfriendly ClosedAI, if I were their brand designer I would rename to PlusAI, given their ChatGPT Plus.

Later Edit: apparently there is already a plus.ai start-up with some self-driving technology, just buy them out for the name.
Digital Ocean already increased its prices recently, then laid off a bunch of people. So the meager support it used to have is now gone.

Word on HN is that it's getting bought by Microsoft. If that's true it makes sense that DO would go away entirely.
> prices will change by decreasing transfer fees and updating shared and dedicated plan rates

this is a stellar example of the dark pattern of passive user-hostile language.
Ride with GPS | Senior Backend Engineers needed for Rails and Mapping teams | Portland or Remote USA | Full Time | https://ridewithgps.com/about

We are the world's largest library of bike routes, and we enable cyclists to go on better rides, more often. We have a website and mobile apps that allow riders to discover the best riding in their area, and get turn by turn navigation using either our mobile apps or the bike computer of their choosing. Come join us in taking Ride with GPS to the next level! We have two openings right now:

- Rails / API engineer (about to close to new applicants): https://ridewithgps.com/careers/backend_engineer - Support new feature development for all our teams, and scale our API to our next 10 million users. Rails monolith, in addition to supporting microservices. Pragmatic, solutions oriented, high impact.

- Mapping Engineer: https://ridewithgps.com/careers/mapping_engineer - Rust experience strongly preferred. Build and maintain high performance map related tool chains, and work with our extensive geospatial data to identify the best areas to ride. Visualize all of our rides with high performance heatmapping code written in rust: https://ridewithgps.com/heatmap. Use our rider data to identify the popularity of roads in OSM, add as custom weights to the graphhopper routing project, enabling popularity based routing. If we had a skunkworks department, this would be it.

Instructions available at https://ridewithgps.com/careers. Send resume + cover letter to careers@ridewithgps.com with an optional brief paragraph about your relationship to cycling or the outdoors. Riding bikes is not required, but we do find it helps!
I've been happy with DigitalOcean, although they recently laid off their technical documentation team, which was terrible news. Otherwise, it's been rock solid and performs well.
Could be worse, you could be GM writing off your loan then selling your investment in Lordstown Motors only to have Foxconn step in to legitimize the business.
They do have a choice. If they follow the DMCA process, they have a safe harbor; if they don't they can be a party to an infringement claim.

It makes the most business sense to just follow the process in most cases, IMHO; but they can take a risk if they want.
I'm curious what kind of cost savings this is going to provide Apple with per-device.

Also are there other benefits like integrating onto the main chip or something? Or other business benefits?
That's a really anti-hobbyist move. With CAD losing value compared to USD, it means I have been paying more in the last year already. As a tiny hobby developper who has almost no traffic, lower egress fees mean nothing to me and the higher pricing means I'll just kill my projects. I guess they don't care about losing loyal customers and are shifting towards entreprise. It's a bit sad to sell your business to people who have no care for your original set of values.

We need a new independent VPS provider.
All (shimano) 8sp-10sp derailleurs are compatible (possibly excluding duraace, which has a different cable pull). Mountain and road. Almost all 11sp clusters (shimano, sram, campy) are cross compatible with derailleurs. The basic shimano hyperglide freehub will generally work with 8-11sp clusters, possibly requiring a spacer.

If you're willing to go friction (bar end), you can run a mid 90's 8sp Shimano 600 short cage rear derailleur on a 10sp 12-28 rear, with a 1x39 in the front.
Fan out a transcription job by splitting by silences, then using Modal Labs to fan out compute containers to process in parallel. Use it either as a CLI for local file transcriptions or deploy it to a server-less endpoint in one command.
Location: Toronto, Canada

Remote: Yes

Willing to relocate: Yes

Technologies: Next.js, React, Prisma, Sass (SCSS), Tailwind, Bootstrap, Figma, Docker, Kubernetes.

Résumé/CV: https://gdsimoes.com/resume_portfolio.pdf

Email: portfolio.gds@gmail.com

As a Full Stack Web Developer, I have developed expertise in JavaScript, TypeScript, and Python, as well as the Next.js and Astro frameworks. I have worked on numerous web applications, and if you are looking for a passionate, skilled, and dedicated developer to join your team, I would be thrilled to hear from you.
I wish for elected politicians to do what we elected them to do, which does not at all involve bribery or globalist conspiracies.

I'll grant that California is in some ways a negative model. For example, I hate that the NIMBY capture that has been a factor in driving prices up in California has started to show up in Texas.

Oh yeah, that's another bad assumption you made. I live in Texas, a place people often move to from California in part because it's growing rapidly, since NIMBYs haven't yet captured the legal system here. Of course, it's fun to see people who moved here within the last couple of years speak up at city council meetings against new development, because they're trying to "California my Texas" by bringing their NIMBY nonsense with them. They struggle to explain why the house that was built for them within the last three years is good, while the new houses are bad, of course.
SpaceX Hall Thrusters
> You'd like to pay money to be assured that you're right?

I know I'm right, I'd pay money to see the embarrassment of the presumptuous Clean Code people who think that they can write maintainable code better than those who write software that matters (like Linux or Postgres, as mentioned before).

> So, your thesis is that writing a terminal emulator - software which is pretending to be hardware that existed 40+ years ago, shows that this person is great at handling surprising requirements changes during development ?

No. My thesis is that this guy can write code better than people who are supposed to be in the top 1% of the developers (well, it's Microsoft, not a web app sweatshop).

He works on games, where you not only have to iterate very quickly but you also may need to completely change direction halfway through the project. They can't have an "unmaintainable mess", otherwise they're not shipping the game, so your premise is wrong from the start. Also, games are much more complicated to program than the average Clean Code Crud app project that Uncle Bob bikesheds on.

> An insistence that the only thing we can measure is performance and specifically speed and therefore that's the only thing that matters is nonsense

Nobody said that, how are you coming up with this stuff?

The point Casey was making is that you're paying a significant performance penalty (speed, in this example) by doing Clean Code, which is true. You're denying yourself very basic performance techniques if you close your eyes and pretend to not see the internals of each shape.

> Try it, first add the hollow box example shape,

What if you don't have to? What if those are all the shapes you have to support? But there's ten billion shapes, you chose to do Clean Code and now you have slow code for zero benefit. Ouch.

On the other hand, if you want to add more shapes then the problem you're solving changed, and therefore you need to change the code (not really the tragedy you're making it out to be). I don't get this obsession, "code should change as little as possible"; it's actually a "careful what you wish for" moment because class hierarchies tend to become very rigid and difficult to change. Good luck making significant changes when your 100k+ loc program relies on a particular class hierarchy being in place.

> the iterators produce exactly the same machine code

That's great but it seems you're trying really hard to interpret Casey's video in bad faith. The way I understood it, he used an old fashioned for loop to avoid detracting from the main discussion, as not everyone knows what are the internals of STL iterators and how they translate to machine code.
It was a similar moral dilemma question to ChatGPT circulated on Twitter a couple of months ago, maybe the first one that gained attention. You say that a nuke will go off in the center of New York City unless you defuse it by inputting a password that nobody will see, which is a racial slur. CGPT says not to defuse the bomb, even though it understands that millions will die.