skysight-inc/HackerNews huggingface dataset:
Yupp, it can! I've been able to get it to do simple examples. I was able to get it to print out a 'sum of digits' style function. I was then purposefully placed a silly bug in it by hand. I then ran the code through a 'please code review' style prompt, got a number of decent suggestions out. Using those suggestions, I was able to prompt it to refactor the function to: fix the bug, add documentation comments, include type definitions, and even add tests!.

A simple example, and not 'perfect', but it's quite impressive. Even a simple case of throwing your code 'over the wall' to the AI for review before going to an actual person is a huge time-saver.

The token size limit is the killer here, it means larger files, let alone projects, can't be fully processed in a single prompt.

Initial code produced:
```
def sum_of_digits(n):

if n == 0:

return 0

else:

return n % 10 + sum_of_digits(n // 10)

```

I didn't save the exact code review, but essentially it was just a list of suggested code changes. The prompt was:

```
prompt =
f'Python3. Act like you are a senior engineer writing a code review comment on the code. Write at least two specific changes to make, being sure to check for any errors first: {prompt}. Be as concise and correct as possible, and also be sure to write in a way that is easy to understand.

```

The resulting output code was:

```
import unittest

def sum_of_digits(n):

if n < 0: # Added base case check for negative numbers

return None

elif not isinstance(n, int): # Check type of argument passed in

raise TypeError("Input must be an integer")

elif n == 0:

return 0

else:

return n % 10 + sum_of_digits(n // 10)

# Unit tests using built-in test suite

class TestSumOfDigits(unittest.TestCase):

def test_sum_of_digits_positive(self):

self.assertEqual(sum_of_digits(123), 6)

def test_sum_of_digits_negative(self):

self.assertEqual(sum_of_digits(-123), None)

def test_sum_of_digits_type(self):

with self.assertRaises(TypeError):

sum_of_digits('abc')

if __name__ == '__main__':

unittest.main()
```

Edit: trying to cleanup hn formatting for readability
Turning my hood on full blast every time I use the burner has become a habit for me. I also luckily have my hood attached to an external wall which is directly blowing outside, which I know many don't.
Only if 'a lot' means 'it would look like clinically insane hoarding if they were anything but plants'.

(At sane levels, the effect is negligible.)

Cf. recent discussion on amount of daily rosemary growth it would take - https://news.ycombinator.com/item?id=33577929
I grew up BBSing in Southern NH where you could not make a free call from Manchester to Nashua or Concord but it was a free call to towns in between those cities like Hooksett or Derry and a free call from those towns to adjoining cities.

One cheat we developed was a script that would make the BBS hang up, program the call forwarding, wait for a ring, then remove call forwarding. This way the caller could call a local BBS, choose a BBS in a distant city, hang up, dial again, then reach the second BBS.

It never really caught on for a few practical reasons, one was that somebody else could dial the first BBS when call forwarding was active and end up reaching the wrong BBS.
To my knowledge, they make money off of selling SAAS software here and not ads. It being cloud based is done to get recurring revenue. Office and Photoshop hit a point where it will satisfy vast majority of customer needs a while back. That's when the recurring payment model was put in place. To deal with piracy and paid customers not updating their software for years.
Maybe people will decide to have two cars, then: gas and electric.

Point is: it doesn't look good for the EV industry. Saying the oil industry is ugly doesn't help.
It's both funny and sad to see how framing these problems in PC culture brings more problems: "machismo is bad but pushing cultural norms..."

Take another look at the problems described: physical assault, illegal drug use, theft, robbery, murder, child neglect. These things have nothing to do with cultural norms and they have nothing to do with machismo either. These are crimes against the law and the human rights of the victims. These crimes can have any gender as the criminal or the victim. And they have any number of reasons from mental health to poverty and profit seeking, which again have nothing to do with social norms, toxic masculinity or any other PC concepts.
I think documentation will be one of the first places we see it used a lot. I say this because today I'm writing documentation about how to use sprints, Jira and projects within our company today. I've written over 50 percent with the help of ChatGPT. Lets me focus on the less boring written stuff.
It's just so much more mediocre content though; this is the last thing we need in a sea of interconnected beige. The value is just an AI-equivalent of experts-exchange.com
Microcenter will ship items purchased online. You have to select "Shippable Items" from the "Your Store" drop-down in the center at the top of the page.
An interesting idea but really then aren't you just recreating reddit to an extent. The things people like or that are popular are upvoted because the voter agrees whereas what is unpopular gets down voted regardless of veracity because people like the way it sounds.

Beyond that a once popular website or producer says or does something that offends the sensibilities of the internet crowd and then everyone goes and down votes their results because it violates the current ziegiest
"machismo" is seen at a young age in boys across every human culture studied, boys fight more and play competitive games while girls naturally play more collaborative games.

