skysight-inc/HackerNews huggingface dataset:
I try to give kids honest answers, but there's a chasm of missing metacognition and unshared context that is hard to bridge.

I speak of spending a lot of time at work. And argue that developing intellectual interest and stamina that supports one feeling good during that time is one of the most viable / likely paths to live a happy, fulfilled life.

It's still a huge leap of imagination. How can you tell a kid what being in a dead-end job that you hate is like? It may not sound too unlike what you're asking them to do, burying themselves in their studies.

So we can talk about finding the interesting parts of studies--- interesting subjects. History as stories. Writing as imagination. Math as trying to figure things out. It's immediate and also hits the important part of the argument. As Csikszentmihaly said, “Of all the virtues we can learn no trait is more useful, more essential for survival, and more likely to improve the quality of life than the ability to transform adversity into an enjoyable challenge.”

And now that I'm a teacher, I try to run classes that have a whole lot of the things that I liked best in other work, and to share them with kids.
portable means you can take the stuff you learned and use it in another job. AWS is portable from job to job, as would be kybernetes or some other specialized but widely used software.

non-portable is a training on an inhouse application that no other company uses, like googles customised databases or what else they use there.
Without a roadmap, plan, and policy, I read this as a "maybe someday" tweet. Seems like something Elon Musk would say.
Sony is/was? a joint venture partner

https://www.guru3d.com/news-story/phison-acquires-nextorage-...
The fact that yours has never broken, as opposed to shattering the screen once or twice, could just be luck.

Which is not exactly an argument about multiple breaks per year, but it's relevant.
Anyone in Bangkok? Would love to do an IRL meetup.
Don't worry, the GNU people are looking to fix that.
Tobacco use kills 7x every day, week, and month in the USA as the “opioid epidemic”.
Interesting. Hasn't infrastructure become impossibly expensive in the west? We can't even build a small access road to a bridge without spending millions of dollars. Forget about subway, costs like $2B per mile.

May be we should question policies as well as why governments have become so hopelessly inefficient. Yet, we want to fund it with more taxes. No one seems to care and quantify inefficiencies of contemporary governments. Journalists aren't interested. Population is convinced that more taxes leads to better QoL which hasn't been the case lately.

Instead of saying that taxes aren't suffient to maintain roads and basic services, perhaps Governments have become too bloated to serve their populations and administration class malaise has settled in.
Not seeing evidence of your claim. A simple search on comp.lang.c for C/C++ turns up plenty of results and no one, not a single person, is calling it out. Infact there's plenty of discussion on an almost daily basis discussing the two languages almost seamlessly. Looks like there's even a alt.comp.lang.learn.c-c++ newsgroup as well.

For reference I also did a search from 1998 to 2002... once again no one cares or is objecting to the term C/C++ and that term is used quite often. From this search I also just learned that Microsoft's own compiler uses the term "C/C++".

Furthermore, if something is relevant to both languages, such as a question involving pointers, why would it be a bad idea to ask about it in a C newsgroup? If anything, it's preferable to ask a question that is pertinent to both languages, especially one involving pointers, in the C newsgroup.

Certainly asking a strictly C++ question in a C newsgroup would be off-topic and rightly so, but asking a question about pointers or other low-level details that are applicable to both languages is perfectly fine in a C newsgroup.
Alt+hold F4
It’s kind of bad if the SEC is making dumb arguments. They aren’t infinitely powerful; why erode their power this way?
> I feel like some folks downplay the amount of engineering that goes into the iPhone,

There's a huge amount of engineering that goes into making cars as well, but independent mechanic can and do thankfully exist.

The automobile market is going a similar direction to Apple and it's considered a bad thing by many.

Apple do not want to sell you spare parts if they can sell you a new yearly model phone instead. Imagine how awful it would be if you're forced to buy a new car when the propriety tires get a puncture and it's a discontinued model.

"Well this is already happens, besides I never lifted a finger to fix anything in my life" - yes, but it's not a good thing to make this the status quo.

