skysight-inc/HackerNews huggingface dataset:
That's why you profile. Software tends to get super complex as you add features and without a very thorough understanding of what is going on chances are that your program is doing something else than what you think it is doing, or at least that it is spending it's time on something else than what you think. By profiling you get a grip on that and this in turn allows you to spend your time on that 1% of the code where it spends 99% of the time. By the time you're done optimizing that a new bottle-neck will have arisen and so on. I've had software that was performing marginal end up being too fast to measure accurately over the course of a few iterations, and that's when I thought that I knew what was going on.

If Donald Knuth suffers from this as well then I wouldn't berate myself too much about it, his famous quote that 'premature optimization is the root of all evil' then you're more than excused to let optimization rest until the code is correct (which is far more important than that it is fast) and then use a profiler to tell you where to most efficiently apply your attention. This will get you to a very high percentage of the optimum in a relatively short time.
What is a pay station?
OK, we've changed to that from https://github.com/Gopiandcode/emacs-viewer above. Thanks!
Note that this particular PDF is PWYW, so keep that in mind if you enjoyed it: https://fabiensanglard.net/gebbdoom/

There's also a book for Wolf3D: https://fabiensanglard.net/gebb/
and the CP-System: https://fabiensanglard.net/cpsb/
> By definition price can't be the intersection of supply and demand if there are subsidies

That's what the government would like to believe. But with incentives perverse enough, the reality of the market starts sneaking into the system in unpredictable ways. For example, if train tickets are extremely subsidized and flight travel is banned, people will start re-selling tickets at a higher price in the black market.

> it's a useful model.

Yes, it is very useful. And dangerous to think it doesn't apply just because a bureaucrat sitting somewhere in the government apparatus thought it would be a good idea to subsidize trains and ban flights.
I have, but personally I prefer to pay something in the ballpark of market rate.
That's no different that a terrestrial network, in fact it's likely quicker as for better or for worse they're likely not using HTTP between the birds but rather a more efficient protocol.

Here I've got 18 hops from my office to HN:

$ mtr news.ycombinator.com -rc 3
Start: 2022-12-04T09:27:13+0200
HOST: dotan-OptiPlex-7040 Loss% Snt Last Avg Best Wrst StDev
1.|-- _gateway 0.0% 3 1.4 1.9 1.4 2.8 0.8
2.|-- 172.19.19.254 0.0% 3 0.3 0.4 0.3 0.6 0.2
3.|-- 62.128.42.108 0.0% 3 0.8 0.9 0.8 1.0 0.1
4.|-- 31.154.12.149 0.0% 3 5.4 7.5 5.4 11.7 3.6
5.|-- ??? 100.0 3 0.0 0.0 0.0 0.0 0.0
6.|-- ??? 100.0 3 0.0 0.0 0.0 0.0 0.0
7.|-- ??? 100.0 3 0.0 0.0 0.0 0.0 0.0
8.|-- ??? 100.0 3 0.0 0.0 0.0 0.0 0.0
9.|-- 82.102.131.249 0.0% 3 5.8 5.9 5.8 6.0 0.1
10.|-- 82.102.131.251 0.0% 3 12.4 12.0 11.2 12.5 0.7
11.|-- 82.102.131.201 0.0% 3 31.0 71.5 31.0 135.5 56.0
12.|-- ??? 100.0 3 0.0 0.0 0.0 0.0 0.0
13.|-- ??? 100.0 3 0.0 0.0 0.0 0.0 0.0
14.|-- 82.102.129.226 0.0% 3 48.9 49.8 48.9 51.1 1.1
15.|-- et-1-0-23-101.edge1.marse 0.0% 3 79.5 80.0 76.9 83.6 3.4
16.|-- ae0.11.bar1.sandiego1.lev 0.0% 3 220.4 214.7 210.2 220.4 5.2
17.|-- m5-hosting.bar1.sandiego1 33.3% 3 798.8 765.5 732.1 798.8 47.2
18.|-- news.ycombinator.com 0.0% 3 233.2 228.1 220.9 233.2 6.4
> I bet it’s less than 7 years total and probably serves less than 5.

