skysight-inc/HackerNews huggingface dataset:
Even in C, citing the standard (6.2.4, 20):

> Array types are characterized by their
element type and by the number of elements in the array.
Well, I would paraphrase my search differently "why is social science not a science"

This one I had saved somewhere https://blogs.scientificamerican.com/literally-psyched/human...

On psychology https://www.latimes.com/opinion/la-xpm-2012-jul-13-la-ol-blo... "But to claim it is “science” is inaccurate. Actually, it’s worse than that. It’s an attempt to redefine science. Science, redefined, is no longer the empirical analysis of the natural world; instead, it is any topic that sprinkles a few numbers around. This is dangerous because, under such a loose definition, anything can qualify as science. And when anything qualifies as science, science can no longer claim to have a unique grasp on secular truth."

And excuse me if I allow myself to add a 3rd one https://blogs.scientificamerican.com/cross-check/is-social-s...
You should try out Cherwell, it’s so bad it’ll make you love ServiceNow.
They are! And they receive fewer funds in my neck of the woods.
Not news anymore: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...

* https://news.ycombinator.com/item?id=36627272 (2 days ago, 68 comments)

* https://news.ycombinator.com/item?id=36624172 (3 days ago, 145 comments)
Show HN: I made GPT Riddle game and it is probably too hard for you
Wonder if it was automated image detection or some person who was checking the selfies decided to let you in
There's an old joke that emacs stands for Eight Megs And Constantly Swapping.
Is it just me?

Trending videos on TikTok seem more and more related to vandalism
I wonder if the algorithm can be run on a GPU, that should lower the time a lot.
"Yeah, but has already been established in this conversation, you're not using them for the same concepts. So your argument doesn't work. Repeating it over and over isn't going to make it work, either."

No, we've established that math and programming languages are different things. Both share some concepts that are close enough so that using the same symbol is the obvious and sensible choice. It's not that equality in C would be such a different idea that a completely unrelated symbol was chosen. == is still similar to the = used in math, just not the same for technical reasons that are obsolete for several decades.

"And, C didn't avoid := because the proper character wasn't available."

