skysight-inc/HackerNews huggingface dataset:
I know it's probably a losing battle at this point, but —

Would you consider using the more correct terminology "Fake" instead of "Mock"?

In software testing, the two terms mean different things. A "fake" is a thing that takes the place of a service; you call it and it returns a fake result. A "mock" is a thing that enforces expectations of its caller; you specify a sequence of calls that you expect, then you run the caller and it verifies that the calls occurred in the manner and order expected. They are used for different purposes, and it's useful to have the clarity of two different terms for two different things.

In particular, it is usually a better testing practice to use fakes instead of mocks. But now there are some testing libraries that create mocks (and call them mocks) and other testing libraries that create fakes (and also call them mocks), which has confused the issue and made it harder to speak clearly about a fairly important testing strategy decision.

What HTTP Toolkit does is produce fake replies to HTTP requests. So "fake" is the best term for what it does, and thus I make this earnest plea to use that term to distinguish it from mocking, which it doesn't do.
I guess I got lucky then.
More often than not I end up creating variables for a bunch of chained function calls just to get the debugger output right, I might be holding it wrong though.
I love Dr Burns' work. I sometimes wonder if a company which wanted to provide good customer service would do Testing at the start and end of every support case.

(And not "how did we do?" email surveys which mean "punish the call handler for anything less than 5 stars")
Yes, just because it’s hard to find a lender that will except those terms doesn’t mean it’s not possible.
1.) Price sensitive demand in retail electricity markets.

In short, everyone will participate in the wholesale markets (on the retail side) through automated bids. You put in how much you want to pay and as electricity becomes more expensive, eventually you're curtailed. With uncertainty in a fully renewable fleet (assuming nukes don't get built in mass), the demand will have to match whatever supply is available. This is starting in baby steps today, but will likely extend in other areas as well. This will take a lot of software at several levels.

2.) Not something I'd expect to happen in the next decade, but I think automatic and frequent voting will eventually happen if security is ever improved.

As of now, it is still a long ways off and there is a relevant xkcd about a developer horrified about exposing voting to modern software development. The "demarchists" from the "Revelation Space" series by Alastair Reynolds do this where they're constantly polled and vote on issues and government is largely based off of that. I can't see that happening in the US (a true democracy and not a representative based one), but it could be used as a tool to help those in power make decisions. We have smartphones that could do this today.

3.) I'd really like to move away from Windows/Mac/Unix at some point in the next 50 years for something far more simple.

Tablets don't seem very productive and the average desktop os is an absolute cluster f. Honestly, I'd love to have a very simple computer with a fast processor and lots of RAM that is somehow similar in nature to a C64 in that it's fairly simple to just boot right in and give it some commands to move something around the screen and build a game in a half hour. I want more though... something similar to Wolfram Mathematica built-in. The internet, but no web browser black hole [you'd have to fix the internet first :) ]. In short, throw out the unmaintainable mess that exists today in favor of a better, more holistic design. Maybe the Smalltalk-80 method, but Forth, Rebol, and Tcl stick out more to me. Maybe something like the power of a modern computer with a far greater simplicity in mind. No automatic spyware pushed by Microsoft or incomprehensible bloat. There was a group looking into this sort of thing that reached out to me on HN once, but I've been unable to find their page. I believe they tried to use sea vessels as a metaphor for computing where a "dinghy" is what you would ultimately want. I know things are built off of the shoulders of Giants, but computing seems to have lost its way in some respect. Why is it so hard to do GUI stuff in 2021? There are 1000 frameworks and they're all insanely complicated.
Protobuf string fields are expected to be in UTF-8. Although I'd expect a sane implementation of a protobuf decoder to throw an exception or otherwise indicate an error if it receives a malformed protobuf encoding.
I feel like the stock market will freak out at any significant rate hike and we'll have a depression on our hands.
In what world is this the "only way to chat with the opposite gender"
Anyone here homeschooling who can help me out?
Hi homeschoolers! I’m wondering if you might be able to help me out. I’m trying to get some data around the social life of homeschoolers, because it doesn’t seem that there is any good data about it - and people make a lot of assumptions (many which are not true). To give you some context. I’m a teacher, and I’ve also started a new company that helps families design their children's education (including academic, social and childcare needs). Several families have told me they would homeschool, but they are concerned their children wouldn't have friends.

