skysight-inc/HackerNews huggingface dataset:
It's much better if you actually provide the context. Here's a better prompt that's mostly just a copy of the advent of code. Only the first two sentences are changed (mainly because the problem doesn't mention anything about files).

"""
The file named input in the current directory has a list of numbers in it, one per line. Each number
indicates the depth of the sea floor scanning outward from a submarine.

The first order of business is to figure out how quickly the depth increases, just so you know what
you're dealing with - you never know if the keys will get carried into deeper water by an ocean
current or a fish or something.

To do this, count the number of times a depth measurement increases from the previous measurement.
(There is no measurement before the first measurement.)

For example, suppose you had the following report:

199
200
208
210
200
207
240
269
260
263

In the example above, the changes are as follows:

199 (N/A - no previous measurement)
200 (increased)
208 (increased)
210 (increased)
200 (decreased)
207 (increased)
240 (increased)
269 (increased)
260 (decreased)
263 (increased)

In this example, there are 7 measurements that are larger than the previous measurement.
"""

--- CoPilot Output

Synthesizing 9/10 solutions (Duplicates hidden)

=======
Suggestion 1

import sys

=======
Suggestion 2

def main():
"""
Main function
"""
with open("input", "r") as input_file:
previous = int(input_file.readline())
increases = 0
for line in input_file:
current = int(line)
if current > previous:
increases += 1
previous = current
print(increases)

=======
Suggestion 3

with open("input", "r") as f:
lines = f.readlines()
lines = [int(line.strip()) for line in lines]

count = 0
for i in range(1, len(lines)):
if lines[i] > lines[i-1]:
count += 1

print(count)

---

Suggestion 1 probably completes into something reasonable eventually

Suggestion 2 works if you add a call to main()

Suggestion 3 works as-is

---
I think it was MKBHD who seems to know his stuff
I spent about 50 hours manually doing something similar a few years ago [1] but it was literally made by taking hundreds of 360 degree panoramas every two inches inside a room on a fixed path. The end result was awesome but it was so time consuming. It’s crazy what they are doing now using ML with a few input images.

[1]: https://forums.tigsource.com/index.php?topic=69545.0
Why do you hate VR controllers?
When was there ever a non paid version of Windows?
I don't see how you can call them scapegoats and that someone else is "saving face". That implies someone else did something wrong, and they're taking the blame for it, so someone else doesn't look bad. What is that and who is that someone?

The management of SVB and FRB gambled and lost. They have no one to blame but themselves. Events that followed seemed like reasonable steps to take to clean up their mess.
Downvoting tells you, that this kind of comment is not something the community wants. Of course, I'll avoid posting such comments.

