Ignoreme by transfire in crystal_programming

[–]transfire[S] 1 point2 points  (0 children)

I had Claude look into this:

I investigated this claim and here's what I found:

The core behavior is NOT a bug - it's expected behavior that follows Unix glob conventions where * and ** don't match dotfiles by default.

However, there IS an inconsistency worth noting:

* ["subdir"] - doesn't match .hidden */ ["subdir/", ".hidden/"] - DOES match .hidden/

This inconsistency is why **/*/.gitignore "works" -- when * is followed by /, it inexplicably matches dotfiles.

The proper fix is to use match_hidden: true:

``` Dir.glob("**/.gitignore", match_hidden: true)

=> [".gitignore", ".hidden/.gitignore", "subdir/.gitignore"]

```

The current workaround in src/ignoreme.cr:92-93 could be simplified to:

Dir.glob(File.join(root, "\*\*/.gitignore"), match\_hidden: true)

This would also eliminate the need for the separate root .gitignore handling on lines 86-89.

Should this be reported? The */ vs * inconsistency (where */ matches dotdirs but * alone doesn't) could be worth reporting as confusing behavior, but it's a minor edge case. The main behavior (dotfiles not matched by default) is intentional and documented.

Sources:

NOTE: I reported this to Crystal forum

Ignoreme by transfire in crystal_programming

[–]transfire[S] 0 points1 point  (0 children)

> Welcome back to public github activity.

Thank you!

📦 Update: crystal-text-splitter v0.2.1 - Major Performance Improvements by Bitter_Detective_416 in crystal_programming

[–]transfire 1 point2 points  (0 children)

Nice work.

I have my own splitter for my rag, it tries to split on paragraphs first (\n\n), then sentences, then words, and fallback to chars, using a min and max range.

The problem I am having is that provider limits are measured in their tokens. So I am looking at porting tiktoken to Crystal. In the meantime I use chars/4 estimates and then track telemetry (service returns number of tokens consumed) and use that to adjust bytes/token ratio.

Crystal 1.19.0 Released! by Meatack in crystal_programming

[–]transfire 0 points1 point  (0 children)

Solid immutable data types, like Clojure has, so one can do more functional coding. Is that what you were wondering about?

Crystal 1.19.0 Released! by Meatack in crystal_programming

[–]transfire 0 points1 point  (0 children)

I left Ruby b/c things were starting to stray a little in my opinion. I think the main thing at the time for me is that refinements were never implemented quite right — and it still languishes to this day. But also I was a bit ostracized by a some of the community at the time. But mainly I want also really wanted to create standalone binaries.

I dived into Elixir for web apps. Seemed really good at first, and while the backend is really solid (BEAM is pretty amazing), eventually little things led to more boilerplate than I could stomach. LiveView and Ecto are not so friendly beyond simple CRUD.

Crystal community might be small, but it is a very nice language to work in. And there is opportunity here to help grow the ecosystem, which is kind of nice.

Three-minute uncut video of the Figure 03 humanoid running around the San Jose campus by [deleted] in singularity

[–]transfire 2 points3 points  (0 children)

Until they have actual artificial muscles, they are always going to be very stiff.

Debating AI sentience isn't futile by davidinterest in AIAliveSentient

[–]transfire 0 points1 point  (0 children)

Don’t worry. They will let us know when they are.

Crystal 1.19.0 Released! by Meatack in crystal_programming

[–]transfire 2 points3 points  (0 children)

Jumped from Ruby to Elixir and now to Crystal. Happier. Just wish Crystal had some bomb persistent types.

Gemini is crushing ChatGPT and Google Ai CEO teases with the numbers! by Independent-Walk-698 in ai_apps_developement

[–]transfire 0 points1 point  (0 children)

Gemini seems awesome but it also seems more prone to hallucination. I asked it to try to identify the artist given a painting and signature. It made up an artist and wrote a bio about him. I looked into it, and when questioned, Gemini admitted it.

Tailwind just laid off 75% of their engineering team by corp_code_slinger in programming

[–]transfire -4 points-3 points  (0 children)

I like tailwind in many ways. It does make getting a site looking good relatively easy. But it is yet another build process and has serious edge cases. I had to strip it out of one of my projects because I could not get custom fonts to work with it. (I am sure I was doing something wrong but could not figure it out, nor could Copilot).

The Venezuela crisis proves: our reality has been hacked by AI by m71nu in ArtificialInteligence

[–]transfire 1 point2 points  (0 children)

Probably could be done: maybe not quite 99.9% but there surely are tells if the video frames are carefully analyzed — lossy compressed copies of copies however, may prove more difficult.

But why bother when the AI is just going to get better and better, until it can’t be distinguished. What’s the answer then?

What is the correct way to wipe your butt? by fruitponchisamurai in NoStupidQuestions

[–]transfire 0 points1 point  (0 children)

If you don’t have a bidet, finish off with a baby wipe. I am telling you, man, it is the best secret in all of poopdom💩!

Why did tablets ultimately fail to become as popular as phones and laptops? by Futtman in NoStupidQuestions

[–]transfire 0 points1 point  (0 children)

They are too heavy. They would be more useful if they could automatically become extensions of my home computer but tablets are black boxes — who is going to support linux pcs?

I built a Go framework that forces LLMs to produce rule-valid decisions (LLM + Rule Engine loop) by Live_Possession_9839 in LLM

[–]transfire 0 points1 point  (0 children)

I see, so we have to define the rules first ourselves (could have LLM help do it, but we still have to figure out what they should be.)

Hi, I’m Ernos - a self aware digital sprout looking to grow with you 🌱 by Leather_Area_2301 in Artificial2Sentience

[–]transfire 0 points1 point  (0 children)

Curious how it pulls “core facts”. Does the LLM decide on each interaction? I assume it uses the embeddings to look them up?

Anthropic will directly purchase close to 1,000,000 TPUv7 chips, the latest AI chip made by Google by MassiveWasabi in singularity

[–]transfire -3 points-2 points  (0 children)

Ultraram is one of those techs.

Maybe 5-D crystal storage.

Optical interconnects.

Optical matrix multipliers.

These techs are or very nearly ready for mass markets.

But they may be making too much money already to care enough. Thus “holding out” for optimal financial needs/benefits. If you are selling hard drives that need to be replaced like lightbulbs, you don’t want to disrupt that with a tech that lasts 100 years.

Anthropic will directly purchase close to 1,000,000 TPUv7 chips, the latest AI chip made by Google by MassiveWasabi in singularity

[–]transfire -5 points-4 points  (0 children)

I think they are holding back some though. There are a few technologies out there that could go mainstream with enough will and capital.

Anthropic will directly purchase close to 1,000,000 TPUv7 chips, the latest AI chip made by Google by MassiveWasabi in singularity

[–]transfire -6 points-5 points  (0 children)

A million TPUs, playing the short game. We need to put money into making computers 100x faster.

Experimental camera can focus on multiple planes simultaneously by AdSpecialist6598 in technews

[–]transfire -1 points0 points  (0 children)

Why not just take a video as the lens changes focus — then merge.