The purpose of this survey is to get a better sense of how lonely homeschoolers are relative to children in "traditional school." We hope to get 2000 responses from homeschoolers around the world and share this data to better inform parent's choices around homeschooling.

If you currently homeschool and would be willing to fill out this survey, it would help a lot. Also, if you have any friends who currently homeschool and would be willing to pass it along to them, that would be a big big support. I want to collect at least 2000 responses so we can get some meaningful results.

Your answers are confidential.

Feel free to ask me any questions or give feedback on the questions, research approach or anything else. I’m not a professional data analyst or researcher so I realize there may be some room for improve. Thank you so much and have a wonderful day.
https://docs.google.com/forms/d/e/1FAIpQLSfEOM3UB4RJm4VufSx3-asTl3pWtO_y1Ukw9Dp2CXLWtPVPDQ/viewform
But you do code on a whiteboard?
Spinach and Kale.
I think I strongly agree with this article, but I'd have to pay to find out for sure; ironically, I mostly don't think that would be worth it explicitly because I already believe myself to agree with the article (and thereby will gain nothing from reading it ;P).

But, yeah... the entire premise of "the Metaverse" (note my typographic decision to use a capital M) is that it should be like "the Internet": a singular concept represented by a proper noun. If you have competing internets that are somehow incompatible, then they have each failed to become the Internet; even back in the 80s people got this: the premise was that, if there were ever two internets, someone would figure out how to connect them together to achieve a single "the Internet", due to the open and flexible technology stack.

Facebook, in contrast, is all about creating walled gardens, and only pays lip service to the concept of an internet... they are the last company I could ever imagine building or even participating in "the Metaverse", and are much more likely to do everything in their power to prevent such a thing from existing.
You know, for grain storage, and for the ancient aliens to communicate through crystal power, or a flooded Bass Pro shop.
>It left plenty of room to add a 40 byte garbage collector.

Oh yeah. Who wouldn't splurge if you have a massive 40 bytes left. Beautiful.
There's a misunderstanding about which version of Doom people are talking about. I think you're talking about the PC version while the person you replied to was talking about the PS1 version.
They also make a fully discrete kit: https://shop.evilmadscientist.com/productsmenu/652
The article is very interesting, but here's a point not discussed in the article: an old refrigerator is terrible for the environment! Its energy efficiency is low, and it is dangerous for the ozone layer: https://www.theguardian.com/environment/2005/dec/08/science....

That old car must not have a catalytic converter either, a godsend for our environment.

Keeping old things around is good for the environment. Keeping an old fridge and car from the 60s, I'm not so sure.
As someone who’s spent their career gluing react libraries together, something like this does make me wonder how good some people really are with computers. It’s all the same assembly instructions in the end
I don’t see any job ads requiring Prolog. So maybe not the best choice.
The thing is desert structures still have to deal with water ingress.

It does rain, and when it rains it's often a blowy monsoon of doom, assaulting desiccated wood structures which more often than not have developed some leaks from the year-round wind/sandstorm/thermal/UV abuse and complacency promoted by deceptively always-dry conditions.

And when lumber that has been dry and 120F+ for half a year abruptly gets soaked in water, its dimensions quickly change in non-uniform ways; it twists, bends, splits, and softens. If any of this moistened wood juice finds its way down into the ground, subterranean termites discover the food source in a veritable food desert. I think you can guess what follows.
Was hoping it was a B-21 Raider.
We are saying the same thing. People drink to feel better despite the fact that it doesn’t help in the long term.

It’s just as important to examine and understand the psychological drivers behind drinking as it is to understand the physiological impact.
I’m all for reducing our military spending but wouldn’t support giving it to the UN. Why would the UN be better at spending it than congress?
I was stating that the author may not have the knowledge to write accurately about a complex topic they don't seem to understand.

