skysight-inc/HackerNews huggingface dataset:
What do you consider advanced? Keeping in mind, of course, that cocaine was legal in the US until ne'er-do-well do-gooders decided they knew better for everyone. That is why we have Coca Cola, which is a formulation of Mr. John Pemberton's Cocaine-Fortified Wine. It's only very recently that we have decided to start imprisoning people for the simple fact of putting things into their bodies.

So, again, what do you consider advanced? If we go back to the foundations of Western civilization, we find the Greeks quite enjoyed getting high on many interesting substances. The Romans and Egyptians as well.

What about native populations on the US continent? The Peyote tribe literally have a mescaline-bearing cactus named after them, along with all the various substances known to the South Americans before the Spaniards decided to put the torch to their accumulated cultural practices. (c.f. The Florentine Codex)

The histories of China and India are also rife with periods of legalized substance use, some good and some bad.

But to your question: yes, there have been many advanced civilizations whom have been "gung-ho" about legalized drugs.
Until a failure during boost results in radioactive debris scattered all over the place.
The TI-Nspire CAS (computer algebra system) can do very complicated symbolic antidifferentiation, like ones that you'd do by hand with repeated integration-by-parts. It can even solve many kinds of simple ODEs!
Why should the state spend any money here at all?

If you want the freedom from society to use drugs, then you shouldn't rely on society for that.
>They have been saying from last 10 years that they will catch up with competition in next 1-3 year.

They haven't loss their node leadership for 10 years.
There are plenty of ways to emit runtime type information statically without a runtime. `keyof` could statically convert to the list of keys in a class. Hell, even typescript classes could do what ES6 classes do and initialize class keys to undefined. Currently, typescript classes erase all keys unless explicitly defined. Object.keys() on a newly instantiated typescript class without set members will return nothing, while an ES6 class will return all of the keys. Just an option in tsconfig.json to convert TS classes to ES6 classes (or just allow ES6 classes to exist at the same time in Typescript) would make some code generation WAY easier.

Or some kind of syntax to emit the name of a type as a string. Currently, if you run `typeof foo` it will return the type as a string. If you could have a static version of that, like `tstypeof foo`, or with a class:

class Foo {
bar: string;
};

console.log(tstypeof Foo::bar) // or something less C++-looking; compiles to "string".

then it would be killer. This could break compatibility if you change the type of a field and a compiled client using the code were to expect "string" when it's been changed to "number". But I'd rather live in that world than the one we live in now

Just some basic RTTI would make a lot of ugly codesmelly boilerplate Typescript code evaporate instantly.
If ECMAScript had macros such that TypeScript could be a library, people would still ask the question: can we attach the type object manipulated by the library to the objects?

If ECMAScript had macros, page load times would skyrocket. ECMAScript and/or browsers would have to define a way to distinguish JS-with-macros files and embedded scripts from plain old JS that doesn't require expansion.

Any JS code bases with complicated macros that take time and memory to expand would have to be expanded by the developer and shipped expanded. So, back to the same model as TypeScript.
This piece was written before React even existed. (React is from 2013, this is from 2005.) Besides, I can't think of a single "factory" oriented concept in React, could you elaborate?
The argument for why the government should spend money is because not spending it would be more expensive or yield worse outcomes.
I overlapped at LinkedIn at the same time as the author. While there, I wrote my first (and to date only) FactoryFactory.

LinkedIn replaced its uses of Spring with a thing called Offspring. Offspring explicitly disavowed being a dependency injection framework, but it did a similar job for us. I rather liked it. Notably, you just wrote Java with it. Invariably, in Offspring, you'd have to write a FooFactory to construct your Foo object to inject it into some (other class. By convention, all of the factories ended in Factory.

Well, I had a use case for a runtime class that needed to make a per-request factory to make little objects. So to make my Bars, I needed a BarFactory; and to construct the BarFactory, I needed an Offspring factory, thus BarFactoryFactory. There it was. I felt a little weird after that.

I suspect the EventFactoryFactoryFactory code here was such an Offspring factory being used for dependency injection, but I can't explain why it produced a FactoryFactory.
Do you think Portugal really has a lot of ultra-rich people sitting around to fleece?
There also needs to be a person/people on standby to support riders or pedestrians in case of issue. Last thing the world needs is another supportless automated monolith where you're simply fucked if anything happens
All that's good. Friendship is a form of love, without which no one can be happy.

Some people believe that the work of love is the most worthwhile work and that nothing else has any ultimate meaning. However, acting such a belief out in the world is considered unrealistic, insane.

Then how can the world become happy?
Had a similar thing with my friend. He used to drink Pepsi all the time, now he gets stomach burn if he drinks it.
Like factories, frameworks are methods of reducing production costs, but come at the expense of certain aspects of product quality.

