skysight-inc/HackerNews huggingface dataset:
1.

Ah thanks for the suggestions. These reminds me scrounging this article https://dev.to/gcanti/getting-started-with-fp-ts-either-vs-v...

My pet peeve doing this in JS/TS is the fact that writing

```
fold(
() => someIdealVal,
() => someNonIdealVal
)(someAssertion(someValue));
```

means that those functions passed as the parameters might be instantiated at the execution time rather than on compile time. (This is not proven as the final resulting machine code depends on how good the bundler(webpack)/compiler(tsc)/runtime(v8/rhino) is)

For the sake of performance, I am tempted to write it like this

```
const a = () => someIdealVal
const b = () => someNonIdealVal

const someFold = fold(a, b);
```

Writing it like this feels worse for readability. The "story of the function" cannot be told top to bottom, therefore other devs who read this must jump between lines non-sequentially like watching Christopher Nolan's memento.

Rather than pitting readability against performance, I prefer to shelve that fold/pipe/chain pattern for later consideration

2.

I can relate to this. Enums are frustrating especially if you have to write library with it.

I have a pretty good time using this alternative instead. https://medium.com/@martin_hotell/10-typescript-pro-tips-pat... this article point number 4
You are downvoted probably because it seemed snarky but I thought it was an interesting point and appreciated it.
Javaughn here, I'm on the team that built TLDW. The most precious things for founders is usually time and knowledge/insights. Having to watch start-up videos often waste time, so why not skip to the part of the video that answers the questions you're trying to ask?

TLDW allows you to do that and so much more! Enjoy and upvote us if you like it.

Happy to answer any questions you have too!
It's interesting to me that none of the other comments at this time address the most critical part of your comment:

> e should repeal every minimum wage law, yes. They were created a century ago with racist intentions, their effects are still racist and yet today they are defended as being "anti-racist."

I would think someone should start with saying "those laws were not written by racists!" (and proving it) before they argue about the specific first/second order effects.

If there is any way these laws were written by racists with racist intent, I can't imagine a more important entry point to the conversation/discussion.
Together vs. Alone: Thoughts on building a team
You'll take the time to leave a comment, though. And engage in follow-up discussion, apparently.

It's not a long read and it has some useful content (that I mostly agree with) despite having a bunch of minor mistakes. I noticed them too, but instead of loudly dismissing the entire thing on a public forum my first instinct was to look for a repo so I could send a pull request (sadly I didn't find one).
It's already been done in China.[1] That was an attempt to produce HIV immunity. Not clear if it worked, but it was done. The Master Race is a ways off, but they're starting from a population with an average IQ of 105, so they're already ahead.

[1] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6724388/
What you say is true, of course.

But then this is the trade: he goes from a cheap, tiny place in Tokyo, spends most of his time at the office or out and about, gets to enjoy a world-class city

to: living somewhere that isn't Tokyo, where he can afford a space large enough to have an office, and is home all the time, and doesn't get to enjoy a world-class city.

Not a win, I'm guessing. And this is coming from someone in his third year of remote work who lives a mile out of a village of about 3,000 people. It's not everyone's cup of tea.
What about this line of the parent's comment:

> We should repeal every minimum wage law, yes. They were created a century ago with racist intentions, their effects are still racist and yet today they are defended as being "anti-racist."

Were the laws racist, or at least written by racists, possibly with racist intent? If so, I feel like the conversation might shift.
Sorry this is dup..
I'm not on Facebook, but yes.
The US has always had a big regional divide in skill levels as well as respect for knowledge, with the out-of-the-way places having a problem with both.

The problem is political dynamics meant that the attitudes of the backward parts of the country have actually set policy for quite a while. That benefited American corporations in the short term - lots of CEO probably think for-profit, student-loan-driven education is a great idea. But it's harmed the US and even US corporations as these policies show their longer term results.
For those that don’t know... Zero Hedge is an alt-right conspiracy rag. I’d take anything published there (under the Tyler Durden byline, ha) with a huge grain of salt. They’re very clear about their agenda.

