skysight-inc/HackerNews huggingface dataset:
>The very common thing I want to use in C is some sort of variable size string object. But no, I have to dynamically allocate a buffer that I know will be at least the right size for any text I ever put into it, or do I create a buffer that's the correct size for that string but re-alloc if I ever change it to a longer string. But then how do I store the buffer size?

As a C programmer shouldn't you have a library abstracting all this by now? Either your own or one of the dozens available, including pascal-style strings?
If its using GPT-4, wouldn't this incur a very expensive bill? Especially given that the search is free? That aside, I tried using it on "how to stop mysql service in mac", and it gave me really good answers detailing different alternatives depending on what i used to install mysql. It's a lot better than what i could find on google search. So this is really awesome :)
Sure, but none of those were for systems programming which is squarely the domain that C was aimed at, case in point: the first thing that C was used to write was UNIX (before then it was BCPL and this was iirc before C even had structs which made that a very tricky job, once structs were in place it got a lot easier). Probably Don Hopkins has more knowledge about this.
Interview questions are secret, you will not find them in the web.
You can also just be labeled as a weirdo and become the target of bullying for sharing your ideas which aren’t well understood by your peers, and therefore you just keep your mouth shut and become an introvert.
Pairs of people | companies | countries can directly trade in goods and services by some agreed ratio if that can be satisfied (eg: Australian Iron Ore + Rare Earth Concentrates in exchange for Chinese electronics is an ongoing tade at some agreed ratio)

A currency is abstraction for trade in wider circles where (the common case) trade between two parties isn't sufficient ( typically parties supply | demand a basket of various resources, various energies, various intermediate and finished goods ) and for trade to take place the guarantors must have faith in the agreed abstraction for transfer of credit; additional mechanism that verify transactions are an added bonus.

Both now and through history many currencies have been used and are being used.

I've given examples of US dollars, the Pound Sterling, in the context of this sub thread bitcoin is an obvious example of a currency that has been used to facilitate trade; less obvious but important examples of currency are the word of a trusted person of faith (as used historically along the original Silk Road and today throughout Hawala and similar mechnaisms).

What strikes me as odd about your question is the implicit assumption that I favour one singular currency over all others.
JEP 401: null-restricted types in Java
Why is the conclusion from Mexico is very big, much bigger than what you think that....it should merge with USA?
> C gives you enough rope to shoot yourself in the foot.

If this was intended to illustrate the unexpected consequences of undefined behavior it succeeded remarkably well!
> * Privacy

Considering it is using GPT-4 API, you can take for granted that at least OpenAI is collecting your data. Not sure how Microsoft deal with OpenAI works, but it is possible they also have access to it.
Your question was why the advice was given to avoid ThreadLocals. This is the primary reason. It's not necessarily related to avoiding a larger memory footprint.
That's a feature, not a bug.

As long as Chrome has > 80% market share, the more non-standard features the ship, the more they cement their position.

Same as IE6, which was intentionally non-standards. Sites would be designed to work in IE, and would not work on Netscape.

Considering how much spying and how much lock-in Chrome provides for Google, anything that makes devs design for Chrome only is a huge advantage.
Could even use something like Gnome's GLib
What's the point of this article?
AgentGPT: OSS to deploy autonomous AI Agents in the browser
The Mercator projection is a real disservice to reality. We need to abandon it.
What no one ever told you about people who are single | Bella DePaulo | TEDx

https://youtu.be/lyZysfafOAs

https://www.belladepaulo.com/
That said - that way of conducting interviews pretty often makes you feel like a jerk. And that is uncomfortable for both sides.

And I believe this is why this discussion always keeps popping up. And it makes you discard a lot of "possibly great" candidates at the cost of "almost none of them bad".

It is the eternal precision vs recall tradeoff.
There we go pay for Skyrim again...
Fair enough.

However you might like to note the time it happens next and then on your next reboot take a quick look in your journal and perhaps point something like lnav at /var/log and see if anything jumps out.

journalctl --since "2023-04-13 09:00:00" --until "2023-04-13 09:05:00"
https://docs.lnav.org/en/v0.11.1/usage.html#time

EDIT: formatting
The US has been a rich democracy for its entire existence and its homicide rate is on level with those of third world countries. I don't see how bringing a country that has been enduring constant poverty, unrest and revolutions into the equation will make anything better regarding violence.
> Rust exists for a reason, and it solves specific problems.

But if say the foundation that supports it's development were to try asserting draconian control over it, many may reasonably be turned off.

I'll stick to C/C++ personally, rust does seem less flavor of the month but I can't get behind it if it's clear there are nutjobs at the helm.
>It came out in a time when everyone was coding assembly