People need to have the freedom to get cheaper parts and / or better services from other places. Otherwise we're all chained to Apple and not lifting our own fingers.

I don't know why this doesn't make sense to people, except for cases where people believe the hype of little old ladies blowing themselves up because they tried to replace batteries.
The "why" is the most underrated aspect to good documentation.

I generally prefer the word "context".

The trickiest aspects of writing and editing software tend to boil down to two subjects:

1. What's the underlying system we are trying to manipulate? How is its data structured, and what kind of loops and logic branches can be hijacked for our new functionality?

2. Where and when is our new code interacting with the underlying structure?

3. To tie the first two together, what data/functionality are we exposing to the user? How and when? What is the user?

Most contemporary programming over the last two decades has been focused on nouns. The last 5-10 years has seen a shift in popularity to verb-based (functional programming) paradigms.

We can find insight from noun-based programming to answer "what?", and verb-based programming is good at answering, "how?".

Neither really do a good job of answering "where?" or "why?". Those have to be peiced together like evidence in a crime scene, and by the time you figure it out, you've probably learned everything there is to know about the entire codebase.
Umm of course history is superior. So are named variables. You and me are not the target audience.

Ever noticed how normal people hit both C and CE several times on physical calculators because it's not obvious what those buttons do? That's the target audience.
I'm glad you brought this up. It's really core to the value of open-source as an activity. It creates the possibility for a project to become much greater than what it would have been if it was limited to the person or organization that originated it.
It makes as much sense to talk about a language named "Haskell/Ocaml" as about "C/C++".
I wish technical people would stop pretending that choice of programming language isn't just largely very much a personal choice and then occasionally based on whatever else the ecosystem has to offer.

Yeah, most people doing scientific computing might use Python, but then you have whole groups of people who are used to something else and would plainly prefer not to use a language for completely personal reasons.

Like, hey maybe the syntax sucks.
Yeah, but your 2nd example (with the UA header included) also returns a 400 response code. I am able to POST a search query to lite.duckduckgo.com just fine using another tool while also completely omitting the user agent request header (not empty string, completely omit the UA header field). I think your openssl s_client syntax is wrong, and thats why your getting a 400 status code, 400 is usually malformed request syntax.
The point is that if he was saying it as CTO that would presumably mean Azure is (or will soon) stop starting C/C++ projects.
Why not just hire good people and ask them to learn C++. I mean how the heck did anyone actually pass this magic barrier of becoming a "C++ dev" in order to get hired as a C++ dev?
Cut & paste from the pdf: многочитїй.

Hmmm. Well, on my screen, it’s lips/kiss. A Unicode fail.
I will review this tech during this week also as jq tools
It's interesting, just a few hours ago, I used the chess openings example to explain why some Magic the Gathering players dislike the now very prevalent practice of "netdecking" (using someone else's list of cards, while in theory, the game started out as one where you compose your own list).

In the comments for this video about netdecking :

https://youtu.be/qz0OTiTuQBY

(The main issue IMHO is how it can warp non-competitive play.)
Funding started prior to ~ 2008 at least ...

I'm in a Five Eyes nation (Austalia) and 14+ (ish) years ago I specc'd out, prototyped, and demo'd a bus recording system for the UK under the loose project heading of Panopticon (I shit you not).

Essentially a lightweight handler about a "hard drive as multitrack ring buffer" oldest footage+audio being overwritten.

One of the more interesting parts (that may or may not have hit production) was checksum+key propagation system to robustly transfer the most recent footage (prioritised by boarding | departure events) to at least one other bus while alongside in traffic | parked up at stops | terminals.

I had issues with a lax approach to secure wireless access (in those early days, etc) .. but the raison d'être was ostensibly not public spying nor common criminal tracking etc. but to have some record of what happens on public transport that might suddenly blow up ...

The entire project was smack in the grey area with a mass of ethical questions and a huge potential to slide into a police state swill (no doubt today there are people talking about real time .AI analysis (unless, of course, that was added long ago)).