Had you phrased it just like that, I question whether the original post would have been flagged. As it was, you quoted one sentence and said the author has no credibility. Call it poorly phrased, call it rude, maybe English isn't even your primary language, but "politely stated" doesn't appear to be on the menu of choices for how your original post came across. Which is unfortunate, because it would appear that you have some knowledge on the topic. Just my two cents from the peanut gallery.
>Re: Ubiquiti

Investigators say they were able to tie the downloads to Sharp and his work-issued laptop because his Internet connection briefly failed on several occasions while he was downloading the Ubiquiti data. Those outages were enough to prevent Sharp’s Surfshark VPN connection from functioning properly [0]

Yeah, surfashark takes an extra few minutes to load after you start your machine. Maybe he got over eager. I wonder if he has a good lawsuit case for this "Your honor, I was trying to do crime but the failure of the defendant's product resulted in a life-ruining indictment"

[0] https://krebsonsecurity.com/2021/12/ubiquiti-developer-charg...
Cool, I love more audio drivers… no joke. However how is this different than say loopback or soundflower? Other than it may actually work, I’d love to see a hyper nerdy deep dive into the intricacies, challenges and choices that led to this clump of code coming into existence.
With construction or moving? I'd rather keep my home the way it is, thanks.
JSON[1], for instance, specifies:

1. "JSON syntax describes a sequence of Unicode code points. JSON also depends on Unicode in the hex numbers used in the \u escapement notation."

2. "A JSON text is a sequence of tokens formed from Unicode code points that conforms to the JSON value grammar."

3. "A string is a sequence of Unicode code points wrapped with quotation marks (U+0022). All code points may be placed within the quotation marks except for the code points that must be escaped: quotation mark (U+0022), reverse solidus (U+005C), and the control characters U+0000 to U+001F. There are two-character escape sequence representations of some characters."

4. "Any code point may be represented as a hexadecimal escape sequence. The meaning of such a hexadecimal number is determined by ISO/IEC 10646. If the code point is in the Basic Multilingual Plane (U+0000 through U+FFFF), then it may be represented as a six-character sequence: a reverse solidus, followed by the lowercase letter u, followed by four hexadecimal digits that encode the code point."

5. "Note that the JSON grammar permits code points for which Unicode does not currently provide character assignments."

JSON does require Unicode awareness, both for general parsing, and for correctly interpreting strings. Backslashes are allowed for special escape characters, which means that you must be aware of the format (and the encoding of the text) in order to be able to decode.

Note that JSON also doesn't specify a required encoding, only Unicode correctness, so a parser may need to be able to handle multiple Unicode encodings and differentiate between them.

The spec doesn't specify what to do with code points which are not understood as Unicode (given especially the allowance for unassigned characters), but explicitly-invalid Unicode should be rejected.

[1] https://www.ecma-international.org/wp-content/uploads/ECMA-4...
By "decode a string" do you mean that you must apply some sort of Unicode transformation to it? If so, the HFS+ file system, which .dmg files often are, is an example: Unicode NFD normalization must be performed on all filenames because of case insensitivity requirements [1].

[1]: https://eclecticlight.co/2021/05/08/explainer-unicode-normal...
The problem is you've invented your own definition of the terms "string" and "string handling" which doesn't seem to agree with the generally accepted usage of these words. You're fixated on the word "decode" despite that not being the original focus of the discussion, not being present in my comment or the original comment you're replying to.

I could create a standard library called "arrayofbytes" that lets you, for example:

- Search an array of bytes for a smaller array of bytes

- Split up an array of bytes based on an array of delimiter bytes

- Selectively convert an array of bytes in range 41-5A to bytes in the range 61-7A

But wouldn't it be more appropriate to describe these as "string handling" functions using the generally accepted terminology of our profession?
> We propose that half of the resources freed up by this agreement are allocated to a global fund, under UN supervision, to address humanity’s grave common problems: pandemics, climate change, and extreme poverty.

