HNHacker News
TopNewBestAskShowJobs

bear8642

240 karma · joined November 18, 2019

submissionscomments
bear8642··on APL deserves its renaissance too (2018)
Hmm, feel q looses APL and K's conciseness with the ability to express yourself within a few characters rather than whole words
bear8642··on Random walk in 2 lines of J
> Does it actually succeed though?

Not sure about J, but I feel APL certainly does, at least for me - the symbol set makes it very easy to sketch out a solution.

Part of that ease is the generality of the various operators. That is the reductions and cumulative prefix can be done with any function. For example ⌊\ as cumulative min - useful as Vanessa McHale shows <http://blog.vmchale.com/article/numba-why>

kspalaiologos also shows APL enabling mathematical understanding on her blog <https://palaiologos.rocks/>

An APL equivalent of the J is +\¯1 1[(?100⍴2)] although others exist as there's no exact equivalent for J's { - see <https://aplwiki.com/wiki/From>

bear8642··on BQN: Finally, an APL for your flying saucer
> whether it's J or BQN

Any reason you're not considering APL?

I've personally found it the nicest set of characters - BQN's too spacey for me :)

bear8642··on Ask HN: Best programming books in the last couple of years?
Hard disagree - I'd consider it the encyclopedia of Computer Science. Yes, might not be great to read in entirety but found very useful exploring some search algorithms recently - KMP and Boyer-Moore both explored in the excruciating detail I needed
bear8642··on We’re adding barcodes to our regular stamps
>online-only

It's printed on envelopes recently arrived currently.

That's how I heard about this

bear8642··on Security in Plan 9 (2002)
to be fair, it's where UTF-8 debuted
bear8642··on Brian Kernighan adds Unicode support to Awk
Whilst great Brian's added this, didn't Plan9's version of AWK support UTF-8?

I haven't used it, but my understanding was all the unix tools were upgraded to work with unicode - don't quite see why it's taken so long if the work was done already years ago

bear8642··on The Transputer Handbook (1990) [pdf]
Just to check - by Helios you mean <https://en.wikipedia.org/wiki/HeliOS>? I've not heard of it before.

> a parallel universe version of Plan9

I've enjoyed learning about Plan9, how would you say they compare as systems?

bear8642··on To reinvent the processor (2019)
This and Nand2tetris course both excellent resources
bear8642··on To reinvent the processor (2019)
> data-flow language

Forgive me if misunderstand, but could you not use an array oriented language such as APL, J or K? Whilst they probably don't quite mesh with explicitly controlling the data flow, but don't they and other declarative languages allow the computer to optimise the best path to maximize computational throughput?

bear8642··on How efficient can cat(1) be?
remember enjoying reading the simple plan9 version of cat(1) - <http://9p.io/sources/plan9/sys/src/cmd/cat.c>
bear8642··on Thinking in an array language
> the issue of regex mixing up control in-band with data

Could you explain this? I don't quite understand what the problem is. Do you mean something like sed's regex substitute command?

bear8642··on Ask HN: How did you learn good program design?
>"A Philosophy of Software Design" by John Ousterhout

Indeed, very interesting little book! He's done a talk[0] about it if you want a taste before buying.

[0] https://youtu.be/bmSAYlu0NcY

bear8642··on Thinking in an array language
Probably due to they're a great notation for the problem area which for regex is concisely describing text patterns.

For example 'a*b' is any number of 'a's followed by 'b'.

How else would you concisely state that?

bear8642··on Apple is discontinuing the iPod
> I could absolutely care less

Feel petty mentioning this, but you mean you couldn't care less right? As in you care nothing about latest movie, right?

Took me a moment to work out what you were saying, hence why pointing out, although aware small, potentially peevish position on my part

bear8642··on Ask HN: What are your favorite examples of elegant software?
Over on reddit, /u/mikemike has good read order for Lua source code: <https://www.reddit.com/r/programming/comments/63ht/ask_reddi...>
bear8642··on Ask HN: It's 2022. Where should I direct the youths to learn about programming?
To build a solution to a problem you have
bear8642··on Ask HN: Which books in your field do you think are perfect for self study?
Noam Nisan and Shimon Schocken's The Elements of Computing Systems good starting point for various topics - It's the accompanying book to their Nand2Tetris course and, along with my explorations with the Raspberry Pi, was one of the starting points in my computing exploration.
bear8642··on Ask HN: Which books in your field do you think are perfect for self study?
Bit old now, but enjoyed Steven's TCP/IP book too as he explores the various protocols
bear8642··on Developers spend most of their time figuring the system out
>You don't write README.md, ARCHITECTURE.md, JavaDocs, etc, at all?

Maybe? Not sure - haven't worked on enough big projects to declare answer

>A new developer is supposed to go through all the codebases and figure out for himself?

Yes to this bit - code should have very clear structure to it with appropriate comments attached, whether that's literate style as JonesForth<https://github.com/phf/forth/blob/master/x86/jonesforth.S> shows, small section header comment or whatever.

It should be very clear what section exploring does - tiny example but cat<http://9p.io/sources/plan9/sys/src/cmd/cat.c> from plan 9 very simple segmented code - deals with file opening in main loop and cat function just reads and prints text

bear8642··on Developers spend most of their time figuring the system out
Indeed!

Remember reading this <https://raspi.tv/2015/documentation-and-commenting-your-code> article on importance of comments

bear8642··on Developers spend most of their time figuring the system out
> * Start from data storage. (Database, flat files, whatever.) How does state get persisted?

Reminds me of Fred Brooks' famous "Show me your flowcharts and conceal your tables, and I shall continue to be mystified. Show me your tables, and I won't usually need your flowcharts; they'll be obvious." quote

bear8642··on Developers spend most of their time figuring the system out
Indeed! And even then drawing can help with the programming!

Discussing code for linked lists for example, having the box and pointer notation for what happens and scenarios very helpful!

[1]<->[2]<->[3] to [1]<->[3] means changing [1]'s and [3]'s pointers and freeing [2]

bear8642··on Ask HN: Codebases with great, easy to read code?
Any explicit examples?

Starting to explore scheme more and would be interested in some good pointers

bear8642··on Ask HN: Codebases with great, easy to read code?
The Plan 9 operating system is good C codebase to explore too
bear8642··on Inferno: A small operating system for building crossplatform distributed systems
Well she is married to Rob Pike…
bear8642··on "Maxwell's equations of software" examined (2008)
Could you explain how that expression works? Recognise the Y combinator on the left but don't understand the right sub-expression
bear8642··on A non-standard book list for software developers
But it has survived - Clojure, a JVM lisp dialect, flourishes!

Feel part of what makes lisp fascinating is its simplicity and power leading to its place as a test bed for ideas such as continuations and Kanren, a new logic programming language.

bear8642··on A non-standard book list for software developers
Remember reading Papert's Mindstorms book and being reminded of the fun you can have with computers, these powerful modelling machines - as Douglas Adams put it too
bear8642··on Recreated sources for the book “UNIX Text Processing,” published in 1987
Thought that was more how they convinced management to buy PDP11 saying we'll make typesetting software for patent department?
← PreviousPage 4 of 9Next →