Unless his sentence is commuted, its not possible for a 7 year federal sentence to result in release in 5; there is no federal parole, and good conduct time is limited to 54 days per year.
What makes you say this? Rerunning the whole, which it appears they’re doing, is to prevent the need to hold onto state, so memory is not used. In other words, they’re not having this problem because they’re not doing it that way.
horizontal organization 101: more than one member (if not all) should have access to the bank, mobile,water,light,gas contracts
I’m in the same boat. A suggestion would be try to switch up the markets you’re involved in. I used to be based in SF Bay Area but moving to the MENA region has renewed my love for tech by giving me a chance to be somewhere that’s relatively early in its industry cycle and finding different business cases than what you’re taught in MBA classes.
> You're conflating negligence/dereliction of duty and bus-factor-of-one here, while Fosshost suffers from both, they are not the same thing.

I appreciate the distinction, but they're certainly related. We can see that because we can achieve the same result with a bus accident as with dereliction, and that addressing the dereliction without addressing the bus factor will result in a repeat of the problem.

> I don't see why you assume why a new CEO would resist relinquishing all treasury duties.

I don't, that was a thought experiment to illustrate the point that addressing the dereliction does not address the root cause.
> command +/-

This doesn't affect font-size (well, I guess you can set it up to do so in Firefox). There's a difference between increasing zoom and increasing font-size
Interesting, I don't seem to be able to see any Apple store in the Amazon UK site.
And it solves silly coding puzzles for you...
I saw this yesterday. It’s very impressive, and a bit scary.

I myself set my alarm early every morning (problems are dropped at 06:00) in my TimeZone.

It would be nice to only compete with other humans, but, I do understand that it would be impossible to enforce without totally changing AoC.

I hope that we won’t see the competitive element of AoC disappear over the next couple of years as AI models get better and better at getting on the leaderboard.

I’m not bitter, and I don’t want to stand in innovations way. I’m just a bit nostalgic and want AoC to stay the same:)
I think my only issue with using this is that it forces everyone to use gpt if they want to remain competitive. Which is already the case for many other tools, for example people had to learn z3 smt solvers for previous years.

But the main difference here is that there's no differentiation between the top competitors anymore. It just means in addition to being very good, you still need to run this thing in the background to hedge against this being an easily gpt-able problem while you code up the real solution. And in the cases where it is gptable, you can expect the leaderboard to be ranked only based on latency to openai/aoc servers.
Yes. Some years ago I was debugging a Z80 start-up problem (ADA MP-1 guitar pre-amp). By probing the address lines, I was able to deduce that it's in a tight loop.

It turned out to be a dumb circuit design around the Z80's NMI. I don't remember the details now, but there is a circuit that is like a low voltage (brownout) detector that triggers NMI, where the firmware branches to a loop. The idea was likely this: to prevent trashing the settings if that happened during a write cycle (setting being stored). Anyway, this NMI would happen on startup, during the voltage ramp-up.

I deduced it purely from reading the schematics that, hey, this circuit could activate NMI close to power up.

The fix was to just cut the trace to the NMI line with a sharp instrument; presto, no more random lockups on power on.

The kicker was having debugged all this, I found a 1989 dated document from Ada which confirmed everything and recommended the same fix. I think had that document all along but it was hard to understand what it was getting at. and take note, if you didn't already understand the problem.
MobileInsight now supports data collection of analytics of 5G
“OpenAI had access to Twitter database […] I put that on pause for now”
I'm sure it can think that it can reason about things, too. Especially if you tell it that it can.
Maybe the fact that more people try it, it's more likely that we surface issues early?
It really is amazing. Things it did in less than 10 seconds from hitting enter:

- opengl raytracer with compilation instructions for macos
- tictactoe in 3D
- bitorrent peer handshake in Go from a paragraph in the RFC
- http server in go with /user, /session, and /status endpoints from an english description
- protocol buffer product configuration from a paragraph english description
- pytorch script for classifying credit card transactions into expense accounts and instructions to import the output into quickbooks
- quota management API implemented as a bidirectional streaming grpc service
- pytorch neural network with a particular shape, number of input classes, output classes, activation function, etc.
- IO scheduler using token bucket rate limiting
- analyze the strengths/weaknesses of algorithms for 2 player zero sum games
- compare david hume and immanuel kant's thoughts on knowledge
- describe how critics received george orwell's work during his lifetime
- christmas present recommendations for a relative given a description of their interests
- poems about anything. love. cats. you name it.