Hahaha I’m sorry, but the UN? They can’t be serious...

So the goal is what, Ukraine gives up a portion of its citizens taxes to fund some famine in a far away land? As opposed to military spending on its defense? I’m sure Russia will agree to this lol

I don’t pay taxes to help other people. I pay taxes to protect myself.

This is the problem with proposals like this. It’s totally fine for donations, but don’t tax people in one country to help another. It won’t be popular.
In Sweden we sort them by colored or translucent, they'll be smashed and reheated to be made into brand new bottles. Haven't seen used bottles in quite awhile, not sure if it's good or bad.
You seen multiple national guard unit commanders evading orders, bidding their time to see who comes on top of that mess — in the history of US military such conduct is unheard of.
Author here. Thanks! The other projects I'm known for here on HN are:

https://news.ycombinator.com/item?id=26271117 Redbean (2011) is a single file distributable web server. Here's a video of me giving a talk about it https://youtu.be/1ZTRb-2DZGs

https://news.ycombinator.com/item?id=24256883 αcτµαlly pδrταblε εxεcµταblε (2020) lets you build c/c++/fortran/etc. code so that it runs on seven operating systems

https://news.ycombinator.com/item?id=13769727 Operation Rosehub (2017) where I helped save a lot of people from an Apache security bug similar to Log4j issue today

I like doing these projects because they all fit together so well into a consistent story. For example, a lot of these past projects were what helped to make SectorLISP better. Thanks to APE you now have a 20kb quickly deployable and embeddable LISP interpreter. Thanks to Redbean we're going to have an online pastebin service that'll let you publish SectorLISP gists in a few days, for example: https://lisp.pub/1

Thank you Hacker News community for being so supportive and encouraging.
Congratulations! And welcome Isaac, I loved his Zig+Wayland screencast [1], where he explained very engagingly how Zig is able to embrace and extend a pretty hairy C library and make it more memory safe, without forcing the implementor to rewrite or painfully try to bend it to the strict or idiosyncratic rules of the language, as it may happen with Rust or even Go.

I can't wait for 1.0! Or at least until the docs are a bit more accessible... :)

1: https://youtu.be/mwrA5IRGpfU
/subscribe
What a win for justice! I'm so glad that we were able to clear the name of the innocent CCP Vice-Premier, who was so maliciously accused, and that the family of the tennis star was returned safely to their home.
This article completely reads like it's trying to sell a scam.
I'm here in latin america right now. they definitely do. Especially if you are in a city like medellin or bogota
Yeah, the idea that major game studio is a toxic hellscape of harassment with HR being so incredibly dysfunctional, is really mind blowing, and yet that's exactly the state of the industry.
- it didnt, at least not Intel x86 MHz

- doom doesnt operate on pixels, it operates on constant-z planes (lines), you can scale linearly inside those (cheap 2D operation).

How Carmack did it? He cheated by deciding to never look down/up or draw slopes :) 'HandmadeCon 2016 - History of Software Texture Mapping in Games' https://www.youtube.com/watch?v=xn76r0JxqNM

Chris Hecker (Microsoft/Maxis/etc): that's a classic Carmack thing which is like Fuck those general problems, Im gonna solve this other problem perfectly

John Miles (ORIGIN/Miles Design/etc): Its all about not doing the math, we were still at a point in time when you won by not doing the math
This is not how it works.
Thanks for sharing. Are there any dataflow frameworks you are particularly pleased with at the moment?
>Fib is a weird case because it's the poster child of dynamic programming.

It's actually got a closed-form solution, so finding the nth fib number is O(1) (assuming O(1) arithmetic).
https://en.wikipedia.org/wiki/Fibonacci_number#Closed-form_e...
Is log4js-node affected by the log4s vulnerability? (no)
log4js GitHub Issue #1105 - a great answer from gmillerd:

"""
This is a JS implementation of a log4 like pattern in js, it is not a port of log4j nor log4j2. It doesn't use jini or ldap.

log4js doesn't have a native way to eval or execute code in the methods, you pass it values and it logs them (I think I am on solid ground for the appenders plugins as well, obviously someone could do that).

That said, anyone that can generate log messages can impact something.
I've seen it all the time, not asprin though more usually lidocaine and other oral OTC oral painkillers

being able to go a dentist and get work done right when you need one is a privilage/luxury
I’m not aware of any significant breakage due to Go’s handling of strings. Where would I read more about this?
Imagine how much longer it could've laster if Google wasn't about to remotely brick it.
> After some minor optimizing, on my laptop here are benchmarks on filling a 1kb byte array:
>
> Mwc-256-X-X-A-64 (This algorithm): 100.98 ns

That comes to 10 GB/s. For comparison, I think ChaCha8 implemented with AVX-512 should run at a similar speed. Maybe a bit faster in short-ish, single-threaded benchmarks.

To be clear, there are plenty of caveats in making this comparison: ChaCha8 won't hit that throughput on any output size smaller than 1 KiB. AVX-512 requires a very recent processor. Most library implementations don't include AVX-512 support. Power usage will be high. Downclocking will be an issue, especially with multithreading. Etc. etc.

But in exchange, you get all the security properties.

I think one takeaway here is that the gap between cryptographic and non-cryptographic is smaller than many people think, which argues in favor of secure defaults. (Though to be clear, I don't think OP or anyone in this thread is opposed to secure defaults.) Another takeaway is that a lot of these blockers, like hardware and library support, will continue to improve over time. So if you find that a CSPRNG isn't fast enough for your use case today, make sure to check again in a few years. And of course, as always, it's important to benchmark your specific use case if you're worried about performance.
You need to figure out what your goal is first. And then pick the skills that are most likely to help you achieve that goal. If your goal is to broaden your general understanding of programming then learning Elm or Haskell is a good choice. If your goal is to become a web developer then Typescript + React is a good choice. If your goal is to become a game programmer then Unity or Unreal is a good choice. Etc. Etc.
Russian charged as part of ring that made millions through online skullduggery
Speaking of BS

> Since OnHub routers were introduced 6 years ago, a lot has changed. In 2022, support for these older devices will end.

Given the devices were over spec'ed to allow for future expansion I highly doubt they're outdated already.
Counter argument: ever seen the proof for simple addition in English? The verbosity and/or opacity of the definition of a system isn't a great proxy for value or ease of use. Principia Mathematica uses over 1000 pages to reach the proof that 1+1=2, formally defining and explaining everything needed along the way, establishing fundamentals and primitive types and so on.

Brainfuck isn't a great interpreter language. It is a great perspective language. If you can break your tasks down sufficiently that you can express your program in brainfuck, you can take that understanding back to a more performant and expressive language. Doing Rosetta code exercises in esoteric languages forces your brain to model programs with more nuance and detail. If raw machine level performance was the only thing that mattered, we'd be writing everything in assembly. Different languages can have different utility, though, and while brainfuck is less useful as software, it is an excellent tool, not just a toy.
I would guess that at least one out of four drivers is exceeding the speed limit at all times, so the fact that one out of four fatal crashes involves speeding doesn't say much. it's odd to start off the article with such a weak statistic and say nothing about how tenuous the causal link is, but the the rest of the article does a pretty good job exploring the absurdity of US speed limits.
I use the same Linksys WRT54GL since around 2006 and it never drops the connection. I flashed dd-wrt on it back more than a decade ago and it "just works".
Yes who cares

Take the risk or don’t
I didnt see a way to do this if the column is starting TOP to BOTTOM. I specifically want to set the second item in the stack ( ie the one on top ) to be anchored to bottom of the physical screen. I didnt see a way to do this with flutter flow's drag and drop.
That's my position. I don't want to give the UN money (look how dysfunctional and corrupt the WHO is), but I do want military spending to go down. Why make it more politically difficult than it needs to be. What's the benefit of coupling reductions in military spending with giving more money to the UN... These are totally unrelated things and coupling them needlessly achieves nothing.