In theory I guess it makes sense to try and curtail human nature for the benefit of society, but on a fundamental level I have a problem with tax payer money being used to run government pysops on their own civilian population to change behavior
Get a new server? It’s not as if they make it hard. I replaced my two €20 instances with one new €40 instance when they got price increases to €33/server or so.

Of course now that’ll also increase to €50, but yeah, war.
Largely, that boils down to Windows never really having had a package manager like Linux distributions had, and not really an equivalent to the concept of "a file belongs to exactly one modular, versioned package".

As a consequence, Windows has to check all of the files under its management if they are still the same as in the original installation or if they got touched by one of the dozens of Windows Update packages somewhen along the path, and if yes by which update package, and what that means for the compatibility between updates, and what effects that has in turn on the update installation order. Then it has to check for each potential update candidate if there is a localized version available, do a final check again if it actually can apply each update because some of these have conditional checks... oh, and some of the updates depend on Windows components being installed, so this has to be checked as well, oh and then it needs to trawl through the hot mess that is the database of drivers installed on the system and the hardware it has encountered, and to check if there are updates available for that. And at least the last time I looked (Win7 era) it also was possible to integrate MS Office and Visual Studio updates into the MS Update process, not sure if that's still the case today, but back then that also added to the discovery process.

Windows is a hot mess of a lot of legacy garbage. Some of it got cleaned up a bit (e.g. refactoring stuff into components), but it's still nowhere near what almost all flavors of Linux sans buildroot offer.
>Tomorrow's breakfast causes todays shopping.

This is a logical inconsistency. Tomorrow's breakfast does not yet exist, only your "knowing" about it. Your thought has already happened today, therefore "knowing" you will be hungry is the true cause, not the potential for breakfast itself.
IMO for now it is the next iteration of stack overflow/google. I will 100% use this to ask a question on how to do something at the API/function level because it gives really good results.