Blown away by how well it can synthesize information and incorporate context
> Create a list of test cases by which you can benchmark yourself against

> Create an architecture for an LLM that passes 99%+ of those test cases

Then use an evolutionary algorithm based on those <1% of cases to create the next batch of tests. Keep a running record of all created tests and make sure the new model can still pass all of them. Add some randomness/branching into those tests and I think you’d have a recipe for an effective AI. I think Deepmind did something like that with AlphaStar and their tournament system.
why it is so ?
You can also make it run in reverse - tell it that it's a player in a text adventure game, and let it "play".
Related:

The World Excel Championship is being broadcast on ESPN - https://news.ycombinator.com/item?id=32417534 - Aug 2022 (153 comments)

Excel World Championship Finals - https://news.ycombinator.com/item?id=29521324 - Dec 2021 (36 comments)

Top Excel experts will battle it out in an esports-like competition this weekend - https://news.ycombinator.com/item?id=29520827 - Dec 2021 (4 comments)

Yes, there really is a world championship for Microsoft Office - https://news.ycombinator.com/item?id=14954536 - Aug 2017 (2 comments)

UK student wins Microsoft Excel World Championship - https://news.ycombinator.com/item?id=2847334 - Aug 2011 (2 comments)
Is Immigration an option for you? as a German you have good chances to get to US, work there in a high paying job to get to your desired portfolio.
How difficult would it be to port it to Wayland?
No, this is terrible for the EV industry.

It causes uncertainty and removes willingness in private business and citizens to lead the change. More and more will start considering it may be better to wait and move only when the risk is low.

Switzerland is considering banning EVs. Even if they don't, your car is banned if you can't charge it...

This is different from an oil supply issue. It's your government telling you to buy an EV than the same government (not a foreign one) denying you electricity out of stupidity.

Edit: Switzerland isn't banning EVs, more appropriate to say it's considering restricting EVs
As a Hebrew speaker, I have to say that even though one should stick to English in code, paamayim nekudotayim was probably used because it rhymes; it has rhythm; it sounds like nothing you would say in ordinary circumstances.
>"But as a cost it is hellishly slow and is hard to find anything in"

There are examples to the contrary. CAD products I think are way more complex than this JIRA abomination but are not slow at all. And for what it worth I went from knowing nothing to producing complete design of a relatively complex piece of equipment (main assembly, all individual parts etc in a form accepted by factory) in less than a month using Solidworks. This says something about quality of this piece of software. Out of fun when I had nothing to do I tried to repeat the design in FreeCAD - never fucking again.

So I think the problem is not the amount of features (the more the better). It is just very hard to design proper ergonomic GUI and workflow.
I absolutely agree with you that police often make things worse than they need to be. But we can't just allow people to do bad things, shrug, and move on. Even if the CEO of Fosshost has a legitimate excuse for what's going on, taking no action at all just tells the true sociopaths among us that they can get away with whatever they want, because people will assume there's a reasonable explanation, and not involve authorities.

That's not an outcome I'm comfortable with either. And I am very sympathetic to your statement in another subthread about preferring 1000 guilty people going free over even 1 innocent person going to jail. But where's the threshold? How about 10,000 guilty people? 100,000? A million? As much as it pains me to say this, at some point we do have to accept that innocent people will get caught up in the system. Because if we refuse to take action against any guilty people due to a fear of hurting the innocent, then the guilty people will just take more and more advantage of that, until society itself is untenable. I don't think you're directly advocating for a breakdown in society, but I think that's the eventual outcome of your policy.

Don't get me wrong, the system as it is... is terrible. It needs boatloads of reform. There are many issues that police are ill equipped to handle, and yet end up handling -- poorly -- anyway, because there is no one else empowered and funded to handle those situations. Even the best police officers can handle situations outside their training poorly, and unfortunately there are many police officers who are very far from being the best, to put it mildly.

I don't have solutions here. Policing is incredibly broken, and I don't really know what will fix it. But I don't think a productive response to that is to just let people get away with doing bad things, regardless of their intentions or their personal situation.