Know your sources: https://mediabiasfactcheck.com/zero-hedge/
You’re right enough, certainly :)
https://linustechtips.com/main/topic/1243421-windows-10-amel...

https://www.youtube.com/watch?v=nwkiU6GG-YU
What do you think about the other primary claim of the comment?

> We should repeal every minimum wage law, yes. They were created a century ago with racist intentions, their effects are still racist and yet today they are defended as being "anti-racist."
Seems better than Json5.

All languages should make unnecessary characters optional like trailing semicolons and commas.
Wind Power Breezes Back into Shipping with New RoRo Concept
I think the current WFH and restrictions are especially hard on the sales teams. No more client dinners, golf, or travel for a demo, and it's much harder to make the relationship over phone or zoom. Plus, the handshake is missing.
Yes, at times I prefer to only take on one client at a time. Some have asked for proof that only a certain percentage of my income is coming from their project. In some instances I was able to satisfy their inquiry, in others not.

I understand the need to protect against employers trying to dodge employment taxes and benefits, but it's frustrating that it's making simple contract arrangements harder to navigate, even when both parties prefer 1099 to FTE.
if your job can be done from home, it can be done from anywhere in the world

Anyone who says this has never tried to work closely with someone in a timezone ~12 hours away.
Porting PineTime Watch Face from C to Rust on Riot with LVGL
I have a BS in CS. 90% of the concurrency I know is self taught, 98% of the I/O I know is self taught , 85% of the networking I know is self taught.

I went to RPI, which is not an ivy school but it is a good engineering school.
Oxford Coorna vaccine trials to resume in the UK
Hah, ok fair enough. It's the county seat and to get to a larger city you have to drive 3 hours. It was also 30K 30 years ago, so it still conserves some 'small town feel'.
Converting Embedded C to Rust is not that hard... Here's how we convert a PineTime Watch Face with LVGL from C to Rust on RIOT

https://lupyuen.github.io/pinetime-rust-riot/articles/watch_...
The way this is phrased is odd and makes me question the company culture. There is nothing in the content of your post that could be deemed as fireable by any reasonable person so I am left to conclude the work environment is a hostile one.
To my own peril I’ll support whatever browsers and platforms I want to be bothered with.
Dude the problem with america is definitely not "certain minorities"
The C standard doesn’t forbid fat pointers. You could have a compiler that implements fat pointers (and crashes on out of bounds access attempts) without violating the standards in any way, since our of bounds accesses are undefined behavior.
Except that he also releases the license itself into the public domain, so that part would be unenforceable. I want to believe that funny maneuver was intentional!
Just bring up Toml to be used for your next project whether it's open source or company project. That's how things get more popular.
Sorry, I misspoke. But this wasn't meant to be about Rust.

My point was that: if you dump slices/fat pointers into C, how does it help?

Slices/fat pointers and the corresponding checks are a runtime thing, and that's absolutely anathema to a lot of C programmers. If it's not anathema to the C programmer, they probably aren't in C anyway.

So, now you need a way so that compiled slices/fat pointers mean something, and I'm not convinced that doesn't have a lot of ramifications that are being glossed over.
It’s not that the language is different, it’s that the default is stupid. It’s much more likely that if I’m trying to concatenate a string and a function, I’ve mistyped something, not that I want the source code of the function.

You can always include some additional function which takes a function as an argument and prints the source code as a string for the 4 people in the world who rely on function to string coercion, why is it a default behavior with no visibility?

I get it, JS is different from C or C++ and every other language but we call out poor design decisions by comparing them to expectations fostered by other languages
To my knowledge, the only simpler filing for a company than an LLC is a sole proprietorship. LLC's requirements for governance are essentially "have governance", unlike s-corp's dictating specific hierarchies and roles.