Expect to hear from @pjmlp on this!
TSMC will be gobbled up by US and Chinese foundries.
The talent will most likely go to Chinese fabs given they have access to a bigger customer base as more and more Chinese people get into middle income class. But not only that China might get better market access in BRICS and SCO nations which is a bigger block than the NATO and partners block.

US fabs will mostly service NATO and partners nations, i don't see them being able to compete in the global south on price given Chinese infrastructure, living costs of labor and domestic market size advantages which can fuel the R&D of Chinese semi designer studios and fabs.
There really was a period of being able to install and run the most well known games (Quake, UT, etc) on Linux that didn’t come back for 20 years until Steamdeck happened.
It's true. I was teasing, but I did work this out once. IIRC it went something like:

A = 1
B = 2
C = 3
D = 5
E = 7
F = 11
... and so on

Then any number can be represented in terms of its prime factorization:

4 : BB or B^B
6 : BC
8 : BBBB or B^C
9 : CCC or C^B
10 : BD
...
100 : (BD)^B
101 : # (some arbitrary unique symbol)
...
I know I should build it myself but I wish Janet, as a Lisp, had better integration with Emacs. There are some modes but they're scattered and not really up to date.
Who Is Running Stanford?
I've written C++ for a long time, and I do agree that the language brings certain improvements over C. I think most people will agree with that. However, C++ can be incredibly frustrating to work with depending on the codebase.

Overall, C++ can be great choice, but it often times results in not being due to lack of rigorous discipline by everyone involved on the project.

It's a bit philosophical whether that's a problem of the tool or the craftsman, but I think it's usually a bit of both.
It's funny how both C and LISP programmers seem to suffer from NIH to the point that they'll roll their own just for the heck of it rather than to first see if there is a library that they can use.

The long term cost of those decisions as well as the number of really bad bugs (and security issues) that can be traced back to one-off code is likely much larger than the same figure for well used libraries. But it all sort of evens out whenever a bug in such a library is found because then it is so widespread that lots of systems will suffer.

Weird how that works.
I believe orbits are chaotic over a timespan of many millions of years (due to weak interactions with multiple other bodies), but accurately predictable over a human lifespan.
I dunno, even if it only matters for a couple of hours starting out, those hours might easily be critical. There are many technically strong products that fail because they didn't know how to get users to take those first timid steps.
Maybe the US should give back all that stolen Mexican land first.

* ducks and exits conversation *
I found this while looking around Project Valhalla. You'll have to ctrl+f for "Use of null-restricted types", as the linked dedicated page (https://openjdk.org/jeps/8303099) for that feature is 404.

Proposed syntax is the opposite of Kotlin, where everything is non-null by default but can be made nullable by adding a "?", eg "val s: String? = null".

The Java version instead looks like this, where you add an exclamation mark to mark it as non-nullable:

class Cursor {
private Point! position;
}
There’s a tab for notifications/mentions that shows only your output.
Show HN: Share AI tips, tricks and ideas on Communaity.com
After recently seeing lots of "Share how you're using AI day to day" type posts on HN, work slack, and various blog posts, I thought it would be helpful to create a space dedicated to sharing all things AI (ideas, tips, prompts, media etc), with a focus on discoverability.

Feedback is much appreciated!
> A couple of months ago our washing machine produced a considerable quantity of smoke when I opened its door, which I interpreted as a suggestion that a replacement was needed.

I just want to point out that what was actually needed was a repair. We're all so conditioned to think broken things must be replaced, it's easy to forget you should at least consider a repair first.
Gemini was/is a big one from relatively recently. Don't see too many articles about it lately, possibly the traction it was getting is subsiding ...
Given the context, besides the other responses you've been given, I would add pink triangles.
I started thinking about a new programming language name and ChatGPT returned the following:
Jaida
Jocly
Jovie
Jacey
Janel
Jolyn
Jolie
Janna
Jazzy
Jovia
IMHO it's because lisp shines to manipulate symbols whereas the current AI trend is crunching matrices.

When AI was about building grammars, trees, developing expert systems builds rules etc. symbol manipulation was king. Look at PAIP for some examples: https://github.com/norvig/paip-lisp

This paradigm has changed.
The way I see it, a bigger benefit is avoiding readiness-triggered IO. That can add a variable number of syscalls, wakes up threads, etc.

Of course, batching is also great.
>I'm German and I can code.

Me, too.

But software engineering is definitely not on par in Germany with other important branches, e.g. car manufactoring.

There are huge successful non-IT companies that fail to transform into digital age. They have problems to hire good software engineers.

In the home computer era in the 80s I saw a lot of people in Europe produce nice software. But somehow we did not make the jump into PC-era.
Yyy not sure if Northern Europe where much of "development" happened on the Old Continent as a whole, is "substantially warmer" than NA.
> Yet I was the only one who would create things (hard- and software) in their spare time.