To the actual matter at hand, posts like this one -- https://news.ycombinator.com/item?id=33849353 -- lead me to believe that the CEO was intentionally doing something shady. No, I don't have proof of that, but I don't think anyone is going to figure out what was really going on without involving some sort of authorities. At some point you just have to judge for yourself if you believe someone was acting maliciously or not, and take whatever action you think is best. The people working on Fosshost are certainly in a much better position to do that that than we are, here.
Perhaps the submission URL can be changed to the first link above?
Prompt:

here is a function in python3

def foobar(i):
j = i + 1
if j > 10:
print("yam")
else:
print("baloney")

foobar(9) prints "baloney" and foobar(10) prints "yam"

change the function foobar so that foobar(9) also prints "yam"

---

To change the behavior of the function so that foobar(9) also prints "yam", you can modify the condition in the if statement to check if j >= 10 instead of j > 10. This will cause the if block to be executed when j is equal to 10, as well as when it is greater than 10.

Here is the modified function:

def foobar(i):
j = i + 1
if j >= 10:
print("yam")
else:
print("baloney")

After making this change, calling foobar(9) will now print "yam".

foobar(9) # prints "yam"
foobar(10) # prints "yam"

Note that the original behavior of the function, where foobar(10) prints "yam", will still be preserved.
Oof not someone else that fell for Brad de Long's bs.

Here's the ceremonial link for whenever this crap is linked:

https://news.ycombinator.com/item?id=17164707
Human: Hey ChatGPT, how do we fix the climate catastrophe?

ChatGPT: Much scientific evidence points to a human cause for climate change. Applying the rule of cause and effect in reverse would provide a possible solution.

It's when ChatGPT is used for political decision making that we should be worried about the truth.
Maybe you'd like to work on free software projects. Those that try to tackle real problems, dedicated to offering real solutions, have positive social impact. And think about how to be involved with this in a way that is sustainable (the hard part of working in FOSS).
64,000 die in womb each year as a result of polluted air in China
That depends on if you consider libc to be a part of the OS. Only the BSDs (including MacOS) do.
Most people will recommend the CHIP-8 system, because it is simple to handle - very simple graphics, very simple CPU, and a decent range of games to play with.

If you're thinking "old school" then your choices are NES, Gameboy, and 8080. Personally I wrote an 8086 emulator, to play space-invaders.