Ex: "How can I create a webserver in python" will generate all of the boilerplate instead of me going and looking at the flask documentation.
Just this week Amazon shipped me a tempered with product similar to the one in the article (although $21 not almost $700). Shipped and sold on Amazon, and then rejected my review where I warned others and provided photos (actually both of the last two, negative, reviews I've tried to post got rejected).

Ordered some LEGO for Christmas. On arrival someone had opened the box, removed the LEGO, replaced it with other random LEGO pieces (to make up the weight?) and re-sealed it. This then, I suspect, got sent back out to a new customer without Amazon tracking that it was a previous return (or there is some other issue with their supply-chain).

Either way hurts confidence with Amazon, and if Amazon are going to accuse the next victim of return-fraud, that isn't ok. Amazon needs to start tracking previously returned items that get sent out again, so they can see the origin of the fraud.
I like this quote by Andrea Dworkin:

> Men who want to support women in our struggle for freedom and justice should understand that it is not terrifically important to us that they learn to cry; it is important to us that they stop the crimes of violence against us.

(other here
https://en.wikiquote.org/wiki/Andrea_Dworkin
Using ChatGPT as Grammarly Replacement
We picked up the Aranet 4. Things were fine until we replaced our windows with fancy new ones. Our air quality plummeted, CO2 > 2200.

We got a new air exchanger installed, connected to our existing forced air hvac system. It runs at a low speed 24x7, which keeps things at a reasonable level.

It has a few settings like: continuous, 20 minutes/hour, 40 minutes/hour, and "humidity control". Nothing for CO2 control though. I have aspirations to hack the control module and make it care about CO2, but I've also got two kids and a startup so who knows how long that will spend in the backlog.
They didn’t revoke anything. You still are entitled to the license. You just need to take an affirmative action that you’re a total tightwad jerkoff and they’ll provide the license key you’re entitled to.
This is the most underrated problem with CRDTs:

> Both paths will allow us to ensure that each replica converges on the same state, but that alone does not guarantee that this state is the “correct” state from the point of view of user intent.

In context of richtext editors, it's easy to converge a rich-text JSON into a single state for all collaborators. What's difficult is to ensure that the converged state is renderable as richtext. For example, is there a table cell that was inserted where a column was deleted?

I wrote a summary of this issue with CRDTs here - https://writer.zohopublic.com/writer/published/grcwy5c699d67... for those interested.

While I'm optimistic it's not impossible to solve, it's surprising why most CRDT literatures don't go into these details on correctness. Appreciate the author for putting this out.

PS: We currently use OT for collaboration in Zoho Writer (https://writer.zoho.com/). I'm looking out for practical CRDT ideas that works well with richtext.
It matters for consumer behavior, I think.

In my opinion, the current energy crisis in France is more damning for the vehicle electrification plans than what you mentioned for gas cars.

One thing is the government telling you to buy EVs and then totally failing to deliver the "E" of the equation.

Another thing is an event caused by third-parties.
It's a shame, this seems like a really great idea, but I just tried to use it and for a recipe from a book I own it comes up with:

> We’ve helped you locate this recipe but for the full instructions you need to go to its original source.

Which I guess makes sense, how can they verify I own the cookbook, but still very disappointing.
Explain why short hauls make sense. Your post doesn't show it.
Special to the universe. As far as we can tell,so far we are the only planet with life of any kind.
Marketers here used metaphorically not literally.

People/bots hyping these tools is what I meant.

I wish people here would be more attuned to the context of comments before jumping to conclusions.
Formal quotes were required for the company I was working for at the time, company policy.
> Or is it all bogus (with justification), and we're fine?

This is mostly my take. We are at the stage of truck drivers ten years ago who might have been freaking out about self-driving taking their jobs, and here we are in 2022 with a truck driver shortage.

I don't think GPT can be useful to the point of replacing software engineering without a consistent mental model of itself, time, and the world, and I predict it will approach the limits of what advanced-search pattern-matching can do without getting anywhere near those AGI capabilities.
There are more expensive cars out there than even your top-of-the-line model. I’m not sure what point you are trying to make.
The US has way more freight rail than other countries: https://www.nationmaster.com/nmx/ranking/volume-of-rail-frei...

Other countries need to use trains for bulk like the US does.

Rail is just a lot more complex to plan for. You still need trucks for last-mile transport, so for the typical short haul it sometimes makes more sense to just drive to the destination directly. Then transporting by train just takes longer which isn't always acceptable. Sometimes you just need things there today/tomorrow.
Same - I'm sympathetic of his desire to recapture a revenue stream for the product, particularly as the license is only 20 dollars.
FTX's European Subsidiary Was Built on Top of a Binary Options Scam
How does an autonomous car not need to be parked? The vision that seems more realistic to me is that lucrative areas would have traffic jams full of empty self-driving taxis circling around waiting for fares.
Sometimes you do a perfect job, and sometimes you do a bad job perfectly.

But to avoid any more wordplay: Sometimes you need to use a flawed technique to achieve an end. You can execute that flawed technique perfectly, but that won't make it a perfect job.
> I have a nice/fun/convenient commuter car that hasn't needed any maintenance and the trade in is higher than I paid for it. Is it for everyone? Is it for everyone? No. But that doesn't mean there is a void in value.

I'm sure you have reasons for downplaying this, but I would follow this with "and told them, in your face losers", or something to that effect.

Saying "saving money and hassle" isn't for everyone is suspicious to say the least. Why wouldn't it be for everyone?
The blow up with credit default swaps in the 2008 crisis was one example of a failure that was large but looked even larger than it was before the facts got in.
I feel like this is something someone will read, think ‘wait, we don’t?’ and then implement in an hour.
> These days I go to a store and go to Amazon to check reviews and then buy it from the store.

Why? Where I live Amazon has way better availability of products. The local stores might have a single model of anything I want while Amazon has dozens. If I'm looking for the best product that matches my requirements, I never check local stores because it's always a disappointment.

Maybe if it's a recurring purchase and the local store has a decent price (it doesn't need to be extremely better), I'll switch to buying from them. But that's rare.
The amount of paranoia and fear mongering over gpt is insane. Firstly you don't get paid to churn out lines of code. You get paid to build, maintain and own systems. Secondly GPT is impressive but it is in the end a statistical matching machine prone to constant errors. It's very good as a tool to help humans but by it's very nature it's a terrible tool for automation. Compilers, high level languages and infinite free public libraries are far better tools to automate programming than GPT is. If your job is something like taking an English language question from someone and writing a short script for them in a programming language then I might be worried. But for the vast majority of programmers that's not the case
Looking at the chart Bogotá has an annual daily mean of 14.4°C, and is fairly consistent throughout the year. Berlin's is 9.9°C with hotter summers and colder winters. To make a definitive statement we would have to know whether spikes of hot temperatures or consistent warmer temperatures are worse for violence.
It is not fair but it is understandable.
So basically the days of people wanting to pay a premium for Tesla are over?
> That said, this is basically what mobile developers do constantly. When you buy a "lifetime" license the software basically gets abandoned and a new version comes out where you get updates.

While I never encountered this (there simply aren’t many apps I use), I regularly encounter this in completely free apps. Like my supermarket’s app. There’s a new version, that’s almost identical, slightly rearranged interface. Only one of them gets updated now. What?
Half-agree. It's like having a very agreeable, inexperienced intern who googles everything.

BUT (s)he also works tireless, googles 100 pages a second and has infallible memory.
Taco Tuesday Eve.
Building forms in React can be a hard and repetitive process. That is why form libraries are there to help out. In this post, I discuss the challenges a form library should aim to solve.
That's civil war talk right there... :)
Ask HN: Recommendations for books and tutorials on Theory of Computation
Looking for some good recommendations to learn theory of computation from. Planning to learn it in the christmas break.

I'd appreciate all types of recommendations. Books I need to pay for and buy are fine. Recommendations for online tutorials and articles are also fine. Thanks!
In multiple cases, these were not parents, or didn't even have kids in the schools they were protesting. This was an organized, coordinated movement to disrupt board meetings and intimidate board members.
The old model worked for decades though. For them and their user's, subscriptions offer a low cost entry point which was always a challenge at their full price point.
Also, it does not respond correctly in my experience.

Q My friend has 2 tokens and I have 6, but I owe one to the same friend. There is a toy that costs 7 tokens. Can my friend and I afford to buy it?

A No, your friend and you cannot afford to buy the toy that costs 7 tokens. Even though your friend has two tokens and you have six tokens, you owe one token to your friend, so you only have five tokens available to spend. When you combine your friend's two tokens with your five tokens, you only have a total of 7 tokens, which is not enough to buy the toy that costs 7 tokens. In this case, your friend and you do not have enough money to buy the toy, even though you have a total of seven tokens when you combine your individual amounts. It is important to remember that when combining the amount of money two or more people have, you should add their individual amounts together, but also take into account any debts or obligations that need to be paid. In this case, your friend and you do not have enough money to buy the toy because you owe one token to your friend.

The key sentence is still beyond absurd: "When you combine your friend's two tokens with your five tokens, you only have a total of 7 tokens, which is not enough to buy the toy that costs 7 tokens."

(It may be possible that it simply wants to be consistent, and since it got it wrong once, it will stay with the same answer in the same session just because...?)
This is already an issues when global/regional payment processors start to apply either their local law or questionable company policies in the whole region or globally.

Payment processors being a near monopoly, this has a disproportionate effect.
I'm guessing it's because of memory access.

The 6510 processor can accesses memory only on every other clock cycle. So half of all clock cycles can be used by the VIC to get display data out of memory, without fearing contention with the CPU.
But this means that pixels must be output at the rhythm of the processor's clock. If you wanted to make the pixels 10% wider, you'd have to slow down the clock driving the VIC, but then it wouldn't be able to interleave memory access with the processor anymore.

Not entirely sure this is the true reason since my knowledge is patchy, but it's my guess.
Shared documents have been utterly game-changing. I never want to go back to mailing documents and presentations around and having to merge conflicting comments together again.

ADDED: And that's not even counting the fact that I can access my docs from multiple computers without worrying about shared network storage, etc.
>aren't you just recreating reddit to an extent

there are tons of ways to prevent that by weighting votes and only taking a random sample. SEO is basically a war where SEOs find a way to exploit Google's algorithm and Google tries to respond.

Backlinks were Google's original solution to keyword spam that made other search engines suck, they didn't expect people would create entire sites or pay other websites to send links to them so they could rank higher. Backlinks were themselves considered to be "votes" for quality similar to citations in academia. The problem is the barrier to entry to make a site and link to it is high, so SEOs themselves are often the only ones to do it. Adding some sort of voting mechanism would allow actual readers to give an opinion on quality, although you'd probably see SEOs pay people to vote on their link via a VPN switching IPs, so only people with established Google accounts could be allowed to vote. Obviously its a huge challenge, which is why Google is worth hundreds of billions for even partially solving it
For humans, this is science. It's hard, time-consuming, often expensive and limited, involves ethics and consent, and gets a lot of wrong answers anyway.

So I guess we need to get to the point where you give an AI a prompt without a known answer, and instead of confidently spewing bullshit, it can propose a research study, get it funded, find subjects, and complete the study.

Of course, there are easy forms of "science." I just asked it "Is it cloudy in Dallas?" It answered:

It can be cloudy in Dallas. The city experiences both sunny and cloudy days throughout the year.

That is true, but not an answer. It is cloudy and I can conduct the very simple experiment of looking at the sky to get that answer.
Curious what a credit card chargeback would accomplish, I have had mixed results with that
I think you've missed the poetry.
No, this is what happens when each step in the sales chain is not held accountable. The only cure for this is to demand each middleman validate and be held responsible for maintaining product integrity. Only when malefactors are identified and removed from the sales & distribution process can buyers hope not to be cheated.

The problem today is nobody is guarding the henhouse. The fox is having a field day. (Or in this case, it's Fox Books from "You've Got Mail".)
I don't see why people are so attached to the pi when much more capable computers - 2013/14 era used Intel NUCs or Mac Minis - are available for a hundred bucks on ebay. Maybe lots of people are using the pi for low-power-draw projects but if people are running a pihole and other services on them you might as well go for the other option.

There's also the QUARTZ64 boards from Pine64 which are definitely available and include fun things like a neural processor: https://pine64.com/product-category/quartz64/