I never said that. I said C chose to reuse the symbols from FORTRAN. To repeat part of the Wirth quote from above (but it's easy to find other sources):

"It goes back to Fortran in 1957, and has blindly been copied by armies of language designers."

FORTRAN was initially made for the IBM 704, which had a 6-bit character set that included a =, but no : character. The original FORTRAN manual from 1956[1] has the character table in appendix A on page 49.

FORTRAN could not use := for what we would now consider assignment[2]. It did not have yet developed equality testing, just subtraction and branching on the differences signum result, so there was no need for an equality operator. Under these constraints = for assignment wasn't the worst choice, the mistake was sticking to it when technology evolved.

[1] https://web.archive.org/web/20220704193549/http://archive.co...

[2] The original FORTRAN manual from 1956 never speaks of assignment in this context. The ASSIGN statement is unrelated.
Does anyone know how many employees were fired?
If anyone wishes to pursue this topic of "quantization" further, I recommend "The Reign of Quantity and the Signs of the Times" - a book by Rene Guenon [1]. Guenon examines the direction the world is going to as a shift from quality to quantity, and with this simple analysis he covers topics ranging across democracy, science, art, crafts, production, etc. The book was written in 1945 and some of the topics he touches upon can at first seem quite esoteric - i.e. that a tendency to measure the effect of some tragedy according to how many people were affected by it is already a sign of quantitative thinking. But I am surprised how well it captured many trends we see in society today. For example it can be argued that under the view he proposed, AI would be yet another step away from quality and towards quantity.

[1]: https://www.amazon.com/Reign-Quantity-Signs-Times/dp/0900588...
Is there a modern version too?
I don’t think so as only the advertiser has data you need.

Let’s say sales increase but your advertiser just burns 20% of your spend because it can and you won’t know. That’s the scam part.

It’s not that your spend doesn’t increase sales. It’s that part of your spend is wasted and you could increase sales more if it wasn’t scammed away as wastage.

I just bought a dozen bagels for $20. I’m happy, pretty good deal. But if the store was throwing away a dozen bagels for every one I bought, that’s wastage. Just because I’m happy doesn’t mean it’s not a scam.
TSMC gets a lot of attention being as prominent as they are, but most people don't realize that the entire computing supply chain is Taiwanese. It's not just the silicon, that's just the tip of the Taiwanese iceberg.

Combine that with China having some manufacturing capacity of its own, China stands to lose far less than the west in a hypothetical war over Taiwan as far as computers go.
> It gives me a lot of control over how the program works, which lets me create programs that work faster and use less memory than would be possible in most other languages.

While it is true to a degree, I would also add that due to its low level of expressivity, you often have to introduce less efficient solutions simply because language deficiencies. Things like small string optimizations in C++ are simply not possible in C.

2 is true, but it comes at the expense of bad expressivity, see the former point.

3. Well, will it really compile to what you meant? If you have UB, it might still compile but the semantics of your program could change entirely depending on which compiler and which version you use.

Also, your Python point: well, that’s because you used python in the first place, which is very slow even among scripting languages.
Created a PR to prevent react-native-web-maps from unnecessarily requesting location permissions: https://github.com/teovillanueva/react-native-web-maps/issue...

I don't think anyone is following along here (anymore), so I might just move this to the Twitter thread.
> pointless null checks, getters and setters that have no reason to exist, useless comments, "== true", things of that nature

Aside from useless comments, if someone opens a PR with any of those things, I can only assume it’s because they don’t know why they aren’t necessary. As their colleague, I feel compelled to tell them, because personally I cringe at the thought of doing things that aren’t needed and nobody having the courtesy to tell me otherwise.
that's the linker, not the c compiler
I’m criticizing his argument not yours.
”I do regret not processing the picture more: the horizon line is a bit tilted, you can spot chromatic abberation, the windows are overexposed.”

That’s exactly what makes it “real”. Overexposed windows are the norm in our most common photos, mobile phone ones. The tilted horizon only makes it more dynamic. Chromatic abberation, only ever photo geeks care about. If anything, it lends a credence to it, images without it can sometimes look almost like a render.
Fairphone 4 has been my main and only phone for several months now. Great experience, very good battary life. Performance-wise, I haven't noticed any significant difference compared to traditional phones. The only drawbacks might be the camera and thickness, but honestly I don't care much.

Of course, much depends on your use case and expectations. YMMV.
Regarding c), I personally never get anything but business laptops. The consumer ones are just too crappy, plastic everywhere, won’t last more than 3–4 years, underspecced hinges, and plastic clips.

The business ones are the same price or cheaper past the three years mark when IT departments all get rid of them at the same time and spare parts are plentiful for the next decade.
It was brute-forced in 2010

https://www.wired.com/2010/08/google-rubiks-cube/
"AMD says AMD is the best." Wow, I'm so surprised. I also think I am the best(/s).

I still find this compute per watt thing such a silly thing for any company to care about. Until Apple did it, it was not on anyone's minds. Once Apple did it, they dumped a bunch of money into marketing a metric that no one cared about; and now people pretend to care about it.

Not to mention this obsession with CPU that I just cannot grasp. Not sure what industries this is the bottleneck.
The first step would be to convince Microsoft to ship Flutter with Windows.
When I see this criticism of mocks, it appears to me that the critic is primarily used to seeing tests that are either mocking the thing-under-test or don't understand the boundaries of the thing-under-test.
I disagree. I cross-compile F# sources with .NET on my Mac to get a stand-alone Linux executable without additional dependencies that I can upload to my server host. It's enough that I maintain the .NET stuff on my development host, I've got no desire to duplicate that work on the public host.
I met plenty of productive people who do so with hardback notebooks and a pencil, you are good. Other thing I saw is once they are done with it they glue a paper on the cover and notedown some things and throw the notebook in a big plastic box for archival. Recently finished notebooks tend to find some time living in their desks before going into the box.
What if willpower does not exist?
Current theories about willpower has a bunch of conflicting evidence. What if willpower is actually not about will at all, but about how the mind handles information?
> Strict aliasing is one of the few tools we have to tell the compiler that aliasing will not occur.

