skysight-inc/HackerNews huggingface dataset:
Saying it's a "better" C++ is not very accurate. It's a very different beast IMO, and not suitable for all applications. There are areas where it shines, and areas where C++ would be a better choice.

If you want to call it 'C++-like' that's fine, there are similarities.
No, if you have an account on one Lemmy instance you can subscribe to or post on a community (sub) hosted anywhere. Your home instance also houses all your subscriptions.
google drive engineers might sleep fine at night but plenty of people use it for copyright infringement routinely.
W3C announces new Web standard for online payments
Ah, indeed. Thanks. I ought to have been more precise about what he writes about on a Sunday.
Would it be a better practice to use that tool? Yes.

Are they at fault because their customer dropped the ball so badly about paying their bill? No.
I'm sure they will. Just waiting for the whole thing to die down a bit to get less of a reaction.
I've recently presented the approach with exhaustive search and heap, then iteratively adding simple indices, using ClickHouse. It works pretty well despite the overall usage simplicity.

Video: https://www.youtube.com/watch?v=hGRNcftpqAk

Presentation: https://presentations.clickhouse.com/meetup74/ai/

PS. It should work at the same speed as "bruteforce-blas" in the ANN benchmarks.
I'm incredibly curious what the experience of trying to write code with ChatGPT is like, if you have no prior knowledge. Obviously, it's impossible for me (and most others reading this) to un-know everything and approach it with fresh eyes. Are there any good real-time videos of non-programmers using ChatGPT to write code? (seems like the best way to understand what it's like)
Seeing things change is honestly really exciting - I didn't realize how stale things had started to seem. Fragmenting into a bunch of smaller communities honestly seems kind of ideal.
No, the members of /r/startrek are vowing to not use Reddit anymore. /r/startrek will be considered abandoned and given to anyone who asks for it. Reddit will take it away from these mods and I don't blame them.

Maybe nobody will use it, but some people probably will, people who don't give a shit about stupid Internet wars and just want to read about and discuss things Star Trek.

...which, believe it or not, is most people. Mod wars are uninteresting to the 90% who don't even make accounts.
My personal opinion on these is, it's probably good you're not using them all over: use only when needed, and be clear if you really need them.

Basically:

Box is used rather frequently, it basically corresponds to unique_ptr in C++, and is basically a way of a) having something be a passable heap-allocated thing and b) is often used to hold dyn implementations of a trait. Excessive instances of Box<dyn .. in your code are often a sign or code smell that you're bringing patterns from object-oriented languages through polymorphism via traits into what's really a non-OO language. See also: the Effective Rust entry about preferring generics over traits. Note at one point Box actually had its own special syntax (sigil ~) this was dropped. I am not a Rust core expert, but to me this feels like maybe a mistake...?

Rc is sort of the "out" for when the borrow checker is giving too many problems for a given access pattern and you want to share a piece of state more conveniently within one thread. It's not used very often, you'll see more uses of Arc.

Arc is generally used for shared state across threads. It can be combined with Mutex to create safe shared mutable state.

RefCell's use is basically pushing borrow checking into the runtime instead of at compilation. Its main use is for the so-called "interior mutability pattern": https://doc.rust-lang.org/book/ch15-05-interior-mutability.h... -- basically allowing mutable borrow in an immutable context (e.g. immutable self reference). So really, you shouldn't be reaching for this often. This is more something that data structure library designers might use in a "trust me, I know what I'm doing" way, or for, say a use like incrementing a usage counter or something which you know isn't really mutating state and you want do it inside an immutable reference. Similar to some uses of const_cast in C++, I guess.
>It's relatively simple to make the GIL go away: just compile to some VM that has a good concurrent garbage collector would be one approach. Yes, this will break some assumptions here and there, but not too difficult to overcome especially if you bump the version number to Python 4.

"It's easy to lower the air-conditioning costs of Las Vegas: just move the town to New England".

The problem is "how to remove the GIL" in abstract. It's how to remove the GIL, not impact extensions at all (or as little as possible), keep single threaded performance, and have zero impact to user programs.

