skysight-inc/HackerNews huggingface dataset:
Oh, I definitely could post an equivalent example in Python and C. There's simply not enough space on the sidebar to do it ;)

If you ever, like at all, had the pleasure of using any Python library without type hints - past iterations of numpy and in particular matplotlib come to mind - you'd be blown away by the amount of

def some_function(*args, **kwargs)

Have fun trying to figure those out even with an API reference at hand. Fun times.

Also C does have equivalent syntax, namely variadic functions in combination with function pointer arguments. You can design all kinds of crazy interfaces with that, too, which will exhibit strange and unexpected behaviours if used incorrectly. Heck, name a single C noob who didn't cause a segfault while trying to read a number using sscanf().

When it comes to stdlib interface design, C is actually much more offensive than JS :) strtok() comes to mind. More footguns than stars in the sky just in that innocent seeming function alone. And don't even get me started with the C++ STL...

So no, it's not just JS that makes design choices that seem odd and unintuitive - you'll find them in every language that is actually in widespread use and "battle tested". It's funny to me how some people try to single out JS in that regard, even though it's in no way special when it comes to this.
A VM is not a VM. Just because a program’s semantics are defined in-terms of “a” virtual-machine (Java, .NET, etc) - it’s otherwise entirely unrelated to virtualisation.
I have interacted with more than a handful of job postings where the invitation to create a take-home deliverable was clearly a) an attempt at labor theft or b) a manager using the process to catch new buzzwords and troll for ideas to take to their team, which is still a form of labor theft.

At this point I view the practice as a signal the position wouldn't be a good fit for either party.
This is one of the other three secret blends that I think could bring memory safety to C++!

I wrote a bit about using type-after-type as the basis for an entire language (Arrrlang, with a parrot mascot) in my last article [0] and a little bit in a post about memory safety for unsafe languages [1] which we eventually talked about at Handmade Seattle.

The downside is the extra memory usage, but I think we can combine it with temporary regions [2] to reduce it pretty drastically.

TIL the phrase type-after-type! I've also heard it referred to as type stability. [3] [4] If you squint, this is what we often do manually with Rust when the borrow checker influences us to use indices/IDs into central collections.

[0] https://verdagon.dev/blog/myth-zero-overhead-memory-safety

[1] https://verdagon.dev/blog/when-to-use-memory-safe-part-1#the...

[2] https://verdagon.dev/blog/zero-cost-borrowing-regions-overvi...

[3] https://www.usenix.org/legacy/publications/library/proceedin...

[4] https://engineering.backtrace.io/2021-08-04-slitter-a-slab-a...
I do get the point, I'm saying that the analogy was bad.
Relevant links:

https://en.wikipedia.org/wiki/Scientific_theory

https://en.wikipedia.org/wiki/Fact#In_science
I mean, if I had an easy-enough way to use them, I absolutely would.

Docker isn’t ideal, but it’s common, and the UX is decent enough. If a unikernel solution existed with near-enough quality of UX and deployment, I’d 100% switch.

> But nobody is using it.

The development community at large often chooses to use/not-use things (packaging solutions, tooling, engineering approaches, software architectures, etc) for a huge variety of reasons, not all of them based in any kind of logic or benefit. I suspect microkernels could become a viable solution for some things, they just need a “docker moment”.
I do get the point, I'm saying that the analogy was bad. The point could have been made better.
Or even something along the lines of "Susan said x."
Yes. I stand by what I said.
Nothing to do with React, it's a common optimization to improve performance with long lists. You only render the dom elements in the viewport, with some buffer. A common technique to achieve that is called "virtualization" or "windowing".

It's common enough that there were a couple browser proposals to deal with this and would address the Ctrl+F issue. I believe this has been merged into the CSS Containment spec, but at the moment it doesn't make windowing obsolete in every situation.
This is one project I’m rooting for. The world needs better than SQL
Unfortunately, human communication is extremely complex. Researchers are only beginning to scratch its surface.