I have found this to be a very good signal in the hiring process.

People who have technical side-projects (machining, 3d printing, electronics, game programming, open-source) tend to be really good at conceptualization, problem-solving, cost-benefit analysis, problem-solving, staying-power, which are critical elements to the success of a software project.

Trivia CS knowledge questions, such as the one presented here, have their place too: they test whether someone can think on their feet, which is not a bad skill to have. However, all things consider, who would you rather hire?
- someone who can do an O-time analysis, but has not finished any real project?
- someone who failed the O-time analysis, but has built something to the end?

I'd obviously prefer someone who can do both, but the person who has released an open-source project for their ultra-niche hobby (say, a sock knitting pattern designer, used by 5 very passionate individuals; or a climbing wall with LED lights showing you the path) gets my vote otherwise. They may not have come up with the trie solution, but what they've done is conceptualize, build and deliver something concrete to users.

Which means they have proven and refined the precise skills every software project needs.
I can tell you the reason for the continued use of leetcode (or similar) at my company. We started giving junior candidates a leetcode-ish test with a low bar for passing to screen out really weak programmers. Everyone who passed went on to on-site interviews. Interviewers complained about having too many interviews to do. So the recruitment team just cranked up the score required to pass. Bingo, less work for interviewers.

Sadly everyone who makes it to an on-site is now a competitive programming enthusiast who is probably a really poor fit to actually working in software development.

Many people are vaguely aware of this problem, but nobody has a strong incentive to put in the work to come up with anything better.
This is my new default search engine. There is just one tiny UI problem for me: the scrollbars that appear on the history panel (on the left). Even when scaling down the UI, I still get an horizontal scrollbar and by default I get both a vertical and horizontal scrollbar which remind me of the good old times of iframes.
I'm eager to jump into a Lisp.

Janet seems really tempting for tiny footprint, distributability etc.

But I'm currently leaning towards to Racket just because it would be more or less compatible with a whole host of Scheme books that I'd like to read (The Little Schemer/Typer/Learner, SICP, Functional Differential Geometry).

Does anyone familiar with Janet know if those books can be easily worked through with Janet for a newbie Lisper?
I think the main mistake that the Rust people made in their initial promotion of the language was to position it as 'a replacement for C'. No programming language has ever replaced another completely, it always ended up as just another language with its own trade offs and quirks. This even holds within a single language eco system if it isn't managed carefully, Python comes to mind.
Your argument could equally be used to say that children should only be taught English, Spanish, Mandarin or Hindi. I'm not sure if you would agree with that, but the sentiment isn't unheard of, especially when it comes to opposition to language preservation.
A mix of hubris and disdain of theoretical pursuits.
I agree. I prefer Shen, but Janet has been intriguing me for the past few years. Darn, I'm going to spend the weekend (nights) playing with Janet!
My optimistic take is that you shouldn't care because the only thing LLMs will do is take away the job of generating small and easily verifiable boilerplate.

Everything else remains the same.

Don't try to over-prepare for a future that is not coming anytime soon.
Thanks ChatGPT, your land border fact is wrong. Here are some longer borders.

Canada - United States 8,893km
Kazakhstan - Russia 7,644km
Argentina - Chile 6,691km

https://www.statista.com/statistics/1103985/border-length-be...
It is true. Some of the projects are just riding the wave of hype. 18M for a Python wrapper around ClickHouse Db is insane.
The Cathedral might make a better GUI, but damned if the Cathedral can stick to a single GUI and not gratuitously break workflows.
Twitter partners with eToro to let users trade stocks, crypto
Out of curiousity, did your high school or college teach you much about interview prep?

Both of mine did. Much of their advice was irrelevant (nobody in tech gives a shit about your suit or how firm your handshake is) but they both stressed the importance of preparing in advance to show how good your skills are; and giving thought to cliche lines of discussion like 'what's your biggest weakness?'
I'm over 30. 2 years ago I was drunk, on coke and had a girl naked in front of me saying "Fuck me" and I still managed to botch it. This only happened once I normally manage to run as soon as I sense that a girl may be interested in me. It's not easy for some people.
I've read Piketty, he calls for more regulation to address the issues associated with disparities in capital accumulation. He does not merely puts his hands in the air and predicts inescapable doom.

The irony here is that Western capitalist democracies are the only place where we can even think about getting these privacy protections.
Can you provide a more elaborate list of Unicode characters that belong here?
Audio's Circle of Confusion (2009)
Remix has been available from quite some time.

Anything interesting has been released with it? Any mod.

I haven't heard/seen anything.
I guess I don't understand the question actually - is it return every potential word inside of a word and we accept that there is left over fragments that are not words, or does it have to make sure you do not have any left over fragments?