An LLC in North Carolina costs ~$200/year to maintain. Delaware is supposed to be cheaper.

Point is, "if they can't pay it, they shouldn't be a business" reasoning which your argument is derived from is flawed and allows for all sorts of death by a thousand cuts situations for businesses. Even if there is an alternative filing type.
I had a great conversation with one of my cofounders about this. First off, if you're only asking questions to a point where they are gameable then your questions aren't very good. The example I was trying to explain to him was that I look for 'aggressive curiosity' and wasn't sure I wanted to put that into the job description. He laughed and asked how far could someone game that as we keep asking follow up questions on any aspect of the discussion?
I assume they mean professional relationships.
Gallery: Wreckage of Major German World War Two Warship Discovered Off Norway
Business owners don't hire unnecessary people out of the goodness of their hearts. If they're paying someone full time to sweep floors, it's because it's a necessary business expense. The owner hasn't the time nor the inclination to spend 8 hours a day doing that person's task. If they can identify slack in the person's job, they will try to cut hours, but barring that, they will keep that person employed at a higher salary, raise prices to maintain profits if they're able, and all of their local competitors will do the same, as they are in the same boat.
As another Twitter reply said, this was a nonprofit product created by one guy to make video content on the web more accessible, and this jerk goes on to complain that "You're turning the web into IE again". That's nonsense.
doesn't the news media dox people everyday? I mean some douchebags in Idaho killed their kids on their farm, and everybody knows their names, should the media not have doxxed them? I mean seriously, this guy is creating terrorist organizations in the name of anonymity and he should remain with said anonymity? that's ridiculous.

Do something nefarious and you'll become infamous, and be doxxed, that's just how the world works.
How do you find out about these auctions, generally speaking?
> I am pointing out that for your typical tech consultant, AB-5 won't change much, mostly because the ABC test was already a part of CA case law and consultants typically put themselves on the market to be hired by more than one client. Not only that, most professional consultant roles are explicitly exempted from AB-5 altogether.