Sometimes, that quality/cost tradeoff is desirable, sometimes it's not. The trouble comes if using a factory or framework is the only, or even main, tool in your toolbox, and it ends up getting used for everything.
So they hired a scumbag to harass their critics in potentially illegal ways, fired the scumbag, and then were surprised that he turned on them? What a perfect example of what goes around, comes around.
The CFPB is completely useless. I've never received a worthwhile response to any complaint I submitted through them, out of the ten or so complaints I've submitted to them in the last ~decade.

They simply forward your complaint to the same barely-literate customer "service" department that created the problem in the first place, so that someone who doesn't understand the problem can cut-and-paste their original response back to you again.

You're given an opportunity to respond after that. You get no response if you explain why the bank's reply wasn't responsive to your complaint. I also once tried cutting-and-pasting several paragraphs of hard-core gay erotic Star Trek fan-fiction (searching-and-replacing one of the main characters' names for that of the bank's CEO, with a note that said, "this is to test if anyone actually reads this"), hoping to get the bank or CFPB to even acknowledge me in a non-automated fashion. I got no indication that they did; not even a "please don't do that again." (I wasn't bold enough to try death threats or child porn, but I'd wager even those would be ignored.)

I wrote my senators and representative in Congress, asking them why the CFPB seemingly ignored complaints. One of them CC'd me on a letter to the CFPB requesting someone contact me. Noone ever did. As far as I can tell, the entire agency is just a black hole for wasting tax dollars, likely a graft to help ex-bank employees collect Federal paychecks and pensions while doing nothing and claiming to be working on "reform."
> He’s been know to take credit for a lot of things, and he could from the point of view of spending the money and maybe hiring some people, but ultimately he doesn’t make or come up with much of anything that I’m aware of.

The same could be said of Steve Jobs. It would be an unfair statement, for the same reasons I feel it's unfair with Musk: their vision strongly influenced the products their companies made.
In the United States, it's as visible as anywhere in Portugal. The visibility just isn't distributed evenly. When you hear people complain about such things, it's usually the upper class whining about how distasteful it all is.

Whether or not visibility normalizes drug use behaviors, I couldn't say. They were normalized before I was born and I'll be 50 next year.
how does it know there isn't one further out past the observable universe? OR Does Webb actually see 100 percent of the entire universe?
Save some time when developing a website
The first 7 words of the document are "TypeScript Needs to Emit Runtime Type Information". Was that not clear? I guess I'm a bit confused by your confusion, unless you don't know what runtime type information is, in which case I suppose it's more understandable - but in that case I suppose you're not really the target audience.
My background is ERP so that sounds similar then - the bones may be decent, but how you implement it can make or break it, both as IT exercise and as business transformation / process implementation; is that About right?

I will likely have some input on how it's implemented and particularly the processes. I guess I should start reading up on best practices etc...
I love this. Is it open source? I would love to create my own with my milestones.
Extremely likely it will be an African country.

If you want to invest in growth, do your due diligence around Africa. Though I suspect you may already have missed that bus with some African countries.
It's not without its downsides.

The fact that IO blocks, and also doesn't work with the select statement, means you need to spin up a mess of extra goroutines in some situations. There was some good prior discussion of this here: https://news.ycombinator.com/item?id=13331284
Can we just start with primitives and see what happens.
Yeah, I’m thinking of ownership as exclusive access handed off in sync, and disposal as one more duty of the final owner.

I would feel a lot more comfortable with channels if a linter would verify that every message is either mutex protected or a newly created graph (maybe a deep copy) never accessed again by the sender. Go already does some escape analysis to minimize heap allocations, but doesn’t flag a goroutine receiving nested maps or array slices that may be shared.
Then maybe you shouldn’t generalize your one viewpoint to say that early Ruby/Rails was not a worthy community for professionals or of use to people who practice jointly valued skills like entrepreneurship.

It’s also odd to see your long rant of whimsical vs professional when some of the most well-known companies were built with that community of so-called non-professionals. We have a difference in opinion on what constitutes “professional”.
Lol, hope springs eternal :).

... but more seriously: Yeah, their reasoning (now) isn't exactly going to be unbiased and/or unblemished by their own experience. They probably have the most extreme survivorship bias ever. (Not their fault, they just do because of whatever factors got them into the position they're in.)
> they are deeply conservative but saying that regulations are in place for the purpose of keeping home values is reaching.

That is a common stated goal by HOA officers used when I inquired about building alternative structures in a HOA when looking for land. Also preserving uniformity is a common reason.