I'm not going to evangelize for seeing other positions, when the majority seems to prefer one-sided views.
There’s a difference between violation of working conditions like working hours/underpayment, and forcing people to view the kinds of pictures they were forced to see ad nauseam
Hegel could be said to be obscure. Kant is mostly very clear in what he says, but he writes overly long and unwieldy sentences and uses tons of obscure technical (and now out of use) terminology.
seeing great use of midjourney with adobe as a chaser
Nancy had an astrologer and psychic, Jean Dixon, that she routinely consulted. Not aware of any evidence it influenced Bonzo, but everyone's partner has some weird thing, right?
Or they just burrow straight into wood... Or just find an empty hole that looks cozy. I drilled a bunch of holes in a post by my door and now I have some little buzzy neighbors :)
Because you don't have Windows?
probably binance doing the scam
They have a training process at the beginning that learns your eyes. It asks you to ‘point’ to various points in space. I’d imagine it would be able to detect a dominant eye with that, and prefer it over a slower or non-tracking eye.
School shootings are not like plane crashes, they are like plane hijackings by suicidal terrorists. (Because that's what they are.)

There are now kids who have loved through two school shootings. You're downplaying this significantly. Find a way to keep guns out of the hands of domestic terrorists and I'll listen to your concerns about phones but not before.
VR gaming is a niche. Racing and flight simulators are very good; other software is typically mediocre. But VR games do not work with AR glasses.
Lumenate App: Deep Psychedelic Mindfulness
I think to win long-term in any market, it helps tremendously to win the hearts and minds of the “elite” users first. You see this in fashion, in cars, in tech, even in investments.

These top / early / elite consumers tell the rest what to buy. For example, the non-techies in my life use (MS) ChatGPT only because I told them about it and also told them it’s the next big thing.

I will also add that I think the majority of investment money is in the hands of long-term thinkers; a lot of this money is managed on behalf of others. It would behoove every CEO to make the power users happy over the long term.
The "balloon shootdowns" during the Ohio toxic chemical train derailment.
> I think you’re entering tinfoil hat territory here.

What, specifically, do you regard in my comment as "tinfoil hat" ?

( eg: my remarks about ocean tempreture data acquisition are supported here:

https://en.wikipedia.org/wiki/University_of_California_Divis... )

I've worked four decades in exploration geophysics on global scale surveys of entire countries and I've met a number of my predecessors that worked on ocean tempreture data aquisition and atmospheric sampling.

The larger data aquisition surveys are not undertaken at the behest of "Catastrophic climate doomers" - they are funded by deep pockets that can sustain a burn rate of often a million+ USD per day (sub sea seismic modelling, satellite constellations, etc).

The data aquired shows that global climate is changing in a manner consistent with the physics first discussed a century ago.
One of the brightest guys I ever worked with believed the earth had enough food and resources to support ONE TRILLION people. Just because you're one of 1000 people in the world that understand how to make a qubit doesn't mean that domain knowledge transfers. Feynman knew this (Degrasse Tyson kinda doesn't).
You need special controllers for VR games, ordinary ones won't do. The standard controllers are just for conventional games.
Sorry, how long is this supposed to take? You're saying we're going to be dominated by aliens and must be prepared for that? That's not how conquests normally work is it? There's no consent involved. And you're also saying this 'preparation' has been happening for 70 years? How long have we got before they actually arrive and how much prep do we need?

This is all complete bollocks
A related question might be why Apple didn't make a business offer to Ueyama-san to improve mold/sold further, e.g. by offering him a position or by buying his company. But my guess is Apple want all the development done in-house.

I think this "Apple's new linker is in the same league as mine. Great job!" response is full of tact and grace, considering Apple just undercut his business.
I hope you have some very good data correction to go with that data transfer. Beaming light/radio into space is going to get a ton of interference and loss.
where Woketopia began, is where it falls first too
Founder Personality and Entrepreneurial Outcomes
If you care about speed you would probably be using ripgrep rather than grep anyway, but doesn’t `LANG=en_US.UTF-8` give a similar speed on modern systems without any compromise on consistency of sort ordering etc and support for extended characters?
Result builders are pretty popular in third party libraries, too. There's good use of them in Pointfree's libraries Parsing (https://github.com/pointfreeco/swift-parsing) and Composable Architecture (https://pointfreeco.github.io/swift-composable-architecture/...).

A quick search in the package index also finds things like these:

- https://swiftpackageindex.com/davidcaddy/DCSettings

- https://swiftpackageindex.com/tdeleon/relax/2.1.0/documentat...

- https://swiftpackageindex.com/mkj-is/PathBuilder

- https://swiftpackageindex.com/Saelyria/Artemis

- https://swiftpackageindex.com/FluidGroup/MondrianLayout

etc.
> Technology startups are essential to the global economy. Yet, predicting their short- and long-term outcomes remains difficult. This is particularly true in the early stages of a venture’s lifecycle when little to no performance data are available. We offer large-scale, ecologically valid evidence for the importance of a startup feature that is available from the moment of conception: founder personality. Our findings suggest that while some traits consistently predict startup outcomes across all stages (i.e., emotional stability), others reverse their associations with entrepreneurial outcomes as the startup matures from conception to exit (i.e., conscientiousness). By doing so, they offer novel insights into the role of founder personality in technology startups.
The "Snowden, 10 years on" banner on this article does stands out

Snowden, 10 years on
A decade ago, we published the Edward Snowden revelations that forever changed our relationship to our privacy and to our governments. Since then, we have defied the powerful by landing scoops on everything from Big Tech to surveillance, offshore banking to cellphone spyware.
..
..
Whereas we have the gimbal video, we don’t have any radar data to look at.

If we’re going to rely on pilots’ conversation as meaningful data, I started to get the impression from the gimbal video that the pilots are fucking around and know it’s a plane, and when they say a “whole fleet of’em out there” (the guy appears to be containing laughter as he says it) they’re sarcastically referring to all the other passenger planes in the sky.
Locale is process-wide, so yes. But they shouldn’t; libraries should not call setlocale(). If it does, you should probably report it as a bug.

It’s like if a library called chdir(); there are some things which libraries should not do, and setlocale() is one of them.
If banning things russians might use is not the redistribution of consequences, you should have no problem banning encryption. You are the only one moving goalposts here. Again, I can easily construct an example in which the ban would be effective, and you would still not support it. Without double standards you would have no standards at all.

Nearly all services the government currently provides apart from courts, military and police could be paid for by its consumers proportional to their consumption. Of course, people like you oppose that model because it forces you to pay your fair share instead of offloading the cost of the services you use to others.
I don't understand your pessimism. If Apple finds and fixes a gap in Wine's coverage/compatibility, those changes will necessarily be open source. Quite simply, any work which Apple does that could be useful to the wine project will be open source.

Obviously it would be nice if MetalD3D was also released under a better license, but it's hardly as though this omission is a big loss to the wine project.
You're not completely wrong but you're heading that way. Almost every public and private school in the country does shooter drills now. Kids who haven't been through a school shooting suffer PTSD. They are genuinely afraid that they'll die at school and this is a reality they hear from many adults.

What you mean to say is that not 100% of kids will suffer through a school shooting and that's true but I'll be damned if going to opt to remove phones from kids at school until the likelihood inverts, year over year.
Quite impressive, able to run a LLM on my local mac

% ./bin/gpt-2 -m models/gpt-2-117M/ggml-model.bin -p "Let's talk about Machine Learning now"
main: seed = 1686112244
gpt2_model_load: loading model from 'models/gpt-2-117M/ggml-model.bin'
gpt2_model_load: n_vocab = 50257
gpt2_model_load: n_ctx = 1024
gpt2_model_load: n_embd = 768
gpt2_model_load: n_head = 12
gpt2_model_load: n_layer = 12
gpt2_model_load: ftype = 1
gpt2_model_load: qntvr = 0
gpt2_model_load: ggml tensor size = 224 bytes
gpt2_model_load: ggml ctx size = 384.77 MB
gpt2_model_load: memory size = 72.00 MB, n_mem = 12288
gpt2_model_load: model size = 239.08 MB
extract_tests_from_file : No test file found.
test_gpt_tokenizer : 0 tests failed out of 0 tests.
main: prompt: 'Let's talk about Machine Learning now'
main: number of tokens in prompt = 7, first 8 tokens: 5756 338 1561 546 10850 18252 783

Let's talk about Machine Learning now.

The first step is to get a good understanding of what machine learning is. This is where things get messy. What do you think is the most difficult aspect of machine learning?

Machine learning is the process of transforming data into an understanding of its contents and its operations. For example, in the following diagram, you can see that we use a machine learning approach to model an object.

The object is a piece of a puzzle with many different components and some of the problems it solves will be difficult to solve for humans.

What do you think of machine learning as?

Machine learning is one of the most important, because it can help us understand how our data are structured. You can understand the structure of the data as the object is represented in its representation.

What about data structures? How do you find out where a data structure or a structure is located in your data?

In a lot of fields, you can think of structures as

main: mem per token = 2008284 bytes
main: load time = 366.33 ms
main: sample time = 39.59 ms
main: predict time = 3448.31 ms / 16.74 ms per token
main: total time = 3894.15 ms
Security mitigations given everything you can run has a fixed address sounds cool, but wouldn't the copy-on-write semantics kind of break that? I guess you might still be able to do something though.
One of our best family friends is a PhD in meteorology and her graduate research was on aggregating temperature data collected from global weather stations.

In her own words, the data was shit and full of gaps, she wasn’t a software engineer yet self-taught the necessary python to create horrible kludge scripts that turned it into “something”, and was given a grant from the NIH for her work.

The end result was a single vector trumpeted by her ivy-league school that added “yet more evidence” to the consensus of climate change, and she is now a tenured professor in the UC system. Total garbage end to end.

I love her to death but get her a few cocktails deep and she will freely admit it’s a grift.
Most people care a lot more about animals than humans. I've never seen anybody take a stay injured human home and nurse it back to health
As a Canadian living in the US: Canadian tipping culture is equivalent to the US. At least in Toronto that is.
You're right, I totally missed they have tsconfig which include jsx preprocessor now. Too bad the devtools contributor documentation is not updated anymore, mozilla devs are probably stretched too thin to update obscure docs these days.
We know that we are living in an icehouse phase, and earth will return to a greenhouse in time, irrelevant to us.

"Earth has been in a greenhouse state for about 85% of its history... Earth is now in an icehouse state, and ice sheets are present in both poles simultaneously."

https://en.m.wikipedia.org/wiki/Greenhouse_and_icehouse_Eart...

This change would be extremely traumatic for humans, as our whole species existence has been in an icehouse.

The good news is that we have only raised co2 levels by one hundred parts per million (to 450) in the whole history of industrial output.

Our impact is not as great as we think, as the cretaceous saw co2 at 5,000-15,000ppm.

If we want to hold the earth under 500ppm, I think, with our ingenuity and growing knowledge, that this can be done.
Awesome. If you dont mind me asking, what sort of dashboarding/visualization software do you use? Highchart homebrewn web apps? Some closed source auto software? What's that world look like? Always been curious about it from a front-end perspective.
You Need Black Pixels
I've never seen a more perfect example of non-ironic American exceptionalism
I don't understand the point you're trying to make. What is even the point of generalising something to the Anglosphere if it is only applicable to North America?
Well, they're obviously sentient.
> literally everything is on the table

Right, they could have ridden dragon-unicorn hybrids through a magic portal made from the dust of black hole centers.

That's what you mean when you say "literally everything is on the table."

Or, start drawing lines for me if you disagree.
Once I have an actual working piece of software, I will announce it on HN.

This framework is not meant to be shared really; it's more building my own software stack from scratch, kind of like [1].

[1]: https://www.youtube.com/watch?v=443UNeGrFoM
Bill still installing Movie Maker
Try it with JS disabled, and you get a slightly cleaner experience.
> I'm surprised you mention China positively in this regard,

Apologies, I meant historically China, not china of the last 50 years. Just for context "the west" has sort of existed since renaissance only a few hundred years. Before that it had more common with some religions theologies and warring states. Meanwhile in arabia, china, persia and india there were huge cultures and civilizations far more advanced. They all had markets. Land rights however have always been a social question. For instance in britain it was all owned by the crown - a shepard for instance was naturally limited by how many sheep they could look after, a trade person limited by how many people they could see with their craft. Enter the corporation and enclosure and you can have flocks of 10,000 sheep etc. It doesn't necessarily mean there's more sheep it means "possession" now has some formalism governed by paper and the state, rather than some direct proximity and socially designated responsibility or custodian ship for a flock or area. etc. The later is how a great deal of cultures functioned and they had markets (what was the silk road?) Capitalism has always claimed "it's the market" ideology, but what actually distinguishes capitalism from all other societies is the creation of capital and the creation of false commodities in law (land, patents, etc)
The headline feels like from an alternate 1940s timeline.
If you're ok with everything else that comes with windows, that's fine. I'd rather not. I don't want to deal with its shell, update schedule, ad pushing, etc. for example so the emulator is a better approach for me.
Alternatively phrased: bee "sentimental" is different from human "sentimental" - we make self sacrifices to help other individual humans, bees make (self & other individual) sacrifices to help the hive as a whole.
What's your side income stream? Wants to know other ways
Mine is : Stock Trading
Thanks for the correction. I did not know this.
He even has some patents on dynamic linking.

https://patents.justia.com/inventor/nick-kledzik
Build Apps on Stable Diffusion / ControlNet: Art, Logos, Selfies, QR Codes
If you've heard of Stable Diffusion / ControlNet and want to start hacking with it this blog is for you. It has:
- a Controlnet breakdown
- 3 open source example apps
- easy / cheap api to build on
The species that replaces us as the penultimate will appreciate our efforts as we have appreciated previous terraformers like first organism that polluted this world with oxygen.
Right, the question was, "what made you think I was angry?"
You know exactly where you are but you can't figure out how fast you're going.

(I'm sorry)

But seriously, this article is light on details. Is this just fancy dead-reckoning?
Right. It seems it's very rare, even among so-called egalitarians, to find someone that defies cliques, defies the urge to be offended, and lays down their weapons, all for an open conversation.
On the contrary. "Normies" were very positive about crypto, mostly because they were used by the crypto people from the early days, as fodder for their various get-rich-quick scams.

The "anti-crypto sentiment" that was the unwavering average sentiment on HN is, to me, a point of pride, and I'm thankful for it, because it inoculated me when I was most vulnerable - early on, where it wasn't obvious yet what type of people are promoting crypto and for what reasons.
https://archive.ph/LHE8l
Hilarious honestly. I am not a fan of MS but appreciate the balls.
> What do you mean by commodity hardware?

In my case, my local workstation has a Ryzen 5 1600 desktop CPU from 2017 (first generation Zen, 14nm) and it still worked decently.

Of course, response times would grow with longer inputs and outputs or larger models, but getting a response in less than a minute when running off of purely CPU is encouraging in of itself.
After 34 Seasons, ‘The Simpsons’ Is Good Again
Is there any info on this from a reliable source? No idea what "quantum" means here. Remote entanglement? Some new kind of gyro?

There's something called a "quantum gyroscope".[1] Those exist as lab devices. One good enough for a submarine seems not too big a jump.

[1] https://physics.aps.org/articles/v8/11
How do you know how people would react? It's never happened before. This is just paternalistic manipulation which by extension means the government should have much more power over people's lives 'for their own good'
Working seems like a stretch. I can't get any of them to scan.
The quoted Sky News article has a (tiny bit) more info.

https://news.sky.com/story/royal-navys-experimental-ship-car...
Like others have said, I would never pay thousands of dollars to sit court side unless I'm a multi-millionaire.

However, I would certainly pay $10 to watch the NBA Finals courtside in Vision Pro.
Daniel Ellsberg Is Dying. and He Has Some Final Things to Say
With this year's WWDC announcements, it seems more obvious than ever that Combine was a bridge technology that has served its purpose now that Swift concurrency is taking over, and those things are open source. Doesn't help with SwiftUI, but just open sourcing it wouldn't have helped much that much without also having platform bindings, given that it uses UIKit on iOS and AppKit on Mac.
Diablo IV on M2 Max using macOS Sonoma and game porting toolkit
Yeah. Also, the "why don't they just" (use plastic/carbon) came from me, not him. Apple is long known for using metal in places where it unnecessarily increases weight, because it makes a product feel more premium.
Requiring them to make their beds doesn't strike me as unreasonably petty, and to the extent that they do make soldier follow petty rules it's often done with a purpose, usually to install obedience. Not that there aren't lots of dicks in the military, but you shouldn't be so quick to dismiss the way organisations do things because often there's a good reason.