8080 is a reasonably simple system, without horribly complicated graphics or MMU addons. Interrupts were hard to debug, but otherwise it's a very well documented system with lots of directions you can go in afterwards - emulate DOS, and Hercules? Emulate CP/M? Emulate other games? Or start looking into running Windows even!
Disappointing to have just a translation of the same text when asking a Poem about Television in the style of different authors :(

And poems aren't not properly styled but the output is already impressive, so I guess it's highly generic and bland stuff.

Nevermind this thing is incredible, I didn't realize you could resend the same question and get different output with the same meaning but totally different expressions.

You whisk us from our everyday,
Make us laugh and cry in turn,
And hold us captive with your mesmerizing sights,
Kept awake until the morning light.

vs

You transport us from our daily toil,
Make us laugh and make us wail,
Hold us spellbound with your glow,
And keep us awake until the dawn.
Maybe simcity is not the best model of how reality works in society management.
The "least bad scenario" I read is that if we assume the money was lost through "well-intentioned but incompetent bumbling" then nevertheless the company "lied, constantly, about how carefully it was keeping track of risk and customer money".

They were supposed to have automated systems to instantly liquidate margin positions like Alameda's so FTX wouldn't lose money. Without favoritism or human judgement.

Now SBF is going around apparently saying "aw shucks, I made an error in judgement and also in arithmetic". Ok, noted, but that shouldn't have mattered?
> I have been thinking about incorporating similar thing for my unbound/nsd stack through client tagging

That's a nice idea, ping if you do get it working.

> How do you maintain the white list of domains for netflix/prime/disney+?

You can use any of existing whitelists for domains like this: https://raw.githubusercontent.com/JO2EY/Rules/master/Surge/R...

Domains for me are hardcoded, i recompile to change them (not ideal, i only did it to experiment and it's good enough so it stuck, also not much ram)

If things stop working I look at logs and update.

On other environments you could just present domains in a UI and have user block/allow/permanent block and hide. (that would be fine for me)
May I ask which industry you have renewed the love for tech? I may have a little bit more love of software that involves a lot more of real world stuff.
> Apple’s longer-term goal is to ship 40% to 45% of iPhones from India, compared with a single-digit percentage currently, according to Ming-chi Kuo, an analyst at TF International Securities who follows the supply chain. Suppliers say Vietnam is expected to shoulder more of the manufacturing for other Apple products such as AirPods, smartwatches and laptops.
The smallest percentage for "needs improvement" ratings I was expected to hit was 5%, the largest was 15%.

How do you do that if you're managing a team of 5?

Any manager with an employee who had two connective needs improvement ratings was themselves given a needs improvement.

Makes sense to me. A manager's #1 job should be to ensure that the people who report to them are able to work to the full extent of their capabilities; if you're not assisting employees who need improvement, you have no business being a manager.
Tokens are left out of parse errors since PHP 8 released 2 years ago

See https://3v4l.org/2T8qQ
To me, what's scary is exponential graphs. Anything before the curve looks flat, and everything after looks nearly vertical. Everything seems fine, and right now you have time to get bored between each step, until one day it's suddenly happening much faster than you can even react to it.

Consider how this year alone we basically had Dall-E, Imagen, Stable Fusion, Midjourney, Lambda, early Imagen Video samples and now ChatGPT, and the years not even over yet. Original Dall-E was almost 2 years ago, GPT-2 was 3 years ago.
How is then this content distributed? Only on company blog?
> And if you can’t remember the meaning of something like that, I hardly doubt you’d be a decent programmer anyway.

Ah, the elitest assholery that made PHP a wonderful place to be /s
> Some people work really hard to get on the leaderboard and players like you destroy the concept.

Yeah. Just like how 'ethics' went out of the window as soon as Stable Diffusion destroyed and cheapened the digital artist straight to zero.

Now it is happening to some extent to parts of programming contests and challenges, ruining the concept as no-one can tell if the code was written by ChatGPT.
This notion confuses me (I’ve never been to NYC)

Couldn’t they put smaller dumpsters in the same space the trash bag piles currently occupy?
> I think the ideal solution to this would be to work on fixing the system, not avoiding contact with the system. Hold police accountable for violating people's rights. Remove laws that don't need to be enforced, and consistently enforce ones that do need to be enforced.

This is a fair point. Personally I don't believe this reform is possible, as I believe that the nature of police powers is such that they will always become abusive and insulate themselves from accountability. Regardless, in the same way you go to war with the army you have, when you contact law enforcement, it's the law enforcement that you have and not the law enforcement you believe should exist.

> When my car's window was broken and my work laptop was stolen, I reported it to the police and they didn't seem to do anything besides enter it into a database.

I'm sorry that happened. Once my laptop with full disk encryption was stolen - while it was booted and asleep (thus defeating the full disk encryption), and I felt like such a fool.

I meant this more as a mental model of what the worst case scenario you should anticipate is. Because we simply cannot predict how law enforcement will respond on a spectrum of not giving you the time of day to showing up with their weapons drawn, we have to consider whether the most extreme scenario is acceptable before contacting them.

For what it's worth, I believe we should have a more diverse array of emergency services, who can be contacted directly, so that you have more control over what kind of response you are requesting.
(unsarcastically) I'd be pissed if a computer manufacturer placed an arbitrary limit on what I should be able to do with my computer.
Indeed, to illustrate; Einstein and Planck doesn't mean that for most of our lived experience and work, classical mechanics offers a far more useful model of the world.
Do you have the YouTube app installed? Sounds like it's trying to send a notification to that app to authenticate you.
I love this:

“Here’s a list of stuff, will you give us a few billion dollars for this list of stuff? Look! The top thing on the list is this nice clean Robinhood stake. Okay that’s enough looking.” You take a wad of crumpled $1 bills and $3 bills and dry cleaning receipts and chewing-gum wrappers, you wrap some crisp $20s around the outside, you hold the wad up in front of people and see what they’ll give you for it.