I can see the argument, but there's a much better way to indicate what you want with your example:

void f(int16_t* a, int32_t* b) {
const int16_t a0 = a[0];
for (int32_t i = 0; i < 100; i++) {
b[i] = a0 + i;
}
}

Now a clean (well defined) compiler could do what you asked.

I've seen other people suggest that UB is a mechanism to have these magical backdoor conversations with the compiler to express optimization opportunities. I think that's absurd and reckless. Propose adding assertions or "declare" statements instead, and quit thinking of interpretive dance through a minefield as a method of communication.
You'll get used to reading diverse code in a fairly short time. "Coherent" and "easier to read" also has the downside of lowering the attention you have when reading the code, so you'll have a harder time catching obvious mistakes because "it looks correct".

And again, being against personal flair only makes sense if you are a manager trying to treat programmers interchangeably, but as a programmer, your interests are increasing personal flavour in code so you are less replaceable.
Well the good thing about this thread is that I found out that Pascal has grown inline vars since I last used it. With type inference too by the looks of it.

Maybe I will make my way back after all.
That has nothing to do with the C memory model, but how the CPU is structured. No modern CPU has an interface for bit-address accessing as far as I am aware...

C makes no assumptions about the size of a byte
Does Perl now support web development and if so, to what extent? Can you now do with Perl 5 what you can do with PHP?
That was a fun story and congrats on winning that competition!

From the judges:

>Our lives, especially in our twenties, feels like a competition. From school, to university, to getting a job and progressing through our careers – it’s a never ending competition.

Is that really how people feel? The last time I felt remotely similar was in high school during the university entry exams, but even then, it didn't feel much like a competition, more like a group of kids bonding over going through a stressful time together. Then uni was just socializing, taking fun (and some not so fun) classes and enjoying life without any real responsibilities outside of class and mundane student jobs. I know that my friends felt the same. Where is this competition taking place that the author says applies to everyone?
Is this important? I treat compiler as *full* toolchain

I run compilation and expect sane error messages - saying that "oh, it's because of linker yada yada" doesn't solve my problems nor is valid excuse

Other language (compilers) do better.
Does it provide a uniform interface that includes: retries, caching, streaming?
That only works if you're dealing with source, where it's possible to check for coherence.

The problem happens when you link inconsistent binaries.
Why do you think the type system is weak? I was using PureScript (Haskell derivative) prior to TypeScript, and I have found its typing capabilities to be very impressive.
A couple points:

- CPU memory subsystems are very complex these days and represent a lot of shared mutable micro-architectural state, which makes it hard to reason about. That's not linear and the C language does not offer concepts which represent that complexity. Short of some prefetching intrinsics.

- Pretty much all memory will be virtually addressed, pushing you even further from the concept of flat linear memory.

- Pointer provenance [0] binds memory to types and allocations which doesn't map onto the concept of linear memory and a pointer is just an offset.

[0] https://faultlore.com/blah/fix-rust-pointers/
> 2. Tea, and teapots, originate in China. Coffee, incidentally, has African and Islamic origins.

"I'm a little teapot" is a British nursery rhyme... are you being deliberately daft? Of course I am not referring to the origins of the plant
Can anyone explain why so many people want this?

If I am running a beefy single threaded or multi program with CPU, I want the best, not some low power device. Gaming laptop.(Or whatever we want to call it)

If I'm running consumer/enterprise software, I likely want a beefy GPU. Gaming laptop.(Or whatever we want to call it)

If I'm taking a 7 hour bus ride in a bus without a 120V outlet, I want this.