I agree that there are underlying motivations, but I'm not sure what they are. It could be driven by some sort of underlying social contract that was established with the HOA or some fear of the neighborhood getting out of hand or diminishing in prestige if someone puts up a Yurt, Geodesic Dome, or a Tiny Home. A common constraint is forbidding habitation within a RV & minimum livable square footage & footprint. Contractors benefit from these rules as a minimum square footage is more expensive to build. It would be interesting to see some research into the underlying rationale of these administrators.
Hahah I love the bias here.

Musk ships & changes things on the fly, Twitter is going to hell.

Zuck releases threads, amazing he dears to launch an MVP that fast.
FWIW other frameworks (namely, flask) took a similar approach of not moving to 1.0 for a while.
What's next? An official TypeScript UI framework, will it be Vue, React, Next.js or Svelte? An official TypeScript date library?
"No adoption" is certainly superlative. That existing sites rarely go through top-down redesigns is part of the slow adoption, though. Are there really designers who have been exposed to the idea of semantic design and yet are still making designs with <div> soup instead of <main>, <header>, etc? I would certainly hope not.
> They do...now...They did not several months ago when my coworker attempted this drive. At least, none that were working or available

The Mesquite EA location has photos on Plugshare dating back to 2019 and the Tesla locations opened in 2021 and 2022. You can check https://supercharge.info for opening dates of the superchargers along the route. EA built that interstate out quite a while ago.

> Just because your experience with your empty Tesla works for you doesn't mean it works for families with greater charging needs.

I don't drive a Tesla but I also don't understand what this means. The route has superchargers and EA chargers all over, damn near perfectly spaced out, and the navigation system includes them in routing. If your coworker took 24 hours on this route, it was not caused by driving an electric vehicle. Again, you can use ABRP, modify the variables, and check for yourself: it is not possible to get anywhere near that amount of charging time on that route regardless of conditions.
Author here. Thanks for reading! The idea was to show that if we are intentional about what we look at, it can optimize our lives.

Even outside of the context of sports, sometimes we can knock out 1.5 goals instead of 1 goal just by focusing on the 1 but in a slightly different way than if we didn’t know about goal 2.
Is it impossible the executives had motive to murder?
> monads

Nixlang doesn't have a type system sufficient to encode monads, so you don't have to worry about it ;)

> tools that wont fade away, its much harder to believe that about nixlang than its for bash/dash/sh

Bash has been around for over 34 years, which is very respectable. But Nixlang has also already been here for more than 20.

> the software my script installs is probably more supported than it would be on nix because its on ubuntu, one of the more commonly supported distros

wat? Nix runs on Ubuntu just fine...
I'm relatively new to programming and had a question about TypeScript's functionality. Is there any specific reason why TypeScript doesn't allow for the creation of custom and intricate data types? For example, I'm unable to define a number type within a specific range, or a string that adheres to a certain pattern (like a postal code).

I'm imagining a language where I could define a custom data type with a regular function. For instance, I could have a method that the compiler would use to verify the validity of what I input, as shown below:

function PercentType(value: number) {
if (value > 100 || value < 0) throw new Error();

return true;

}

Is the lack of such a feature in TypeScript (or any language) a deliberate design decision to avoid unnecessary complexity, or due to technical constraints such as performance considerations?
I was a stress analyst in aerospace and I think my conclusion is the same as any one else's: this is fucking bad and a gross oversight. Safety factors in place are a testament to the foresight of the civil engineers who analyzed this, such that even though this support was carrying no load, the roller coaster still ran without killing anyone (for now). This is a massive failure of inspections and must have been visible before the fracture severed the entire beam.
Yes. Portugal.

When they fully funded their rehab and social service program, the system worked.

Then they reduced funding and seem surprised the programs don’t work any more.
Europe, circa the middle ages, had cultural taboos against certain "witchy" herbs. To the best of my knowledge, this is the only other cultural prohibition against some class of drugs at large.

I do believe such bans to be hideous and downright stupid. It is crass authoritarianism, nothing less than the subordination of the individual's body and mind to a tyrannical society clownish enough to demand it.
> My “worst” code was when I was mid-level. Too clever, showing off what I learned.

This was my experience as well, for pretty much the same reason. At some point, I gained enough experience that I no longer cared about impressing anyone or showing off, and my code became substantially better.
Portions of the "Autopilot" and FSD systems are written in Node.

You reckon self-driving cars are going to be safer? I have a 1998 Range Rover that barely has *any* software on board, never mind things that will shit a brick because of the next Leftpad Incident.
For some reason it called to mind the basic technique of stepwise refinement.

https://dl.acm.org/doi/10.1145/362575.362577 (HTML, links to PDF)

A good framework would be one in which you start your solution and find that at many locations, your pseudocode gets replaced by an equivalent call into the framework. There are, however, some other requirements that are not obvious from this specification of good framework that make it a great framework. Discoverability, testability, debuggability, deployability, documentation, readability and, of course, performance.