At the time I was working for a private contractor in another field who was branching out and submitting proposals to tenders .. I was not then under any NDA (a relative rarity).
Hm? I'm not a particular fan of Microsoft, but his stated opinion here is reflective of a broader trend in software design, one that's coming from both companies and the open source community. I don't see the brainwashing.
I’m loving this resurgence of TUI apps. Only now the quality and cross compatibility is much better than in the 90’s.

Keep ‘em coming.
Any idea what a "channel" actually is/how it is implemented?
In Canada if a contractor uses company equipment then thy may be legally considered a full time employee.
The number of times I've seen obscure code that would have been elucidated by a good comment is vastly higher than the number of times I've seen outdated comments.

Funnily enough, most of the outdated comments I can remember were dead docs links despite that being a very common 'solution' to the problem of outdated comments.
It simulates the experience of having two iPhones with the calculator app open next to each-other. iPhones are physical objects.
Perhaps it is also good to build Artemis project on hn infra. Articles and discussions. I will create mirror on habr
For people who know Rust, Haskell's type classes are like a more general version of Rust's traits. But that comparison suggests the wrong chronology; Haskell's type classes came a couple decades earlier.
Under-Documented Kubernetes Security Tips
Very very rarely in my life do I feel affectionate towards Windows (and I've been virtually exclusively Linux/other-unix for a long time.) Sometimes it happened when I was writing dumb VBA in some Excel project, which I find fun for some reason. It happens when I play Windows 95/XP era Minesweeper. It also happens when I touch or have to use any part of Sysinternals. I even like reading the docs for Sysinternals, even though the UI is usually so good you hardly need them.
I've tried using both tensorflow and pytorch via their C/C++ apis. It's possible, but just enough of the convenience logic is in python that it's not very practical.

Incidentally if you're going to do it, I recommend pytorch over tensorflow.
I'm actually surprised there doesn't seem to be a Minneapolis/ St. Paul MN contingent. The Twin Cities had a lot of interest groups in the 90's.
Other types of evil are also worse in a multipolar world.
Python would need to implement a multiconsumer multiproducer ringbuffer or a blocking free algorithm (I'm not sure if it is wait free) such as the actor system I implemented below

To apply to Python The subinterpreters could transfer ownership of the refcounts between subinterpreters as part of an enqueue and dequeue.

I believe the refcount locking approach has scalability problems between threads.

I implemented a multithreaded actor system with work stealing in Java and message passing can get to throughputs of around 50-60 million messages per second without blocking or mutexes. The only lock is not quite a spinlock. I use an algorithm I created but inspired by this whitepaper [1], which is simple but works. It's probably a known algorithm but I'm not sure of the name of it.

I have a multidimensional array of actor inboxes (each actor has multiple buffers for filling by other threads to lower contention to 0) then there is an integer stored for the thread that is trying to read or write to the critical section.

The threads all scan this multidimensional array forwardly and backwardly to see if another thread is in the critical section. If nobody is there, it marks the critical section. It then scans again to see if it is still valid. it's similar to going into a room and scanning the room left and scanning the room right. Surprisingly this leads to thread safely. I wrote a python model checker to verify the algorithm is correct.

Without message generation within threads, it can communicate and sum 1 billion integers in 1 second due to parallelism (it takes 2 seconds to do this with one thread) It takes advantage of the idea that variable assignment can transfer any amount of data in an assignment.

See Actor2.java (1 billion sums a second messages created in advance), Actor2MessageGeneration.java (20 million requests per second, messages created as we go) or Actor2ParallelMessageCreation.java (50-60 million requests per second, with parallel message creation)

There's also a Java multiconsumer multiproducer ringbuffer in this repository [3] too which I ported from Alexander Krizhanovsky [2]

[1]: https://lag.net/papers/content/leftright-extended.pdf

[2]: https://www.linuxjournal.com/content/lock-free-multi-produce...

[3]: https://github.com/samsquire/multiversion-concurrency-contro...
> Is anyone attempting to do the same with C though?

Absolutely. In fact cfront preceded cppfront by many years ;-)
Specs are complete. If you create real world software with complete tests, I will really want to read your Turing Award receiving discourse. It should be great.
> With the way wiretapping laws work

These laws vary wildly by state... And posting notices in many states work to avoid these issues.

So are they legal? Mostly. Yes. But depends where you live and what steps are taken to inform the riders ... But they likely would not record without lawyers saying they are safe to do so.
How many people have committed such egregious crimes using blockchains that it is literally worse to spend your entire life in jail than it is to give up your Bitcoins? That scenario you've presented makes absolutely no sense to me.

But anyway, it's still entirely wrong because they can still just catch you using traditional means. Like catching you on tape admitting you stole the Bitcoins, or getting a video of you doing it, or getting credible witnesses to say that you did it. Or similarly, to retrieve the stolen coins just get a video of your keyboard while you type the pass phrase to the wallet, or just liquidate the rest of your assets into dollars and pay back the victim that way... Like the whole thing just makes no sense. Even if it did actually work it would still be terrible because the system you describe means that if you get your bitcoins stolen and you catch the thief and he admits he did it and then intentionally goes to jail to avoid having to give the tokens back so they just sit there unused in the wallet just to spite you... you can literally never get them back. Why would anyone actually want that??? I am honestly trying not to make this so outlandish but this is entirely what you just described. It's completely ridiculous.

The only thing this accomplishes is if you are trying to destroy money and make someone suffer by taking destructive actions... but like, if you are really an evil and petty criminal person you can also just do that with anything else? Like, rob them at gunpoint and set their cash on fire? Or slash their car tires? No one needs Bitcoins just to be an asshole, you can see that every day on this planet...
I tend to agree, but do note that this takes a long time.
With a head nod, you're still on the hook for contributing to the conversation.

People mark an emoji and then keep scrolling feeling good about themselves.
"Oh, and it's possible to make C as good as Rust", do you have some concrete advice documented somewhere? Thanks!
Remember the DHS is massive and took over a bunch of other agencies. Coast Guard, Customs, Secret Service, INS, TSA, Office of Counternarcotics Enforcement, and quite a few more.

Basically any justification you can imagine would fit under one of their heads, the actual reason is probably they thought the data would be useful.
We could also think of it as a spreadsheet with 2 cells.
Probably more likely than North Dakota. :)
python2.x performance was surpassed long ago. I don't think anyone bothers to benchmark it anymore.
I don't remember the details but some aspect of their behavior turned me off them. I'm also not sure I want a physical device at all.
Please ELI5 how people are able to make a CPU/anything-logic-gate etc inminecraft
Nobody is talking about one language named "C/C++". It's a shorthand for two languages that are closely related at the abstract machine level, and in terms of co-existing compiler frontends.
Third eye produces a beam of light that aids the squid
The Unmagicking of Disney
It does support C, most recently the C11 and C17 ISO standards.