If I'm taking a 6 hour bus ride in a bus without a 120V outlet, I want a gaming laptop.(Or whatever we want to call it)

What is the use case? I got a feeling these companies are chasing Apple's insignificant metric of compute/watt, which doesn't matter as far as I understand.
Everything looks fine if you use hello world examples

Yet when reality kicks in, then you can spend 15mins trying to figure what the hells is going on
It affects what gets rebuilt.
You can be more specific. Don't lower the performance globally, just for the app you're developing. It's easy to automate in your ide configuration / run script / app itself when running in debug mode, etc. It's a one-off setup per project you're developing.
Beer, pizza, more pizza, and coffee, in my experience. Lots of random impromptu spaces created from whatever furniture or walls are on hand. I basically developed my programming addiction from a couple very entertaining hackathons.
> The problem with this approach is it’s completely tautological. What are you asserting? The tests themselves.

Every time I've heard this kind of rationality it's from someone who doesn't understand what a unit test is and is pushing for integration tests.

It's extremely useful to have very rapid tests that boil down to making sure `add(2, 2) == 4` because you can have them running constantly and catch inadvertent logic changes.

Should you also have more heavy tests using local/fake services? Obviously - but it's not one or the other.
API breakage and ABI breakage are two different things.
There have been all kinds of variations on that theme. One of the nicest is 'bit test and set' as an atomic instruction, that one enables a whole raft of nice stuff.
i think this widely varies between people and what they need their laptop for.

personally my previous laptop (7+ years old; the replacement is over 3) was ample for basic tasks even today, but it did not meet my personal needs (gaming, deep learning on cuda).

but there is something liberating in getting a very cheap but well-built old laptop if you can get away with using it like a thin client. personally, going forward it makes sense to instead invest in a repairable laptop like framework. while the old thinkpads can only be repaired around the core hardware, this way you should be able to get much more mileage.
Check out https://brr.fyi/
What I'm saying is that you could just integrate some tooling which would detect when changes are or are not made in a compatible way, instead of relying on the human making a correct annotation.
> I don't think that C actually forbids this code:

*(int*)0x12345678

If not, give it time. It was only a few years ago when you were allowed to use a union for that kind of thing. I really believe they'll eventually make everything except unsigned integers be UB.

"Oh, the code was never correct. You just got lucky before."
Oh thanks for pointing this out! I completely missed that, but a quick googling led to a couple of reviews posted just a few days ago.

https://www.servethehome.com/minisforum-um790-pro-review-big...

Very impressive machine, and quite affordable. Bonus points for Minisforum for offering barebones versions.
I was able to work around setting the initial zoom issue for now: https://github.com/teovillanueva/react-native-web-maps/issue...

I should likely just dig a bit deeper into the source of the library, but this does it for me for now.
10m is completely ludicrous. I got on the London Underground yesterday and there was noone in my carriage. The carriages are easily 10 metres long.

Or just like, go to any park anywhere.
> But see this as an opportunity to reveal your professionalism

I would immediately send this quote to other employees and past co-workers and classmates for a hearty session of mockery if a boss said that.

This just erodes team trust in you as the manager rather than the senior leaders. Better to erode trust in them.
Agree. I know it's a hackathon but it looks like a dystopian production line to me
The KIM-1 was one of my very first machines, I faithfully lugged it with me across many moves and one day it just disappeared. I still have faint hope that it's somewhere in one of my (too) many storage boxes but I suspect it just got lost. Really a pity because they are becoming more and more rare.

Nice to see this one restored to its full glory. Trying to explain to my kids that once upon a time the full working memory of my computer was a very small fraction of one of the photos they share online was a fun experience.

Note the gorgeous very high quality circuit board.

As for the article: I'm not particularly impressed with the workmanship, as a kid I'd repair boards of this and higher complexity regularly and lifting traces and cutting traces while doing such a simple repair would not normally happen to me. One way to do better would be to use a good quality rework iron with a vacuum pump. Not cheap but if you work on old and nice hole through stuff like this well worth the investment. Otherwise you end up overheating the board. A repair should look more or less as if the board wasn't touched, apart from maybe the gloss on the solder. And make sure to use 63/37 'old fashioned' solder.
My hello world requires the "bash" framework and is zero bytes. You call it via:

echo "hello world"
>If you do nothing (the default condition) to sustain or improve your existence, you will be miserable. That is the never ending tyranny of imperative action.

You're making LOTS of assumptions here.
> Things like small string optimizations in C++ are simply not possible in C.

I don't think this is true, I've seen a bunch of libraries implement SSO in C:

https://nullprogram.com/blog/2016/10/07/

https://github.com/stclib/STC/blob/master/include/stc/cstr.h

https://github.com/mystborn/sso_string/blob/master/include/s...
There was never a time when the distinction between Release and Debug was not "prolific".
/awaits sounds of departure

/hears none

/looks up

“Oh. You are still here and obviously don’t agree.”

/listens to a hint of an argument

“Fine. Prove me wrong. You’d like to use a sophisticated data model to prove your dateability? By all means.”

—-
“And that friends, is how the Data Science disciple came to be. It naturally evolved from this simple state of social study to include other quality of life enhancing topics like optimizing ad delivery networks, SharePoint page utilization estimates, and developing ML prompts for generative adult genre fiction.”

(Hugs to my brilliantly nerdy data science friends)
I was going to make a reply to OP about how most problems are moot if we don't tackle polarization and (for want of a better term) political decline. But your comment is more comprehensive than mine would have been, so I'll just add my two cents here.

> I think we are going to see additional polarization in online discussion and we will continue to see this spill into the physical world as violence

I wonder whether online discussion is at the source of this, but I doubt it. Perhaps this is something for sociologists to ponder over. We have have access to more information than at any point in history, but it seems like our knowledge (and empathy) haven't grown by the same amount.

> Russia will continue sending every able bodied man into the nato-powered meat grinder of Ukraine until a proper overthrow of Putin occurs or they run out of people.

The idea of a Russia without Putin frightens me. Not because I'm a fan, but because it seems like every likely alternative is even worse. A politically unstable (nay, volatile!) country with a huge stockpile of nukes ought to worry everyone. I hope humanity can find a way out of this shitty situation.

> The EU will lose more membership

Probably. And this ties in nicely with your first paragraph, polarization is a big contributor to this. By and large, Europe has never been as safe or as prosperous as it is today, yet everywhere extremism is on the rise. The EU (or at least the Commission) has a reputation of being a busybody everywhere except for where it matters. Political reform seems needed, so that people at least feel represented, but that's unlikely to happen when so many Europeans are devolving into an "us vs them" mindset.
>Your tests reduce to:
response = "derp"
assert response == "derp"

I do not agree. Mocking doesn't mean you assert what you just mocked, mocking let's you test a piece of code in isolation. When writing unit tests I mock all the dependencies, even if I control them, as I only want to test a particular function at a time and not the external code. If you want to test more, then you can write integration tests or end to end tests, but that is another matter.
Lot of folks are already doing this with remote simply without the pay cut.

It's fair when someone is able to accomplish the expectations before the allocated time but a lot of individuals are not equipped or built for remote and don't meet expectations but cut their hours.

I'm pro remote but don't think a lot of individuals are equipped to be able to effectively do it. What I see and when talking to leaders in other companies it is about 20% truly justify the remote and the other 80% would be more effective in the office.
Is the hardware really the bottleneck to sustainable device? The software seems more much important but nobody is tackling it.

Having a phone with a new battery doesn't matter if I can't run the same apps as others.
How do you know?

Quick search reveals

https://github.com/sourcegraph?q=Lsp&type=all&language=&sort...

One of their employees maintains a Zig LSP https://youtu.be/h_7o3yroYy4
Do people expect that their publically posted data (like hackernews posts for example) are not scooped up by a multitude of bots whether or not it’s mentioned in the bots’ privacy policies?