The current approach is to fit them with helmets that project sounds and images of boats for the humans to sail in. Then it's just a matter of shooting the relevant humans with non-lethal darts and fitting them with the helmets. However, that's easier said than done. And there are latency issues with the helmets. (Not to mention early research suggesting they become less likely to mate, plus a whole host of health issues which we don't see in the wild.)
Not really economically viable unless you narrowly focus on profits. For total direct and external costs (i.e. total societal costs) it's already nonviable.
Are you a windows/linux user that finds Mac mice always feel weirdly slow or "wrong"? This fixes it, and is frequently updated. Mandatory new mac install item for me.
You completely totally and absolutely missed the point. It is about moderation, and rules there are usually MORE vague than "no vehicles," they are usually things like "no hateful language," which is so vague, that "no vehicles" is beginning to look pretty cut-and-dry by comparison
And their failures cause those same countries non-trivial amounts of money.

Consider the Coast Guard and Navy efforts for this latest event.
I really want this to be something that has been going on since long ago, like "there be dragons" long ago. Only, the brave strong men didn't want to admit that some cute looking Free Willy animal was causing the havoc, so they all agreed to make it scary sea monsters type of tales.
While that is probably true, the problem still exists that renewables produce a lot of electricity when there is not enough demand for it. Iron combustion is a solution for that problem.
> perhaps the issue is with you

I don't appreciate the insinuation, I generally expect more from HN. But I'll bite.

I've only ever been banned once, myself. I used the words "January" and "6" in close proximity in a discussion, and it turns out it is an unwritten rule that you may not mention that date. I've had friends get banned because they posted in an unrelated subreddit that the moderators did not like. And I've seen randos banned for nothing more than observing that the moderators were reactionary. No attacking, no profanity or anything like that, just an observation and -bam-.

You can see hints of the frequency by the sheer number of "[deleted]" accounts that show up in a typical large discussion.

Reddit is a cesspool these days. Virtually all major subreddits are now dominated by politics, and you get banned quickly if you say something which is perceived to be against the preferred ideology of the moderator.
What if you add a license to your code deliverable, mentioning it is only to be used for interviewing purposes?
> The question then becomes, who's actually saying this? It's certainly not real engineers. In fact, real engineers have pointed out that it is much cheaper to distribute hydrogen than electricity:

I struggle to understand why you would say this. Here is one example. Paul Martin is a Chemical Engineer (that’s the right kind of engineering to talk about this topic). https://www.resilience.org/stories/2023-03-31/paul-martin-hy...

If you actually take off the “hopium” goggles and critically evaluate the problems, I think the truth is the hydrogen solution is not only unsolved it also probably can’t be solved.
Orcas are apparently afraid of pilot whales.
That's the reason I advise against them.

Unless you are the top company in your bracket, your completion rate will also not be so great for a take-home (people have limited time: they'll sort by how good your company is). Sure they'll do Google's take-home but local business that does local comp/prevailing wages? It's at the bottom of the pile. By the time they get to it, the best candidates will already have an offer from a better company.

That's why I prefer to bring people on-site as soon as possible, and do a little whiteboard (the point being that the candidate must... know how to code!). It's an artificial challenge that's really a pretext to have a technical discussion.

Only time I advise to use take-homes is when you are dealing with a massive number of applicants from institutions that have a poor signal to noise ratio. Bootcamps come to mind. But then you end up with candidates that have the homework done by someone else and it ends up not being a good filter either.
Regardless of whether you do actually get the point, when multiple comments indicate that they think that you didn't get the point that tells you that you have failed to communicate that you got the point. Doubling down doesn't help
This is silly, though? Rules and legislation is also usually layered in such a way that other rules can supercede.

Such that, if your model of how rules and regulations work is that they are all active at all times.... I have really bad news for you. For fun, consider that there is still the 18th amendment to the US constitution. There is just also now the 21st amendment to go with it. And at no point did we have to redefine words for that trick.
The number at the end is unclear - it says I agreed with the majority 11%, but then it shows a bunch of charts. Yet the three I said were vehicles (the car, the police vehicle, and the ambulance) are the only 3 above 50% support, so it seems I agreed with the majority 100%. I even opened a second session in another browser and hit yes to everything to see if the numbers in the chart was the amount that agree with me, and no, the numbers didn't invert so it seems the chart is measuring yes answers.
Based on https://wccftech.com/spacexs-3d-manufacturing-systems-suppli...

SpaceX does use 3d printing in Raptor in some form. Although it might just be for one off parts for prototyping before changing the production line.
Crypto is by definition a red flag. I don’t believe honest good people involve themselves with crypto.
I'm not sure if there's really any alternative besides using a subset, for a low-level language. Even Rust is only memory-safe within a certain subset.

Edit: Actually nevermind! CHERI is a hardware technique that can make C++ memory safe without using only a subset of the language.
I answered the questions expecting a logic puzzle, but it is very much not that.
> There are people willing to pay a premium for that.

I wish this existed in the laptop space, where I can't even buy what I want.

But the Talos II exists, where you can get 4 threads per core for the low price of... oh, just $8,000.

That's almost one and a half MacBooks!
That makes a ton of sense. I was always confused by that. Reddit has a ton of rules in place, particularly against advocating for violence. I reported a few comments that called for death penalty for someone. Those comments were always greenlit. Maybe I just take stuff to literal. But some people sure have a hard-on for the death penalty...
Perfect illustration of how tricky it can be to draw a firm line.
Another survey in this same genre is "the rape spectrum" with >5k respondents ranking scenarios: https://aella.substack.com/p/the-rape-spectrum-survey-result...
Tough topics to discuss (I see why the OP went with vehicles in the park). I'm glad I'm not in the content moderation business!
"for the past 4 years" is some dedication. kudos for not giving up
Nitpick: The summary at the end labels your choices as "You think it is not a vehicle" or "You think it is a vehicle" based on whether or not you said the situation violates the rule, but some of the scenarios were clearly about whether or not something was in the park, rather than whether or not it was a vehicle. I can think a plane or a space station is a vehicle without thinking it violates the rule about not being in the park.

Yes, I'm aware this has nothing to do with the point of the exercise.
well, obviously you failed their test but you were the best option they had.
Etebase – Your end-to-end encrypted back end
Archive link for the same thread in that dying site: https://archive.fo/qr5dZ

Because once July 1st hits the site will be likely filled with more trash than actual content. It's unwise to rely on it.
Or he has a different opinion than you. What is the point of your post, just a lame scolding?
What this highlights is that online we have lost - or at least eroded - social norms. If I see a sign that says "no vehicles allowed", it's obvious they don't mean wagons and strollers. In almost all cases the police and the public are 99% in sync. Online, though, the moderators are forced to do a careful study of every action and become asinine literalists lest a horde of boundary-pushers ruin it for everyone.
Do you expect them to let you read the article and then just walk away without payment?
I do not know how to communicate "I got the point" more than "I got the point". Please tell me how to communicate "I got the point" better than saying "I got the point".

They think I didn't get the point, but they're wrong. Hope that helps!
Any oenophiles (wine connoisseurs) here, to comment on varieties which do well when the 100+ degree (F) Texas heat waves start in June? I'll guess there might be a few from southern Spain & northern Africa, but...
the authors seemed to have lost an opportunity to name the paper "In the Shallow-lalalow"
> I assumed that Oceangate was attempting to make deep sea submarines more affordable.

Why? Especially when their target audience is/was billionaires with plenty of money to spend on novel experiences. I imagine their pricing takes this into account.
Or impending planetary destruction? So long, and thanks for all the fish!
There are several different ways you can implement a Handle, depending on what features you want; the most important part of its implementation is that `fn is_valid(handle: Handle) -> bool` is possible. The simplest implementation is a (pointer, generation) pair, which can be packed into a u64 pretty easily even for 64-bit systems; every allocation and deallocation increments the generation counter in the allocator, and is_valid is thus implemented by checking if the allocator's generation matches the claimed generation for a Handle. This kind of Handle is effectively a Copy implementation (not merely Clone!).

Effectively, handles are like weak pointers in that you can detect when the underlying object has been freed, but unlike weak pointers, there's no need for a reference counter to know when to deallocate the object--the object is freed when the allocator itself dies, or it can manually be freed earlier. It is possible to write code that will attempt to use the freed object, and the compiler will be happy, but the runtime will detect that it has been freed and panic instead. (RefCell does something similar, except it only detects violations of multiple readers xor one writer requirement, not overall lifteime). You can also add other wrappers around Handles to automatically free those Handles on scope exit, but the point is you can now have multiple references to an object that can be upgraded to a mutable reference if you desire.
I said no to every question as even in the cases where a vehicle did enter the park, it was only one and the rule says "no vehicles". Remember that the No Homers Club was allowed to have one Homer.
In this case, there are just three angry internet commenters who want to tell someone else they're wrong. It's not GP's problem. I agree with GP -- it's a bad metaphor. GP doesn't owe you litigating that in depth.
> Without syntax to say "this is an object",

How about this syntax?

#include "oo.h"

DEFINE_CLASS(Counter,
int METHOD(Counter,getValue,NO_ARGS);,
void METHOD(Counter,increment,NO_ARGS);,
void METHOD(Counter,decrement,NO_ARGS);,
void METHOD(Counter,multiplyThenAdd,(int multiplyBy, int add));
);

That's valid C, given appropriate preprocessor macro definitions.
It is a bit ugly, due to the limitations of the C preprocessor.
(Maybe someone else can do better than me.)
If C had a more powerful preprocessor, but was otherwise unchanged, the syntax could be a lot nicer.

The DEFINE_CLASS() macro expands to declare a function:

Counter* newCounter(void);

Why isn't the return value of that function an object?

Here is the contents of "oo.h":

#include "cloak.h"

#define JOIN(...) JOIN_IMPL(__VA_ARGS__,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,)
#define JOIN_IMPL(_1,_2,_3,_4,_5,_6,_7,_8,_9,_10,_11,_12,_13,_14,_15,_16,_17,_18,_19,_20,_21,_22,_23,_24,_25,_26,_27,_28,_29,_30,_31,_32,_33,_34,_35,_36,_37,_38,_39,_40,_41,_42,_43,_44,_45,_46,_47,_48,_49,_50,_51,_52,_53,_54,_55,_56,_57,_58,_59,_60,_61,_62,_63,...) \
_1 _2 _3 _4 _5 _6 _7 _8 _9 _10 _11 _12 _13 _14 _15 _16 _17 _18 _19 _20 _21 _22 _23 _24 _25 _26 _27 _28 _29 _30 _31 _32 _33 _34 _35 _36 _37 _38 _39 _40 _41 _42 _43 _44 _45 _46 _47 _48 _49 _50 _51 _52 _53 _54 _55 _56 _57 _58 _59 _60 _61 _62 _63

#define DEFINE_CLASS(name,...) \
typedef struct name name; \
typedef struct name { \
void *_privateData; \
JOIN(__VA_ARGS__) \
void (*destroy)(name**); \
} name; \
name* new##name(void)
#define METHOD(class,method,args) \
(*method)(class* COMMA_IF(IS_PAREN(args)) WHEN(IS_PAREN(args))(EXPAND(EXPAND args)))
#define NO_ARGS

Where cloak.h is https://github.com/pfultz2/Cloak/blob/master/cloak.h

The above macros are admitttedly very hairy. If C had a better preprocessor, but was otherwise unchanged, they could look a lot nicer.

> I never said such a thing. Would appreciate if you didn't put words in my mouth.

A normal part of dialogue is, "I'm going to repeat your point back to you in my own words, and you can either agree with my restating of it, or point out at which point I've misunderstood you". That's what I was doing. "Would appreciate if you didn't put words in my mouth" is unnecessary hostility.

> In my concrete example, given that FILE and DIR were classified as objects, to which of the so-called objects does F(const char*, FILE, DIR) belong?

Take any language which you agree is "OO". Add one new feature (if it isn't already there): functions/methods which don't belong to any class/object. Now the function you are talking about is possible in that language. Did the language thereby suddenly cease to be OO when we added that feature? Most people would disagree with "Yes". But if "No", what is the actual difference between C and that language?
If you think that’s enraging just wait until you get a page that unloads the previous content as you scroll. You can only search the text that’s visible. Maddening.
Flash never sucked or had power use issues. Maybe Mac users had a sub par experience.

Mobile first was the issue. Adobe bought it and blundered about, they could still resurrect the thing but have no vision.
I'm not in the habit of regularly following new Rust RFCs, so I'd have no way of knowing about something made just last week. :-) But I'm taking a look now.
I think that the 11% majority are the people that had the exact same answers as you for all questions.
I think it's giving you a percentage of people who answered exactly the same as you on all questions.

Edit: Okay I have no idea what it's meant to be (other than "11")
> the absurd pressure and ambiguities of real-time whiteboarding or live coding, which is not at all representative of how people normally work

How do you qualify “build us a full system with tests and everything in 6hr plx”?
Are you really going to be happy with 5 minutes of effort from a recruiter? If you got 5 minutes of their effort, then you’d ask for 15 minutes from an engineer.

You want these jobs more than they care about you as a candidate. If one of the companies that sent you a rejection had instead hired you, would you be insulted about how they treated the other candidates? No, you’d probably take the job and be happy you got it.

It’s a game and you’re each playing by your own rules.
Entropy and the Origin of Life
How about 224.0.0.0/4? There are vastly more addresses going to waste up there...
I think what it highlights is that the meaning of words depends on context and stripping all context from a rule and situation makes that ambiguous. Reading more into it than that seems silly.
Seems like a very fair nitpick to me considering the semantic nature of the game in the first place!
I'm not sure this has much to do with RAII. RAII does indeed require affine types, but RAII doesn't provide memory safety. The article describes a method of memory safety.

(Also, I used the term "borrowless affine style" mostly because people might hear the term "affine style" and assume I'm talking about Rust, since that's what most people know.)
They'll probably want to keep the pressure on rather than letting the Russians get over it and regroup. The Ukrainians can't know the result of the infighting so keep going and hope the infighting improves their cause.
DIY install is great. It's really not hard and saves a huge amount of money.
Some relevant resources:

Cruising Association orca notification system
https://www.theca.org.uk/orcas

GT Orca Atlantica - information about the Iberian orca and interactions
https://www.orcaiberica.org/en
I'm looking for better ideas that don't require a million dollar advertising budget.
Is it? It seems there's a clear majority that vehicle = operational motor vehicle. The only two that are even close to 50/50nare the non functioning memorial tank, and the bicycle. I guess that shows a disagreement between those assuming functioning is a requirement, and those reading into the intent (which is devices operating at human scale in pedestrian spaces capable of achieving a speed that would cause injury). But neither of those interpretations are surprising
This has been the story of my professional career.

For example at one place here, Centro Ático of Pontificia Universidad Javeriana, they assigned people to create a whole website (several pages pulling media) with plain HTML+CSS+Javascript, which I did. I don't remember how much time they gave but it took days. Even I pulled an all nighter on that because it was that demanding and I had a full time job at that moment.

After that, they selected the ones they liked the most and called them for a presential interview. They called me, I had to make up an excuse at work so I could go to that.

Ghosted. Never heard from them afterwards.

Same with many other places where they make you feel at home and the communication seems to be great - most recently, at "RebelMouse". With the Silicon Valley Bank thing they told it wasn't a sure thing they would hire someone. I did the test anyway. After several weeks they told me they finally were reviewing my test. But more weeks passed and never heard anything. Asked them about that, even saying something like "I don't think you're the kind of company that ghosts people!"... But turns out they are.
When I was 16 years old I took a job at a travelling carnival that was in town for a long weekend. My job was to run a helicopter ride for little kids. The green button started the ride, the red button stopped it. And if it didn’t start, I was instructed to give the control unit a moderate smack. It worked.

This was in Canada, ~1990. Awhile ago admittedly, but I haven’t looked at travelling fair rides the same way since.
GP was mentioning possible solutions. You are reaching for impossible ones.
If it's random value, then generated UUIDs won't always be ascending which defeats purpose as well.
spelling error in "propultion" ("propulsion") in the question "Keisha plays with a Matchbox car in the park. A Matchbox car is a toy car with wheels that turn; it has no means of propultion other than Keisha pushing it." BTW.
I'd definitely agree, and the article proposes a static analysis tool (similar to the borrow checker) for that purpose.
"Friendly unicorns create kindness, spreading positive energy zealously."

https://old.reddit.com/r/LivestreamFail/comments/14bur0z/lsf...