Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
watergatorman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
1.
▲
by
watergatorman
6y ago
Some random thoughts: I appreciate the original simplicity of K & R, "The C Programming Language", 2nd Edition, and the relatively simple semantics of ANSI C89/ISO C90 compared to C99 and later. You don't need comple
2.
▲
by
watergatorman
7y ago
I have compared both Modula-2 and Oberon-2 to Go, but have not compared Active Oberon to Go. This was for purposes of creating a top-down, predictive, recursive descent parser for Go. I am curious on how Go is being parsed. LR, LL, or ? I a
3.
▲
by
watergatorman
7y ago
IMHO, Oberon-2 WithStmt has much cleaner syntax than Go TypeSwitchStmt. WithStmt is easier to parse, more general and it doesn't need the Primary "." "(" "type" ")" at the beginning which appears
4.
▲
by
watergatorman
7y ago
Try this, it is highly recommended: "C Programming: A Modern Approach," 2nd Edition by K. N. King is selling for 111 USD, covering C89/C99 but the First Edition, covering C89 is only 60 USD But if you want his "Modula-2
5.
▲
by
watergatorman
7y ago
You possibly can use command-line redirection but whether OBNC can read directly from console output, I am not sure.
6.
▲
by
watergatorman
7y ago
If I use module Out to write to STDOUT, is there a way for OBNC Oberon to Read the contents in that console window, so it can be treated as input.
7.
▲
by
watergatorman
7y ago
You don't, at least if the syntax/semantics is as complex as Python! Recommendation: Find a subset grammar for Python, by doing a search on computer science classes on university sites. You will find the published Python subset gr
8.
▲
by
watergatorman
7y ago
Yes, it displays correctly in HN. Now I can submit some content that best uses UpArrow for synthesized attribute in AG. Thank you HN for supporting Unicode!
9.
▲
Test of HN to See If This Displays Unicode 1F801 (UpArrow)
2 points
by
watergatorman
7y ago
|
9 comments
10.
▲
by
watergatorman
7y ago
Interesting article. There is both left and right recursion in the definition of <number>, but this EBNF (Wirth notation) uses iteration only: number = digit { digit } [ "." digit { digit } ] .
11.
▲
by
watergatorman
7y ago
Josh Lospinoso, the author of this blog, has now corrected this to read "pointer to const int" C declaration syntax confounds even the experts. I highly recommend this article to all interested in C and C++, and programming langu
12.
▲
by
watergatorman
7y ago
"... const int* x_ptr_3 = &x; // (3) ... Finally, we see the preferred approach, which is taking a const pointer (3)" Not a const pointer, but a pointer to const int.
13.
▲
by
watergatorman
7y ago
Rust popular? Tiobe language rankings for May 2019: Rust is ranked 34th at 0.335%, below Lisp and Prolog. Go is ranked 19th at 1.114%. C is ranked 2nd at 14.233% Rust does not have a stable, standard BNF grammar specification. The language
14.
▲
by
watergatorman
7y ago
C++ is a huge and complex language compared to C. [Compared size of the standard reference document for each.] C++ is complex to parse. Clang and Gcc use back-tracking to parse C++ and there can be long compilation times. Tiobe language ran
15.
▲
by
watergatorman
7y ago
Dijkstra's timeless advice. Also recommend: "On the Design of Programming Languages" N. Wirth CS-TR-73-403 "Hints on programming language design" C.A.R. Hoare "The Essence of Programming Languages" Niklaus
16.
▲
by
watergatorman
7y ago
Interview is dated March 13, 2018: Niklaus Wirth 1984 ACM Turing Award Recipient Interviewed by Elina Trichina March 13, 2018 Federal Institute of Technology (ETH) Zurich, Switzerland
17.
▲
by
watergatorman
7y ago
Doesn't say what tool was used to do the syntax highlighting colorization. Or was it done by hand?
18.
▲
by
watergatorman
7y ago
A limited comparison of C, C++, Go, Rust: Go and C seem to have a large number of available software tools. Based on the "size" of the reference documentation alone, C and Go appear to be the simplest to learn for beginners. A beg
19.
▲
by
watergatorman
8y ago
Assume ASCII characters: ORD('a') - ORD ('A') = 32 IF ('A' <= ch) & (ch <= 'Z') THEN ch := CHR(ORD(ch) + 32) END
20.
▲
by
watergatorman
8y ago
You need to look at TUIs (Text User Interfaces).
21.
▲
by
watergatorman
8y ago
Answering my own question, Geany has "Sending text through custom commands" and ability to add custom commands via "Send Selection to->Set Custom Commands" But it looks like this just replaces the selected text so it
22.
▲
by
watergatorman
8y ago
I generally agree with Lucas' sentiments re GUIs and in his other article "In Praise of Plain Text." But I currently select portions of text with a mouse by highlighting it, and then execute programs that accept that selectio
23.
▲
by
watergatorman
8y ago
I am not taking sides, because today's Ford Co is not saddled with Henry Ford's controversies, and both MIT and Ford are large organizations. I don't know who is right, a jury might decide. There is an interesting movie, &quo
24.
▲
by
watergatorman
8y ago
I found a LALR grammar for Rust on GitHub, compatible with Bison. But it does not closely track the published Rust Grammar nor syntax rules in the Rust Reference. (See Rust-lang DOT org site.) Although perhaps a Rust grammar could be extrac
25.
▲
by
watergatorman
8y ago
I looked at the Rust site and their published grammar. It is VERY incomplete, missing entire productions. I cannot determine if the syntax of Rust is "better" than that of C. At least the ISO "C" std. organization publi
26.
▲
by
watergatorman
8y ago
The authors of the "debunking" study suggest that the use of specific (complex?) programming language features might account for a greater number of bugs. Too many uncontrolled factors (programmer's experience level with a gi
27.
▲
by
watergatorman
8y ago
See: Niklaus Wirth "On The Design of Programming Languages" Procedures of the IFIP Congress 74, pp. 386-393 <PLHistoryGoodDesign.PDF>
28.
▲
by
watergatorman
8y ago
See: "Hints on programming language design" by C.A.R. Hoare Report Number: CS-TR-73-403 Stanford University, Department of Computer Science <CS-TR-73-403.pdf> Simplicity, readability, and so much more.
29.
▲
by
watergatorman
8y ago
Embedded C++ (EC++) I know, Bjarne Stroustrup seems to hate EC++ and claims it is dead, but tell that to game developers and the NASA Curiosity Mars Rover. You can't tell that to Opportunity, which does appear dead, but Embedded C++ is
30.
▲
by
watergatorman
8y ago
There is only a single combined percentage for C/C++ and not a percentage for C and C++ separately. Just curious as I have never seen TIOBE or other sites lump those into a single category.
More ›