skysight-inc/HackerNews huggingface dataset:
Your shell example

beef.txt | grep "lasagna" | sort -n | uniq

is a lot more compositional than your Python-style example:

search(for='lasagna', in='beef.txt', clear_duplicates=False).sorted()

The former uses a few general purpose functions, the latter seems to use bigger building blocks that aren't as universal.

You could more faithfully mirror the bash example in Haskell, if you wanted to, if you wrote the necessary library functions:

cat "beef.txt" | grep "lasagna" | sortBy numeric | uniq

This would be actual valid Haskell syntax.
> The idea here is to have all numbers be treated as reals (in the mathematical sense)

No. You can't represent, compare etc. most real numbers, so they aren't any good for computational purposes.

Practically usable number types include integers and things that have sufficiently number-like behaviour (e.g. fields) and can be represented with a finite number of integers: rational numbers, rational numbers with field extensions, vector spaces, finite sets, intervals, etc.

In a language for grammars you can probably stop at integers; general purpose programming languages might want more (for instance, Python has rational numbers) but advanced number types can usually be implemented with libraries.
Stop asking this kind of personal questions on public forums. Internet is not a good place for advice to life. Including this one.
Correct me if I'm wrong, but cmder is a terminal emulator not a shell.

Beside this cmder is really great, but recently I switched to MS's own Terminal, which is maybe even better in my opinion. Especially the integrations with wsl2.
I know it's not very HN-y to say "I agree", but I think your comment encapsulates wonderfully the general topic, in a concise and very well put paragraph.

edit: I am also commenting to retrieve it in the future.
Show HN: We craft minimum viable SaaS products
Helping founders bring their product to life, attract early users, and validate their idea.
Any more info on this? No info on their twitter or instagram, no news sources reporting on it.

I can't really see what the reason could be except legal.
Priest arrested for free speech protest outside abortion clinic
> would be one that did not draw conclusions but simply replied with the links relevant

Thats neglecting the facts that humans lie and are opaque as well. You never know when a "reputable" person will stop being reputable. How ML vets its sources is going to be the relevant question going forward. While MLs are black boxes, their objectives and measures are not, and the companies should make them transparent. After all, it is only going to increase trust to their systems
Does Google Search allow the AI (ChatGPT) generated content
Mad Max is a bit of a hidden gem, it got released at the same time as some other big game IIRC and people just skipped it.
> Google is still about sources. That deserves respect.

This isn’t true. They are well-known for taking information from the crawled pages and displaying it directly on the results page so people stop visiting the sources altogether.

This will only accelerate with LLM “search engines”, but let’s not pretend Google’s above doing the same thing. They happily do this themselves.

How Google eats a business whole:

https://theoutline.com/post/1399/how-google-ate-celebritynet...
In the context of LLM AIs vs. traditional search engines, I tried this one. The results were...hilarious to say the least.

> what is fc barcelona's latest result

> FC Barcelona's latest result is a 2-1 win against Real Betis in La Liga on February 5th, 2023

Half truths, whole lies. Barcelona's last game was in Feb 5 indeed but against Sevilla at a 3-0 scoreline [1]. The 2-1 win against Betis was in Feb 1 [2].

In fairness this escaped me. Pretty close to the truth. What tipped me off was my next question:

> who scored the goals

> FC Barcelona's goalscorers in their 2-1 win against Real Betis on February 5th, 2023 were Ángela Sosa, Rinsola Babajide and Natalia Montilla.

Bro, I've no idea who those people are and they certainly aren't FCB first team members.