https://devblogs.microsoft.com/cppblog/c11-and-c17-standard-...
I think this is why I prefer using the python idle as a calculator. You can assign an expression to a variable, but you can always scan up (assuming your terminal window is tall enough) to see what expression you used to calculate it. People are saying how this is the point of memory on calculators but once you save to M you basically need to remember what's in there. Seeing what you did to calculate whatever is better.

In a way then, the python idle is like this but with many calculators side by side.
Appeal to authority?
Exactly this. They used a simple formula to grow their company of posting some novice technical articles to HN ~15 years ago. Then the 2010's standard business practice of "contributing" to open source (I don't consider anything they've done as progress, no different than any other web company). Then ~2011 they broke Tor and kept it broken until 2018 when they made it so if you have a big 4 browser (a fork thereof: Tor Browser), you can visit pages once again. But HN already was brainwashed so they couldn't upvote articles pointing this out so it was never fixed.

The most insane backward nonsense is that Cloudflare proposed a browser extension to bypass the captcha. Like wtf will HN react if Microsoft suddenly made 50% of the web block russian IPs by default until you install a plugin they provide?

Now the only thing I worry about is how they will gimp IPFS since they are sort of leaning towards it once it or something similar replaces the web? They have to make money somehow. Any solution requires breaking things in such a protocol.
> The mayfly squid’s ultra-sophisticated control over its coloration and patterns might seem inexplicable given the often limited visibility available to it. However, if the mayfly squid’s third eye does detect bioluminescence, then the evolutionary advantage of such control becomes apparent: even in the high silt conditions of the Amazon (or some of Florida’s more polluted rivers), it can remain in communication with other squid, using what amounts to a form of cryptography.