To which the above isn't any kind of solution.
I’m sure the seeds would make great chicken feed.
When I finished reading this book I felt like Johnny Truant ruminating on a non-Euclidean house.
https://twitter.com/StreamsCharts/status/1668660013286535180 some details
>> by designing homes for upgrades with large conduits for wirings

Why isn’t this more common? I’ve watched a few spray foam installations on youtube where they just spray directly over romex / wiring / cables .
Lemmy's backend is written in Rust using Actix Web and Diesel.

https://actix.rs/

https://diesel.rs/

Lemmy's frontend uses the React-like InfernoJS library that claims to be faster than React however I really doubt it's frontend rendering that is the bottleneck here.
API is about programmatic access, not access to subreddits that have been made private.
https://www.researchgate.net/profile/Vivek-Kumar-Bagaria-2/p...

This idea improves the scaling from linear in dimension to logarithmic when very little loss using ideas from multi-arm bandits
Not sure what Christian creation story you read, but omnipotence is commonly believed to be a core trait of God. And there's a difference between God allowing bad things to happen and making a mistake. Even when having a dialogue with a human in which it sounds like God is changing his mind, the implication is that God is letting the human work out what, if anything, he needs to change in his heart, and also letting the human exercise his faith in reaching out to God for help, and learning to trust God (similarly to how we have a need to interact over time to build trust in relationships with other humans).