(Unfortunately, ChatGPT is at capacity atm so I can't replicate the same experiment. Maybe Perplexity is just a poorly-written/trained bot.)

In contrast, I just have to type "fc barcelona" in Google to get their most recent results accurately; then click on those results to see who scored the goals, accurately once more. It even helps correlate the actual game date to the confusing "matchday" league taxonomy.

My point being, LLMs have been impressive in their current iteration but I don't think they will replace traditional search anytime soon. Maybe it will eat at the market share but I don't think this is an existential threat to Google. Even the fact that ChatGPT is at capacity at the moment says something about the real-world viability of LLMs as search engines. 2012 called and is asking if you are web-scale.

[1] https://www.eurosport.com/football/liga/2022-2023/live-fc-ba...

[2] https://www.eurosport.com/football/liga/2022-2023/live-real-...
Probably because of all the obvious money laundering.
/usr is ok, so /Developer is also ok
Chimera Linux
There is no global "value", there is no global "worth".

There is bid price, ask price, and last sale price.

Do they indicate "value" to the specific people making those transactions, bids and asks? Sure. Does it have to be the same for everybody? No, and that's why trade happens.
If you are able to, I'd recommend to take a sabbatical. I took 6 months off 9 years ago and I'm still super glad I did. Give your mind some rest and peace, disconnect and everything will follow. If that's not an option, why not join a smaller company where you can work fully remote and only 4 days a week? I have yet to meet somebody that went from 5 to 4 days/week and regretted it. There are so many profitable companies that pay good salaries (although not on a FAANG level), but don't come with the politics, give you the freedom to structure your day while still doing impactful work.
How do you know you never caught it?

I tested myself randomly one time, no symptoms, and tested positive.

Asymptomatic infection is quite common with covid.
https://archive.is/o56vY
Spend weekend time in nature, walking/hiking takes away your mind from electronics, so don't introduce them by purpose, maybe just to snap a picture but keep it offline. If you can, sleep there too, camping is fantastic and it connects us with the ways our ancestors lived.

That may be a good kickstart, another step is reducing phone and social media exposure during week. Just uninstall those apps, me removing FB few years ago was great step in this direction (plus saving tons of battery life since it was draining it even when unused)
FWIW LocalBitcoins has been virtually unused for a very long time by anyone wanting to do local crypto swaps. There are instead much better non-custodial services that still accomplish the same goals (locking/escrow, reputation, arbitration, etc.) without the same risks.
I would probably turn that around and ask why are you asking?

Outside of command line editing features, some kind of completion, novelties, and prettiness, I think most of the time it always comes back to "I chose this shell due to syntax, or programming of some kind". e.g. tcsh due to the C-ness of it.

I am writing this from Linux, been using csh on Solaris and then bash on linux since, well since back then... I have seen a lot of shells come out, but every time I switch to one I think about my personal needs in the shell and portability (I do manage a large number of boxes, and most of them do not have extra items installed, including shells) so I end up back at bash/dash/sh.

Again, I would ask myself what you need in the shell. If ZSH or Fish or csh or ksh or some esoteric shell fit the bill, why not just try it as a daily driver? I mean, what is the worst possible outcome? (unless you make a living making life support shell driven software...)
I remember reading on a forum many years ago where one person was rationalising performance over correctness, someone replied that if their code didn't have to be correct they could get the answer in clock 1 cycle with zero memory usage. :-)
i know a fair few eshell users. i’m not among them but they’re out there
I think in 2012 you couldn't look back and say that things had changed because these findings were still near their historical averages. But looking back from now it appears the upward trend started in 2010, which tracks with the effects of the Global Financial Crisis. It is possibly leveling out now, and who knows the directionality in the future.

Are these findings substantially different from other groups? Do 30-35 and 40-45 experience a different trend? Is there any cohort data?
I noticed the contrived Python example too, but yours will explode if the input is too big, so, it's not equivalent to Shell, which will buffer the input.

Still, even with that in mind, Python variant could've been greatly simplified. To give the author the benefit of a doubt: they probably made such a contrived example on purpose to underscore their point, but it's hard to find small-scale examples which illustrate verbosity... On the other hand, I might be overthinking on behalf of the author. Doubt they explicitly set out to make a contrived example. They probably wrote what they wrote and were happy with the result because it helped them to make a compelling argument, and they didn't think to analyze their own illustrations too deeply to see if they might disagree with their conclusions.
Works for me, just last Wednesday I logged in to a guest wifi while waiting my kid to come from her hobby.

It just popped up a web ui window where I could click the silly accept button and everything started working.
Reading between the lines: "We've made some risky investments as a side deal that REALLY didn't pan out."
That's a cool idea and a clean design. I have seen a lot of design studios around but not really one that focuses on MVPs. What's your usual turnaround for each project?
The problem is that fixed decimal types are far less standard in many programming languages. One thing I really loved about Groovy is that BigDecimal is the standard type for decimal numbers. Type `1.5` and you will have a BigDecimal rather than a float in your hands.

Not very suitable for complex scientific calculations of course, but perfect for web development which is more likely to deal with money than scientific calculations.
A Kafka topic is divided into partitions. A consumer group can have many consumers. The consumers inside the same group will be assigned to consume a subset of the partitions.

Say you have a topic with 10 partitions. Consumer group A has 10 consumers and Consumer group B has 1 consumer.

Each consumer in group A will be assigned to a single partition,thus processing different messages.

The single consumer in group B will be assigned to all 10 partitions, processing the same messages as group A.

Kafka is a distributed log, so this pattern is useful for replicating data across downstream applications.
The biggest two problems with Photoprism are:

1. No sync facility. I have to use some other app or do it manually.

2. No native mobile app. They have a webapp, but it is absolutely not good enough. Slow, laggy, unresponsive, just unusable if you have lots of photos. I know mobile app development is very costly these days, and photoprism is free. So I am putting up with it.
Their volumes have been getting smaller and smaller throughout the years. Likely reason is that the service just isn't profitable any more. Their volumes are public: https://coin.dance/volume/localbitcoins

These days there are lots of services offering p2p trading, and big exchanges like Binance also have p2p trading services for multiple cryptocurrencies. I would guess that Binance p2p volume alone is likely many times of that from LocalBitcoins these days. Most players don't publish their volumes though.
Have you ever programmed a video game? It is a nice experience. And weird, if you are used to apps.

> I'm not a fan of the complexity

That is a very frequent trap many devs fall into when doing a video game. You start with the intention of programming a video game and you end up spending all your energy building a video game engine first. Resist that with all your might. I recommend trying to make a little game that "works" from the start, and then doing small improvements gradually while making sure that what you have is still a "working game". If you spend more than an hour with your game in a non-runnable state, revert to the previous commit and reassess.

Second problem complexity-wise is ... just incidental complexity. In general, 3D games are one order of magnitude more complex to do than 2d games, so I would recommend the later.

You could try doing something in PICO-8 [1]. It's a game dev environment with artificial limitations. Like the number of colors (16), the screen resolution (128x128) and others. It's programmed in a dialect of Lua, which is in itself a very tiny language. It is possible to make something overly complex with those limitations, but you have to try really hard. And it is fun.

[1] https://www.lexaloffle.com/pico-8.php
Its very strange. There are many cases I noticed where I double quote search a string and it yields no results but once I do "my query" site:thesiteiknowitsfrom.com it gives the results.
They are joking about it, because he used to win. There's nothing good or bad about him losing.
What services?
Chimera at FOSDEM 2023 and the path towards alpha
> Microsoft's new Bing Chatbot is vulnerable to a prompt leak attack - and Microsoft worked with OpenAI directly on building that! https://twitter.com/kliu128/status/1623472922374574080

It's likely this is mostly hallucinated. It doesn't really make sense to give the model such a large starting prompt; you'd fine tune it instead.
I see Symantec wanted to reproduce the astounding success of Don't Copy That Floppy: https://www.youtube.com/watch?v=up863eQKGUI
There are content blockers, which are not as comprehensive as Firefox or Chrome extensions but also avoid the performant and privacy concerns common in that space.
oh-my-zsh on Linux is absolutely great, especially with autosuggestions and syntax-highlighting enabled.

On Windows I've settled with Windows Terminal and clink.

I've tried Powershell too but never got used to it. The concept where everything is an object sounds great. But in practice, to me it only is when scripting. When doing interactive work on the command line (which is what I do all day), as a human, nothing beats plain text for me. Enlighten me if this I missed the point of Powershell.
Google started out noble, but was poisoned by its own success and by extension, poisoned everything it touched. The web, as a platform, is nearly dead. Walled garden phone apps are almost completely dominate. The revenue model is on such shaky ground that almost all remaining websites either went clickbait with a pox of ads or paywall. I would not be able to list more than 5 websites that survived Ads and SEO, perhaps only Wikipedia.

These LLMs will be the end. They will capture enough of the user attention that the few remaining ad supported sites will be wiped out. “Content”, that low quality grist every site is filled with to capture users for a few seconds before they click on will become worthless, no different than the low quality crap the LLMs spew out.

Finally, we will stop trying to keep the bloated corpse of the web alive and will move on. It will be the death of a dream. At least we can all let go and focus our energies on a new dream. Whatever that dream is, I hope high quality, human created art, knowledge, opinion and creativity is at the center of it.
Does it? My feeling is that users use whatever you give them. And then they buy a new device because theirs is "becoming slow". They don't say "wait, Slack is just a glorified IRC, it should work on my iPhone from 2008, I will just refuse to use it" because they need it.

There are no alternatives to the Slack ElectronJS Desktop app. That's the whole point: they don't want to maintain native apps. And they don't open their API to let others do it, I guess because that may hurt their lock-in benefits.
In Europe this is "gap year". America needs it agreed.
SolidGoldMagikarp (Plus, Prompt Generation)
Just in case that maybe interested to you. Currently (with nightlies) using NativeAOT + C# you would be able to have approximate same as Go. Even fully statically linking executable. And given that MS working on making apps have less size, gopefully it would be comparable to Go in app size.
They released CLIP and they release papers/descriptions of their work for all their other products, enough for people to reproduce them. That's quite open.
Thanks! We've been through the process a number of times so have refined it down to 4-6 weeks for an MVP, and 2-3 weeks for a prototype.
If I recall correctly, the original compilation target is not even /bin/bash but the /bin/sh. Originally, the ./configure script generated by autoconf must run on several incompatible flavors of Unix at that time, including AIX, SunOS, and BSD, powered by several different CPU architectures, such as x86, Alpha, SPARC, and MIPS, so shipping binaries or using the Bash syntax was not acceptable. It must strictly use the original sh syntax. Though I suspect lots of Bashism has lurked in over the years since nobody still tests it anymore.
I don’t think he’s calling him a crank, anymore than he’s talking about a specific broken clock being right twice a day. It’s just hypothetical to demonstrate a point. If he were a crank journalist, being accidentally right twice could still make him a journalistic legend. Therefore, we can’t trust simply because he’s famous, because a broken clock is right twice a day.
Maybe I'm missing something, but it has always seemed to be that people who complain about shell scripts do not approach shell scripting the way they approach any other programming language. By this I mean that they seem to actively resist the idea that they need to learn the language to get the most out of it.

One of my early jobs involved maintaining a pile of shell scripts that were part of automating a publishing system pipeline. So I picked up a couple of suggested books and learned everything I could about shell scripting. I quickly grew to enjoy working with shell scripts for automation.

Yes, there are quirks and oddities in shell scripting but the language is very well document and good practices and style guides have been around for ages.

Would you expect to understand any language without studying it first?
It's just the regular wantrepreneurs wave when a new shiny thing is released, we had the same with crypto, give it a few months they'll crawl back from where they came
You can be welcoming and still enforce guidelines, it's not an either/or situation.
There are off-the-shelf drone radio links that can reach 200 km. However according to the Ukrainians the Russians have been able to jam everything else than modern satellite communication.
Google changed everything but nowadays it feels as bad as Yahoo was at the time. Google search is now optimised for ad $$$, not for finding what you're looking for. If Google hadn't existed then maybe we would have got competitiveness in the search space.
That's cool. Wish you good luck!
LocalMonero is nice, and reasonably active in quite a few countries.
I do agree with you here.

There is a small smell of "we want to build this" vs "we should buy that"
As you say, when you get into tens of millions, film vs digital is less important cost wise.

I'd argue somewhere between no-budget and massive, there is a sweet spot to be had.

Everything else being equal, shooting on film is of course more expensive...

however film can be a forcing function, especially if you are on budget. (But not low enough you can't handle the fixed costs of film.)

It's all in the planning:

- you can't get "free" re-takes. That keeps everyone focused, including actors.

- you must have more light, so you are more likely to plan out your light, instead of shooting in different conditions and try to correct later

- film lends itself to a certain look. Shooting digital, you have so many options in postprocessing, you can lift stuff out of the shadows etc. Too much freedom can be a bad thing, film forces some coherence.

- the fact that you can't see the filmed results the same day means you get really disciplined and focused making sure everything works beforehand. When you have many people involved, this is key. (If you trust your process and use a video tap to see if scenes were nailed, you can even skip dailies to cut cost.)

- less raw video data to handle, post process, grade and cutting. The less film shot, the faster everything post shooting takes. There are many films which could have been cut into several completely different movies because there was so much material shot, and the "risk" of this being possible increases with the lure of cheap digital capture.

So to be clear, I think film can in some conditions be cheaper than digital, for social reasons. If someone has the skill to push back and keep such a tight ship on digital set, of course they will be cheaper and faster.

I base this on listening to producers saying they went for film for nostalgic or aestethic reasons, but were surprised to same or less total spend as their digital projects.

I may be full of it, feel free to shoot this all down, you are obviously in the industry and I'm just jealously peeking from the outside.

So I'm not saying film is inherently cheaper
> The AI war has started, this is good, healthy competition, for once.

As much as I don't like SEO driven search I'm not sure if this is right direction. From technical point of view it could be but I'm worried how this will be gamed.
Maybe it got needled by the still orbiting remains of https://en.wikipedia.org/wiki/Project_West_Ford ?
Nope, it's good for me. :)
I just shared fun fact (that chatgpt thinks it's generated by it), but it doesn't mean that it's true or the article is bad.
Sorry, I meant what setup keeps the kids away from your productive time.
There certainly are bullshit jobs and people doing valuable roles in bullshit ways, but Graeber’s claim that more than half of societal work is bullshit is also clearly bullshit, and not just because I read some of the book and sighed heavily before putting it down, but also because of claims like this that I didn’t see in the book but are in the Wikipedia page:

> duct tapers, who temporarily fix problems that could be fixed permanently, e.g., programmers repairing shoddy code...

To think that code can be “fixed permanently” shows a complete lack of understanding and insight into programming, and brings to mind the Gell-Mann Amnesia Effect - if Graeber is so wildly wrong about a subject I know well, why do I trust him on those I don’t?
I used to work in a project where every other rolling upgrade (Amazon’s managed Kafka offering) would crash all the Streams threads in our Tomcat-based production app, causing downtime due to us having to restart.

The crash happens 10–15 minutes into the downtime window of the first broker. Absolutely no one has been able to figure out why, or even to reproduce the issue.

Running out of things to try, we resorted to randomly changing all sorts of different combinations of consumer group timeouts, which are imho poorly documented so no one really understands which means which anyway. Of course all that tweaking didn’t help either (gunshot debugging never does).

This has been going on for the last two years. As far as I know, the issue still persists. Everyone in that project is dreading Amazon’s monthly patch event.
The official reason, "crypto-winter", seems like bullshit to me. LocalBitcoins started in 2012 when volume was way lower and price was under 100$. Seems more likely that they were pressured into shutting down.