But, yeah, you start out with one and you lose interest in the project because of the difficulty of getting started.
Answering my own question: it does.
Honestly threads is so minimum. A solo dev can pull this off in half a year. Only thing complicated is scale. But meta has that in place. Threads team is a corporate cushion team.
Google Cloud for both VertexAI & "self-hosted" (run any model on GPUs). We are already there with the rest of our cloud, better privacy when you use gcloud apis than OpenAI
You seem to be acting as though addiction and the issues which give rise to it are somehow not part of society, and therefore should be discarded. Even ignoring why that's wrong, ignoring why letting people slip through the cracks still has an impact on your conception of society...

...how about basic human empathy?
Here’s an article presenting an opposing view. It’s not just a matter of planning ahead; it’s decades of work to scale up production given harder to reach deposits, more toxic by-products, and political hurdles, ironically from many environmentalists who are demanding the switch to green energy in the first place.

https://www.forbes.com/sites/jimvinoski/2023/04/28/theres-no...
You go where you look. If you keep staring at the tree you're trying to avoid, you'll hit it. I feel like this is what happened to the US in 2016: we kept staring at Trump and couldn't figure out what else to look at.
IMO this is short-sighted.

First, I would say "GitHub Copilot apparently makes you 55% faster at passing 12 predefined unit tests under pressure".

The problem with software, IMHO, is not that we are too slow at solving easy tasks, but rather that designing good software that will be maintainable is hard. Can we ask those 90 people to write a complex system for a year, and then check if the ones who use Copilot write more maintainable systems? I know plenty of software devs who implement new features much faster than I do. Except that after a while, their codebase is unmaintainable, and mine is not.

The second question I would have is: what did each group learn from that experience? Can we have both groups work with/without Copilot for 5 years, and then try to evaluate if one group got better developers than the other? I wouldn't be surprised if the group who actually needs to think about what they are doing became better software engineers.

And the last point: 55% is not that much, considering the difference between writing code in assembly and writing code in a modern language with modern frameworks. Why do they have to say "it will change the world"?
That’s why the most lucrative thing is to get people to ‘connect’ their networks digitally on social media and manipulate them. I hope we see a return to irl networks
I think your comment made the engine click for me too, wow, thank you.

Do you know if there's a way to see the main update function? I have a hard time understanding what order the engine uses to runs each script.
This is very true. Meta has a huge advantage at creating a rival to Twitter since they have Instagram as their source of users.

My believe is that Zuckerberg will use Threads as his bullhorn the way Musk uses Twitter. We will be hearing more from him to advance Meta's goals. He has learned from Musk that having a place to speak from directly to millions of people can be of great advantage to his businesses and popularity. He should also know, given Musk's example, that there are little consequences from saying the wrong things so he has little to lose.

We'll never see a fight between the two but we will see a lot more of this loud mouth type of rivalry between the two. In time, we'll see people separate into team Zuck and team Musk online.

The way I see it, his long term goal is to be president someday. He's won the money game. There's not much more gain there. But if he becomes president he will be in the history books forever. Threads will become a perfect place for him to increase his popularity among all the American voters.
I am still waiting for people to discover concurrentML. Whenever pthreads becomes a hassle I reach for CML and it hasn't failed me yet. It is pretty similar to go's concurrency model, but with dynamic selects that doesn't suck. And it is over 30 years old.
I agree with many of the principles here. See my comment from 3 weeks ago
https://news.ycombinator.com/item?id=36328697

Many of those equivalents are not equivalent because jQuery can act on multiple elements.

Also it's spelled JavaScript, not javascript.
How will the Fediverse work in Instagram threads. Reverse engineer reveals
"Further out past the observable universe" pretty much doesn't matter (hah), by definition.
When a main goal to maximize a subjective trait such as "developer happiness," you are almost certain to cause the opposite for a significant portion of your users. This is the curse of inherited ruby code.
This is probably not true.for example:
People know smoking kills. The tabacco industry even popularized stories about sad COPD patients that were dying in the hospital and still wouldnt quit smoking.

"Its that good!"
"It's so nice! Even when you know it kills you, you still dont want to stop! Not to mention! Quiting is hard! Real hard! Dont try to quit. You will only suffer."

That is the narrative that they push.

The human mind is Strange sometimes.
Somewhere my dad has a newspaper clipping showing an ad for my great great uncle’s grocery store in a small midwestern town from around 1890-95. The ad prominently mentions that they have a telephone, and gives the number as something like “215”. I was never sure if that was a number you dialed, or if you ring up the operator and say “William’s Grocery Store, number 215”.
He's definitely not the type that listens to his advisors, no. Which is not always a bad thing, and I think it got him where he is, but it feels like at some point he got overwhelmed by his own success and started thinking every one of his whims was gold.