The problem as described:

“Write a function that given a string, determines if it’s a concatenation of two dictionary words.”

given that description I think you can't have left over fragments. But the code seems to allow fragments (don't know Python). Also it just returns a boolean? So we just need to know if there is two words contained within our word within the dictionary.

If that's the case, and the "dictionary" is an actual dictionary used by humans (they mean like a Dictionary like The Oxford American Dictionary right?), then, because the letters of a word are considered nouns (that is to say the letter b is a noun - Merriam-Webster https://www.merriam-webster.com/dictionary/b) then any word with more than one letter is a concatenation of two words. Which is anyway stupid because no one cares about concatenations of words, people care about compound words and this is not how you would find compound words.

I bet that's not what they want to hear though. I generally do really bad on questions.
There's an adjustment period to understand each boards specific signal:noise. You can't just walk in and find Aristotle and Kant figuring shit out.

Each board has its ridiculous bullshit, groupthink, absurd extremists, edgelords, etc. once you know how to parse that you can quickly navigate to quality posts.

Each board of course has different signal:noise though, somewhere like /lit/ is probably 1:20 whereas /pol/ is probably 1:500-1/1000. But the quality posts are totally different from what you'll find anywhere else. Different users and audience.
Beat me to it...
It's one projection among many, given we're in the age of digital mapping we have the means to smoothly morph from one projection to any of many many others that all have their pro's and cons.

Regular users of (say) Google maps aren't generally exposed to a mecator projection as they zoom in from a rotating globe dwn into a local area of interest.

"Map Projections - A Working Manual" is, in my humble opinion, THE definitive reference for map projections and the author, John P. Snyder is the expert. [1]

[1] https://www.amazon.com/Map-Projections-Working-Geological-Pr...

( IIRC that might be a free digital d/load direct from the USGS )
Some of your responses seem very on point, but the majority of your list of points is on the honor of the author's character. The character of an author matters when their credibility is an important element to the discussion -- but the author isn't claiming to have special credibility.

Arguments about how the author should be trying to improve the problem or work with other developers seems morally presumptive on what someone ought to do. If I complain about how my Safari is slow, I think it would be rather morally shrill to put the honor of my character into question just because I didn't even bother to open communications with the Safari team. Like, a lot of people complain without reaching out to the teams that build or manage their experiences. That does not make them malicious.
> Weak typing and type coercion is a major footgun in a language.

Type coercion is an expression of strong typing, and it's inevitable if you want a language that's usable.

For example, "array of int of length 5" is a type, and "array of int of length 6" is a different type. Do you want to write a separate sort function for each of those types?
That’s precisely what I meant. Both have religion in spades - but only one has a toxic culture around it. It probably helps that Portugal was a neighbour to religious lunatics for much of its existence, and even had a few deeply unpopular monarchs who invited the inquisition in. It’s still there in the cultural memory - they take god seriously, but the idea of religious persecution and the involvement of church in state is pretty much anathema to the average Portuguese.
I found some here on Indie Hackers: https://www.indiehackers.com/products?minRevenue=10&search=c...
Standardisation serves a purpose but having all globes and maps looking the same means people don't truly understand the Earth.

This is more than Mercator etc.

Turn a globe upside down. Turn it sideways. Try to think of it as ball of dirt in space rather than The Earth.
Have a rolling hash and compute all hashes of the prefixes in one go, in O(N). Per-prefix cost of hashes gets amortized to O(1).
Similar experience. My MIT reports were largely average in terms of output, despite very strong "raw puzzle solving ability", if that makes sense. However, I had some amazing state school reports, they blended talent for unconventional solutions, strong work ethic, and the attitude of someone who doesn't think their lives are already figured out due to their college degree.

One problem is that there are plenty of really bad state school people too. The bottom line is that if you select carefully, and don't let fancy degrees bias you, you will find some of your best people from "boring" places.
The author starts with type I and II errors the question has yielded that somehow they're proud of it.

With performance like that, I'd call it a "trash interview question".

When you use wildly inaccurate processes, you build bad teams and good people know you'd be wasting their time so they don't even go in the door.
They haven't published the fuel tank size or non-electric range (at least, I couldn't find this info easily), so I'd expect it to be similar to the BMW i3's tea cup sized fuel tank.
Respectfully, meme magic says otherwise
> If the backup camera or other sensors were to run as containers, we needed to improve the starting speed significantly.

I think I see the problem already. Why does anyone think its a good idea to put everything in an embedded system into a container? Particularly as everything comes from a single vendor and so the usual argument about "but libraries are too hard!" doesn't apply.
Zylin ZPU: 32 bit CPU with GCC toolchain