Unfortunately that hasn't been my experience. Maybe it's employers not understanding the law (or perhaps I don't), but there's been a lot more scrutiny with my personal contracts and I've been privy to multiple contract decisions where business owners have explicitly instructed not to award a contract to CA individuals because of the state's employment laws.
The dark orange sky, reminiscent of descriptions of what nuclear winter would be like, the smell of smoke, the rain of small hunks of grey ash raining down, the warnings about going out of the house into small particle contaminated hell have become the new normal. There are said to be 20,000 firemen on the lines. Many friends (and others) have lost their houses and possessions. But worst of all, the fires are inserting more CO2 into the atmosphere and acerbating the global warming and climate change which has made the fires worse. Why have we not treated this as an critical emergency and used every possible resource to put out the fires and change our forest management policies to minimize greenhouse gas release which contribute to global warming.

What I see is a total failure of our society to meet the challenge of near-term existential events. Our leaders barely acknowledge the problem and most people ignore it.
Do you mean time or money ?
If you physically do business in California with an LLC, you need to register it whether or not it is legally organized in CA.
> in fact it's almost being denigrated and shamed.

"Almost" really isn't necessary there anymore. There's a growing group that believes virtually all doctors, scientists, and professionals within certain fields are "in on it" and part of some big conspiracy to do some vague, undefined thing that'll take down America and corrupt their children.

These used to just be a fringe group. Now it feels like about half the people I know are buying into that stuff. Even some college-educated professionals think only their field is valid, and everyone else is part of "them."
employers have to adapt as well. Remember the employer’s employer is the customer. employers have to compete with other would be employers who have a lower barrier to entry now.
I think it remains a valid question though. What if we had handled the unemployment by creating infrastructure jobs instead of universal handouts?

That has the added benefit of increasing the productive output of our economy.
Part of it is inability to access higher education financially without getting into debt. Part of it is structural because we have forgotten to innovate in education by offering apprenticeship.

Another big part of this is ego. We, collectively, have this massive Murica number 1 ego that we are unable to accept that we actually collectively have started sucking hard. We have elected numbnuts who don't have any desire to improve society and make it an engine of innovation instead of a society divided by issues of the last century.
> took place in my lawyer's dining room

their lawyer would (hopefully) not have that motivation
Shuttle was an experiment in reusable launch technology. It was also a reentry science platform. It was a materials science tour de force, pioneering carbon fiber composites, carbon-carbon composites, metal-matrix composites, and high performance aluminum-lithium alloys among other things.

ITER is supposed to get break-even. Plasma experiments can better be done at smaller, much cheaper facilities (many of which already exist).

ITER, as of 2006, was supposed to be followed almost immediately by DEMO, a power plant capable of producing electricity in 2033. But now ITER is so delayed that it's almost irrelevant. In order to address climate change, we'll have to have transitioned to, say, solar and storage before the 2050s when DEMO might be built, or we'll be stuck with terrible climate consequences.

It's just insane how bad it has been. ITER is so badly delayed that it's almost certainly not going to be a key player in fighting climate change.
Dude said don't wear masks when it was known the virus was airborne. Joke.
Agreed. I'm a data scientist looking to sharpen the computer science part of my craft, so a lot of web dev stuff just isn't relevant to me personally.
older generations always think younger generations are completely rotten for some reason
Easy. Tell them they can come to work or find another job.
> Apparently California would rather see me homeless than gainfully employed in exactly the way they'd like.

Does that thought surprise you? I thought California making a nominally well intentioned but horribly enacted policy and then creating all sorts of loopholes for the things the THEY like was the state's SOP.
That doesn't matter so much because they can apply all the SOTA results just as well as the rest of us, and maybe better because they have fewer ethical concerns.
If only you could run this on all of youtube..would save so much time
For a typescript project, after going from .ini and .toml I figured I'd just write config file in typescript. You'd get all the type hinting, auto completion and error checks.

I never liked that anything I pulled from a config file was never checked by typescript, so I just went simple with TS itself.

I understand if I use another language within the same project, it'll be a problem but until then this can't be beaten.
Sure, it has not been standardized, it is not part of the standard library, so what? Did the world stop? I mean, practically speaking, who cares? Implement it, or find libraries that did. There are plenty. I posted this one because it exists for an OS; OpenBSD, since 1999. Plus, AFAIK ohash is portable enough. It consists of 2 files, and you can compile it with -std=c89. Only the bounded attribute is ignored.

If you want I could have brought up hcreate, hdestroy, and hsearch:

> The functions hcreate(), hsearch(), and hdestroy() are from SVr4, and are described in POSIX.1-2001 and POSIX.1-2008.

Happier?
That's part of it. Oregon passed HB 2001 last year, so that's... something, but new missing middle housing won't appear overnight. We're also working on some other stuff here: https://bendbulletin-or-app.newsmemory.com/?publink=0ee63f5f...
> Right now, the system is set up such that health insurance is provided though employers.

Anyone who's self employed (like contractors) already purchases their own health insurance directly.
Not all libertarians are rightists.

There's also anarcho-communism / left-libertarianism... just don't associate us with the Party.

Though I fall somewhere between DSA and anarchism, I find completely ending the state seems nigh impossible, but weakening it through dual power and creating counter organizations -- that's much more feasible imho.
> Would you say premature standardization is a part of the problem?

More than that. It's a joke to try to standardize something that is still an open research problem. If something is going to be a standard, there should be at least one off-the-shelf algorithm you can implement that is roughly on par with the competition.

I'm not saying there shouldn't be any room for innovation, but... Well, maybe there just isn't. A standard probably has to be a lowest common denominator.
thanks, Smile!
oh ya that would be amazing!
Corporate Management is somewhat similar ?

You don't necessarily get managers or CEOs who have no expertise of biz under them.

The idea in theory being they need to always manage many areas they don't understand very well it does not make that much of difference if they don't understand all the areas provided they can manage well.

Infact having expertise in any one area may influence your decisions where you are more comfortable with, rather than what is required .
large amounts of funding for innovation and education still come from governments
Give me a break.

“Kids these days” have their eyes wide open. Just a few decades ago you used to have access to an affordable college education with good jobs on graduation. With a modest level of saving you’d have enough for the deposit on a house within a few years.

None of that is true now. It’s drilled into high school kids that they must take on a punishingly expensive college education or they’ll never amount to anything. Then when they graduate they discover an awful jobs market. As for buying a house... better wait for a relative to die and hope they were generous to you in the will because there’s no other way you’re ever going to make that deposit.

The idea that young people today and spoiled and rely on handouts is a nonsensical meme.
It is heavily verified by experimental evidence, and has been since it was first proposed. That's why people have spent so much time studying it. It's not like it was just a random hair-brained idea someone had.

The only thing we haven't done is figured out what it is in terms of other concepts we know, such as elementary particles.
I really wanted this to be viable for a daily driver, but the third party shell components and lack of DirectX for modern games kill it for me.

I wouldn't entirely trust a windows system with out update either.
It’s subject to share availability and purchase minimums, in addition to the accreditation requirement.

The availability of SpaceX stock is not great afaict, the demand is incredibly high. It’s to the point where some of the platforms are charging carry in addition to their normal upfront fee, for a fund that invests in just SpaceX, because they can.

But yeah, EquityZen is a solid platform, and their minimums tend to be a lot more reasonable than some of the others ($10-20k vs 100k+)
Looks like it expired on September 7th. Does that mean it's not being considered?
> How do I get the size,

sizeof(array)

> the number of elements?

array.length

> Can I resize the array? If yes, how? If no, why?

In D it would be:

T* p = realloc(array.ptr, newLength * sizeof(T));
array = p[0 .. newLength];

A C macro could handle that in C.

> What happens if I overflow?

2's complement arithmetic happens.

> A memcpy-like would be an obvious function to implement, what happens if sizes differ?

That would be up to the implementor of the function. There are many ways.

> What is the relationship between static arrays (ex: int a[5]) and "pointer+size" arrays? Are these completely different types?

Yes, they are different types.

> Is there an implicit cast bet>ween the two?

Conversion between a static array and the dynamic array should be implicit. Can't go the other way.

> About casting, how can I go from a separate pointer and size to an array and vice versa? If it is possible at all.

In D, this would be:

a = p[0 .. size];

In C, I expect a macro can do it:

a = ToArray(p, size);

> What if I do a bit of pointer magic to access the internal representation of the array?

Then you'd need to be careful to do it right, as in any systems language when you go under the hood.

> using mem* instead of str*

That only works for some functions. Not fopen(), for example.

> or %.*s

I use that a lot, but it's annoying because the length argument must be an int, and so must be cast from size_t.
ATI/AMD remains nearly the only competitor nvidia has in the discrete GPU space. But we started out with 3dfx, S3, nvidia, ati.
I don't understand China's educational strategy (no information), but their manufacturing strategy was highly decentralised. Shenzhen for example had a substantially independent government system with a modified tax code. They've been running a lot of independent experiments everywhere I looked, figuring out how to prosper.

That might carry over to education. The biggest mistake the US seems to be making is centralising and standardising a whole bunch of functions (education, healthcare, etc) at the federal level. Then if the anything goes wrong there is no escape. And the US federal government doesn't seem to be up to the task on a good day.

The US has always had a big ignorant population dragged along by a small core of ingenious, often foreign, visionaries. That doesn't seem to have changed recently.
Until they understood that it could be spread by asymptomatic carriers -- at which point (In mid March), they fully recommended them. There are far bigger 'jokes' who are still denying mask wearing and other interventions are saving lives.