Fascinating
Unless the average "tech dumb" person is throwing things at walls out of frustration, I don't see why that would mean more damage.

I can be very careful with something I don't understand, and I can be reckless with something I do understand.
Depends on what criteria you use for "best".

If it's performance, then, since subinterpreters run in the same process, it would be global shared state. You can't use Python objects across subinterpreters, but raw byte arrays will work just fine, provided you do your own locking correctly around all that.
Yes my examples are old because the entire point I'm making is that this outrage over "C/C++" is a relatively recent phenomenon. People 10-20 years ago didn't really care or take issue with that term.
The silver sulphide semiconductor isn't much of an improvement compared to the alternative (vacuum tube particle accelerator). But the lack of need for a vacuum is definitely convenient.
This is a tangent, but how do people comply with the MIT (or other) license when statically linking binaries?

You have to include the copyright notice and license, but I almost never see that being done (and, based on the Rust projects I’ve seen, there are often tens, or even hundreds of MIT/BSD/Apache licensed dependencies).
I think this is what happened today. I okayed a single $9 or a $10 to check any information last week. Then they put an unauthorized charge of 68 USD today on my card. This is so frustrating. Now it feels like by telling people to go a get information removed they just trapped more people.
Some scientific calculators have a button marked AC for "all clear", also sometimes in a distinctive color so you know it's important. Features like that appear aimed at people like you and me, who aren't specially trained in calculator use and have to reacquire familiarity with what the buttons do when we use the machine upon occasion.
Courts will enforce contracts for all kinds of things many would consider unconscionable, I wouldn’t want that to be my backup plan.
It is not conceptually irrelevant. With threads, you can create a Python object on one, store it into a global (or some shared state), and use that object from a different thread. You can't do that with subinterpreters tho.
This happened to me, too. I could imagine someone without connections, who is desperate, who simply doesn’t know how much software devs could make, who comes from poverty, etc. would be vulnerable.
The Hells Angels’ Role at Altamont (2018)
I am. Feel free to give me a shout via Twitter (username in my HN Bio) or via email which you can find on my Personal website (listed in Bio as well)
Comments on non-trivial code is invaluable. I do it constantly and appreciate traversing previously made comments, especially when beyond short-term memory. Regexes, multi-conditionals, all those weird edge cases. How does any of that go "out of date"? As time progresses, comments become _more_ valuable, not less. What is the use case where comments are bothersome or out of date?
My thoughts as well! We old school now :D
I just found vscode extension with similar functionality, I can imagine using this from time to time. saving time of opening spreadsheet

https://marketplace.visualstudio.com/items?itemName=nortakal...
I have a good news for you. Recently, two IBM employees appeared on Rust's issue tracker and reported their intention to port Rust to AIX.

https://github.com/rust-lang/compiler-team/issues/553
I remember busses having not-at-all inconspicuous cameras a decade ago. Now the new metro cars where I live have two-way camera + screen combinations by the doors instead of the old emergency intercoms.
> CC is a great way to skip the BS and get straight to the point.

If you enroll in a 4-year school after CC you can get the BS. ;-)
This is great, but I can't seem to copy the result. Is it just me?