And I would argue that God is not ultimately focused just on us, but one of his interests is in helping us to get to know him since that is beneficial to us and he loves us. A big difference with an alien is that they would be a created being just like us (in Christian understanding). If they exist, we can't really presume to know whether they'd be just into their selfish interests, or perhaps know God and be committed to loving others the way God calls us to, etc.
Show HN: "banks" Using Jinja as the basis of LLM prompt templating
banks is a side project by my colleague Massi. We work on the open source NLP framework Haystack together (https://github.com/deepset-ai/haystack) and prompt templating is obviously a 'hot' topic and it's something to design these types of projects around. Massi had this concept in mind to use Jinja (or any other templating language for that matter) as the basis, and clearly decided to take it for a spin. I personally am in love with this style of prompt templating and think it makes the whole process insanely flexible and easy to read.
Wanted to share it here to see what others think. Hope you enjoy.
Happened to a rapper buddy of mine too. He released a popular song about it.
> Anyone can moderate a subreddit, these mods aren't special and they're completely replaceable

You're volunteering?
Yup, with you. I've run my own wee concern for about 14 years and the only Gambling-related job I took on was helping a fairly desperate friend out with a very small something that utimately didn't come to pass, for promoting 'PaddyPower'.

It kind of amuses me thinking of all the contracts I might consider whereas jobs for Gambling companies are an immediate 'Nope'.

Such a nasty industry.
Well, it is helpful for learning new frameworks and stuff when you already have a grasp of general programming.
By definition the protest will always be meaningless, because ultimately the vast majority of users don't care. Reddit can weather this storm because most of the people who they make money off of are confused about what this is about and when it blows over will be otherwise ambivalent about all of it.

This was never going to work. Mods should have used this moment to get paid (percentage of ad revenue generated by the sub they moderate), not throw a tantrum about API access.
It's like HN is actually multiple people or something...
Go start your own subreddit then if anyone can do it! I'm sure you'll have tons of users and it will be super popular!
It strikes me as desperate and tacky. Definitely not a great look for a company that already produces pretty bad apps.
The STM32F4 is a Cortex-M4 microcontroller. You have direct access to optimally do whatever you want with the CubeIDE and GCC libraries.

This is a platform, if the things you want to do are possible with the entire stack of Debian, the pre-existing touchscreen menus, the PinPong Python libraries, etc. then sure, use this...but that's a lot of wasted efficiency and a very large dependency.

The STM32F4, for example, can be configured to enter deep sleep and run for a long time on a battery. This likely cannot.
Do you have a link to vlemmy? I tried to find it but didn't have much luck
Yeah, reading CPython 3.13 plans made it seem like they were backing their way into creating a JIT compiler.
The actual quote, from the OP, is "Pirsig proposes that to become expert at keeping anything in good repair, you need to understand it in two ways—how it works and how it’s made"

This seems intuitively sensible for mechanical / physical objects, although I'm not sure how well it applies where the broken thing is software, with deep complexity and multiple layers of abstraction.
It is inefficient to build (unless on GPU), but good for search. Moreover, the search naturally benefits from data locality after ordering - this allows using MergeTree tables in ClickHouse. See https://news.ycombinator.com/item?id=36341754

And it is around 10 lines of code in SQL: https://presentations.clickhouse.com/meetup74/ai/#35
Be careful with that reference, it's an antique.
ouch, right in the feels
That might be more like comparing Rust to C, though.

This is more like the difference between Mercurial and Git, which is to say, relatively minor.
Trekkies migrating to /r/starwars2 would be either the most epic troll of all time, or the strangest about-face of all time.
I want to demonize doctors.
Well there are interesting alternatives today. I find Claude (https://www.anthropic.com/) and Dolphin / ChatDolphin (https://nlpcloud.com) to be very good alternatives to ChatGPT.
With the average palette you just need to sprinkle the right amount of salt and sugar to get "yummy" reviews. These people can't cook, barely know where food comes from, and have no way to judge food other than it being sweet (good) or not sweet (bad).
> dedicated lemmy site (or other site) that acts as a directory for "subreddits"

You mean this? https://lemmy.world/communities/listing_type/All/page/1
Typically the users are voting in favor of this. Also mods aren't as replaceable as you think - who wants to work for Reddit for free while being treated as disposable?
So, like all other "raspberry pi killers" this is running a patched kernel released by some company in Shenzhen with no plan to upstream changes or get them into the main kernel tree.

E-Waste in less than three years!
It's hard to argue that Python 3 should have been even less compatible.
I’m not sure if that’s the case. I just saw the news about the state of berlin performing this free analysis with the only condition to attend a talk about safe consumption
Neo : What are you trying to tell me? That I can dodge ZERO PIVOTS?

Morpheus : No, Neo. I'm trying to tell you that when you're ready, YOU’LL HAVE AN SPD MATRIX.
You can compile your Python to WebAssembly and run the WebAssembly in Cloudflare workers.
USA, land of the useless middleman
I think the more macro point is that these are all different, equally valid, and differentially useful ways to slice the world. It's good to have a lot of different ways to slice the universe and to use them consciously and explicitly for what they're each good at.

I.e. ontologies exist in consciousnesses, not in the universe, and they're really powerful tools
That would make a great movie. "The Day Before Eternal September".
It's a drop-in replacement in the sense that you don't need to modify your code. But it has limitations/incompatibilities. Contrast to something that isn't a drop-in replacement... That would require changes to the application.
Yes. You’re right. I should have written it like this:
Let A,B,C, and K be elements of the Natural Numbers.
1. ∃K(K≤1∧∃A,B,C(A^K+B^K=C^K ))
2. ∃K(∃A,B,C(A^K+B^K=C^K )∧K≤1)
3. ∃K(∃A,B,C(A^K+B^K=C^K )→K≤1)
4. ∃K(K>1→∀A,B,C(A^K+B^K≠C^K ))
It would make sense for the LGBT+ rate to continue increasing into the future, but I agree with the unlikable characters. They all seem scummy and that makes all the moral quandaries that were central to TOS and TNG really dumb.
No, just that there a lot of searchable index sites that maintained huge lists of URLs for material on Megaupload.
Who is to blame when a treatment that's mostly helpful has a negative side effect?

Assuming the robot is prescribed because it's more effective than a human, and everybody involved understood the risks, I don't see an issue.

If it was done out of cheapness, it's the cheapskates fault.
Right, but what's it like if you know nothing about programming?
We've all been there. Things take much longer than expected. This is, as you've already stated, something we come to realize in our careers.

However, I would like to share a different angle, if I may. I don't think your speed is necessarily the problem. I think your time estimation skills might need some work.

It's easy for us to think things "should be simple". Unfortunately, the modern world of software is becoming more and more diverse and complex (a symptom of software "eating the world"). It's only natural in a world that has evolved from 8086's and terminals to interconnected-everything, multi-OS, multi-platform, multi-device magic is going to be orders of magnitude more difficult to build on at any reasonable scale of business. There are just so many small things that can go wrong!

I would gently suggest you stop being so hard on yourself and instead of beating yourself up for "being slow" just take each technology one at a time. Ultimately, the way to survive in this career is embracing change and staying sane while doing it. It's not easy, but it's the only way.

As for you being dumb, I would also like to say that it is clear you choose to deeply understand the topics you put in your head. Many folks "learn enough to get the job done" and very little more. It seems you have an appreciation for deep learning. This is not a bad thing, it is usually this trait over a long time that differentiates a truly senior engineer from an intermediate one. Your path may be slower, but it is probably more thorough and more informative in the long term. Keep in mind though, this breeds imposter syndrome in your mind. When you accept you still have lots to learn, it is easy to feel like you know nothing at all. I would suggest not letting this get to you. We all feel it, it is real, we're all just trying to do our best day-to-day.

Oh, and always 2x pad all your estimates at minimum, cause if we know anything about computing, it's that it always has hiccups.
There is a youtube video for that https://www.youtube.com/watch?v=y8OnoxKotPQ
I didn't say they needed to use REST. REST is a huge mess.

You can simplify it to GET = doesn't change stuff, POST = changes stuff. Basic HTML form tag stuff.

For the few things in-between like self-expiring links or counters recording how many times a thing was viewed can get tossed into GET because the data you're retrieving isn't being modified. (Search can be POST if you don't like query parameters in your urls.)
There's limited value if the site isn't continuing to amass new human-generated content. An "AI" that can only answer questions about technologies used until June 2023 will probably not change the world in the long term.
> I like colonialism and think it is good

I neither wrote nor implied that. More than one thing can be bad at the same time.

> excuses for atrocities

You are conflating "excuse" for "context". Removing context is how one demonizes a people. For example talking about the "savagery" of Native Americans, while omitting the savagery of Europeans.

You would readily recognize that for the demonization it is. Yet swap the actors, and you confuse it for honesty and virtue. Why?

Selective coverage of human rights violations is not history, but propaganda.
This is not solely about "mod wars" as you say. It's about being unable to use third party apps which are way better than the official Reddit app.
"Schedule I drugs, substances, or chemicals are defined as drugs with no currently accepted medical use and a high potential for abuse. Some examples of Schedule I drugs are: heroin, lysergic acid diethylamide (LSD), marijuana (cannabis), 3,4-methylenedioxymethamphetamine (ecstasy), methaqualone, and peyote."

https://www.dea.gov/drug-information/drug-scheduling

The key phrase is "currently accepted medical use". That is an arbitrary definition that is set by the regulator. A drug must have a medical use that is accepted by the DEA who defers to the FDA for such definitions.
JavaScript Imports Under the Hood
Black Mirror Season 6 released today
Why designers are crucial in the age of AI
They must've explored this, but couldn't one make a GIL emulator/wrapper for legacy extensions so that they can still work in GIL-less Python while they are (hopefully) updated to work with the new synchronization primitives?
Great point about debugging.

We're currently trying to simplify a monolith that is too hard to maintain, and the biggest issue for us that debugging is heavily impacted the call-stack size. Sometimes 100 functions before it gets to the point you want. All this due to very complex class and function hierarchies.

I'm responsible for a rewrite of some modules and I'm personally gonna stick with simple stuff.
They can get grumpy. Who cares? They can live with $7.5 million. I hope they will be able to recover from this crushing blow.
>but the development time adds at least hours

So? some "hours of development time" is nothing.
Note there is talk about building a similar test reactor in Texas

https://www.nextbigfuture.com/2022/08/texas-applies-to-build...
What is a "full" Dyson Swarm?
While it's far from over, the Facebook-Twitter-Reddit consensus does seem a lot shakier right now. I'm excited to see what the more fractured/federated social space of tomorrow will look like but I also feel like we'll come to miss some of the more contentious features of the current megaplatforms (e.g. centralized moderation).
A bajillion layers of unnecessary indirection is gonna have the same consequences.
Perhaps you could just scrape yelp and use machine learning to show the patterns?
You can improve performance by moving to a single thread. Pinning work to a single core will improve cache performance, avoid overhead of flushing TLBs and other process specific kernel structures, and more.
Additionally, it still uses less resources. VS Code consumes at least 1 GB of memory for just a simple project. I am not even mentioning other IDEs
To get to the other side?
> “We have two minutes of your attention.

And we're going to use those two minutes to actively piss you off.
Sugar is such a substance:

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2235907/
Unrelated but trying the HN wisdom here: any suggestion for a cheap touchscreen with a CPU attached and a battery that can be used as a control panel for Home Assistant? Yeah, probably some Android tablet but something that actually works well for this job and costs as less as possible? I cannot power it properly where I want to put it so it needs battery and then I can charge it as needed. Suggestions?
I think that's called "learning from one's mistakes". I hope.
Powered by nuclear fusion
For newer tools: maybe.

But 20 years of experience vs. some schmuck who is right out of the coding bootcamp, vs. guy with gpt4 prompt.

<toughchoice.jpg>

(of course it depends on the situation, but the point stands)
Always pleasure to see short implementations, but I’d still take HNSW over such approach. Its core implementation can also be quite compact. In our case with USearch [1] its about 2k LOC, even with a custom implementation of priority queues and custom numeric types like uint40_t for indexes beyond 4B points.

Obviously, together with bindings for Rust, Python, JavaScript, Java, Objective-C, Swift, and Wolfram it gets slightly larger, but on the bright side, you can pass JIT-compiled functions and store/search elements of different dimensionality, which allows much broader applicability [2].

[1]: https://github.com/unum-cloud/usearch
[2]: https://ashvardanian.com/posts/abusing-vector-search
> I'm going to admit that what I really want to see is a strong push to standardize and fully incorporate package management and distribution into python's core. Despite the work done on it, it's still a mess as far as I can see, and there is no single source of truth (that I know of) on how to do it.

Package management is standardized in a series of PEPs[1]. Some of those PEPs are living documents that have versions maintained under the PyPA packaging specifications[2].

The Python Packaging User Guide[3] is, for most things, the canonical reference for how to do package distribution in Python. It's also maintained by the PyPA.

(I happen to agree, even with all of this, that Python packaging is a bit of a mess. But it's a much better defined mess than it was even 5 years ago, and initiatives to bring packaging into the core need to address ~20 years of packaging debt.)

[1]: https://peps.python.org/topic/packaging/

[2]: https://packaging.python.org/en/latest/specifications/index....

[3]: https://packaging.python.org/en/latest/flow/
>who think they can't be replaced by someone with less experience equipped with AI.

Because in a shrinking market experiece + AI is vastly superior to little experience + AI.

Experience is becoming more important, since experience is required for the tasks AI is very bad at. AI is drastically increasing the barrier to entry, since it can do many of the things entry level people are/were useful for, but it can't do any of the things experienced people get payed for.

ChatGPT can not tell you which API changes to your 1M SLOC code base are helpful for the future interests of your corporation. It won't talk to management about technical challenges in demanded features or which hirings are neccesarry to be on time with future projects.
Some device that I can put in my garden and will send status reports on bird kinds and the state of the plants (the article mentions tomato plants giving something audible if dehydrated) would be really awesome. Especially in relation to weather, time of day, day of the year, etc.
This is one of the best ROM listings, I've ever seen: the comments are informative and detailed, making it easy to follow along! A great source for anyone interested in Z80 code or eager to learn.