Better HN
topnewbestaskshowjobs
Log inSign up

nferraz

93 karma · joined Sep 10, 2011 (15y ago) · 21 submissions

Software developer, master in business information systems, more than 20 years of experience with Linux and Free / Open Source Software.
Submissions

comment 8mo ago · link · parent

I liked the way how you bootstrap the agent from a single markdown file.

comment 1y ago · link · parent

Why did you opt for "highly-abbreviated commit IDs"?

Instead of:

``` calendar/seasons.blog 196 40 d1

    196  196e749
     40  40c52f4
     d1  d142598
```

The tool should simply display:

``` calendar/seasons.blog 196e749 40c52f4 d142598 ```

That's it!

The second table only complicates the output.

PS:

`what-changed-twice` is a good name.

3.

Show HN: st - simple statistics from the command line interface (CLI)(github.com ↗)

2 points · by nferraz · 1y ago · 1 comment

comment 2y ago · link · parent

> While LLMs are capable of writing functional Verilog sometimes, their performance is still subhuman.

The key word here is "still".

We don't know what the limits of LLMs are.

It's possible that they will reach a dead end. But it is also possible that they will be able to do logic and math.

If (or when) they achieve that point, their performance will quickly become "superhuman" in these kinds of engineering tasks.

But the very next step will be the ability to do logic and math.

comment 2y ago · link · parent

> The surest sign of a market for lemons is when everything for sale is garbage, and nobody has an incentive to put something up for sale that's not garbage, because they have no way to credibly signal their offerings aren't garbage, too.

That's why I left twitter...

comment 2y ago · link · parent

In fact, NAND gates are enough to build a Turing complete machine. ;-)

comment 3y ago · link · parent

It's a simple text adventure game engine. It looks like this:

---

The Lost Kingdom

You are a brave explorer on a quest to find the lost kingdom of an ancient civilization.

You are in a mysterious cave with passageways leading in different directions.

What do you want to do? look

You are in a mysterious cave with passageways leading in different directions.

I see here: a glowing gem

Exits: north

What do you want to do? take gem

Taken!

What do you want to do? look at gem

It's a glowing gem with an intricate pattern carved into its surface.

---

An interesting new feature is that you can ask the computer to do non-scripted things, like:

---

What do you want to do? eat gem

# Generating action...

You attempt to eat the gem, but it doesn't taste good. You spit it out and the gem is still in your possession.

---

The game, the scenario, the objects -- everything was created by GPT-3, and the script just have to keep track of the game state.

8.

GPT-3 Adventure Game Engine(github.com ↗)

1 points · by nferraz · 3y ago · 2 comments

9.

GPT Adventure Game Engine(github.com ↗)

2 points · by nferraz · 3y ago · discuss

comment 10y ago · link · parent

st - simple statistics from the command line

https://github.com/nferraz/st

comment 13y ago · link · parent

Nice! They definitely overlap, although there are a few differences... I'm not sure if ministat accepts bignum, scientific notation, etc.

comment 13y ago · link · parent

Yes, Sprint suggested this:

    octave -q --eval "mean = mean(load('$1'))"
But, again, octave requires more time to warm up...

comment 13y ago · link · parent

Yup, octave requires more time to warm up.

Regarding speed, for simple calculations like sum, mean and variance, the bottleneck is in I/O.

comment 13y ago · link · parent

There isn't a max rowcount for sum, mean, variance, etc, because it is not necessary to hold the data in memory.

The calculation of median and quartiles require that the whole set is stored and later sorted, so it is limited to the available memory.

Regarding your suggestion -- I'm considering the idea of dealing with multiple columns and even CSV and other types of tabulated data.

comment 13y ago · link · parent

Thanks! I changed the algorithm to online variance, hope it is more stable:

https://github.com/nferraz/st/commit/d0fb1bf814fc5940c5aae39...

comment 13y ago · link · parent

Thanks for the information!

I wanted to use "stat", but it was already used (display file status); "statistics" was too big.

Just as curiosity, I got the idea for this script when I wanted to calculate the sum of some numbers and discovered that the "sum" command was used for another purpose (display file checksums and block counts)!

comment 13y ago · link · parent

I like octave and R!

The reason I wrote this script was to get quick results from the command line.

For instance: I could use grep, cut and other unix tools to get the numbers from a file and make quick calculations.

Of course, for complex processing I would use octave or R.

18.

Show HN: st – simple statistics from the command line(github.com ↗)

73 points · by nferraz · 13y ago · 25 comments

comment 14y ago · link · parent

Super cool project! Thanks for sharing!!!

20.

XML User Interface for Appcelerator released as Open Source

4 points · by nferraz · 14y ago · discuss