Better HN
topnewbestaskshowjobs
Log inSign up

TuringTest

4,482 karma · joined Sep 28, 2012 (14y ago) · 2,101 submissions

Send me a note at turingt+fromhackernews (at) gmail.com

I hope the spam filter will respect it!

Submissions

comment 9y ago · link · parent

That's because browsers don't support native Markdown formatting.

comment 9y ago · link · parent

Understanding Haskell syntax requires a lot more than learning the precedence of []+{}. Plus, if you already have a very chewy and hard topic to learn, adding a new PL syntax on top of it certainly won't help.

comment 9y ago · link · parent

But they serve the same purpose, even if their implementations are entirely different.

So it makes sense to provide an initial explanation of one in terms of the other, in special for people who already have some mental model of what virtual machines do.

comment 9y ago · link · parent

Notebooks a la Jupyter do have all the qualities described in the article in graphical form. In fact any programmable system that allows combining multimedia objects could be shaped as a graphical CLI.

That kind of system would have been very hard to make with object oriented programming. But thanks to the recent advances in programming languages supporting asynchronism and composability, we'll see more of them.

comment 9y ago · link · parent

That sentence was qualified by "in lecture format", i.e. with a teacher exposing words and images with a projector, like you do with PowerPoint.

Jupyter notebooks, like explorable explanations, require the audience to interact with the tools and not merely be passive watchers, which was the context for that sentence.

comment 9y ago · link · parent

But it could easily become true if SQLite was a common document format. Back in the 90's and early 2000's, OS didn't come with a ZIP utility either.

comment 9y ago · link · parent

> Maybe you want to create parts of the system by interacting with a REPL (instead of writing a static block of text) - and then you'd want to record how you created this specific artifact.

Yes, exactly. You get that with a REPL (e.g. Lisp or Python) and copy-pasting to the source code files, but it's far from ideal.

> The other thing that would help, and my personal wish, is better simulation and the ability to see indirect effects of changes

So, sort like explorable explanations[1][2], but aimed at developing a new model and not just exploring one that has been already made? That's what I'd like to see, too.

[1] http://worrydream.com/ExplorableExplanations/

[2] http://worrydream.com/TenBrighterIdeas/

comment 9y ago · link · parent

> Can't we come up with something better?

http://worrydream.com/ExplorableExplanations/

Of course that requires providing the spectators with the capacity to interact with the content at their own pace.

If you want to use the lecture format, there's no alternative to crafting a well-structured presentation a la PowerPoint. There could be better tools that could help more in finding the right structure, but the end result will look largely the same - a sequence of images and text that convey the main ideas in an easy-to-grasp format.

comment 9y ago · link · parent

A very fitting news for Halloween day.

comment 9y ago · link · parent

> The engineering break through will be when we have a scripting/evolving system that can be more easily distilled into sealed systems. So people poking around in a spreadsheet will be able to turn that into a reliable application.

Yeah, I see that as a likely evolution as well.

In some ways, an IDE is already an exploratory system with a focus on delivering a sealed system - the final compiled software represented by the source code. I believe this combination is what made IDEs so successful and universally desirable, and future programmable environments should share these traits.

Auto-completion, refactoring and code-browsing tools support the exploratory work. The problem is that IDEs are not so good at exploration as a REPL because they're unable to store intermediate results and states. TDD could then be seen as an ad-hoc way to store such intermediate state.

comment 9y ago · link · parent

> It's also difficult to believe the web will stop working, or that people will stop making websites just because more people are browsing just on the "trinet"

Is it? Lots of small companies and social groups rely on having a Facebook page as their primary way of contact and advertisement, where they would have created a web page of their own in the past.

comment 9y ago · link · parent

Quite true. I find likely that the next revolution in programming languages will come from designing a PL that's a good fit for these programmable environments. Maybe it should break from current undisputed conventions like the radical separation between "data" and "source code", and be more like a spreadsheet.

End-User Development has lots of under-explored ideas on how to build software automatisms that don't require the end user to learn a hard formalism (even if such formalism exists as the basis for the system). Though I understand that programming language theorists are not interested in that angle of the evolution of PLs.

comment 9y ago · link · parent

Yes, but they are only available for a few languages, and they're not a tool that is recognized as beneficial to programming in the large, like for example IDEs are.

Moreover, having direct introspection of a model stored in a local notebook is still quite limited with respect to having it in the whole environment like Smalltalk or HyperCard did. There are a few systems trying to explore that "structure of the project" approach, like Leo Editor or the Smallest Federated Wiki which could be a better basis for a "Inventing on principle" tool.

comment 9y ago · link · parent

> Lots of people are reinventing Smalltalk on a Mac. (See Bret Victor and Eve).

At last, someone noticed! ;-)

Though from that expression, what the author doesn't seem to grok is why having a Smalltalk-like environment is desirable; maybe not as the primary way to program computers but certainly as a tool alongside.

It's a shame that a family of programming languages that build on and expanded that model hasn't gained more traction in the industry (not necessarily for people who dedicate their lives to build complex software with a highly general programming language, but for the rest of us).

comment 9y ago · link · parent

"Memoization" is only used in the context of caching results of previous function calls.

So if you see the word, you instantly know that this is the context. You wouldn't know that if you see "memorization".

comment 9y ago · link · parent

You haven't been watching the news recently?

comment 9y ago · link · parent

That's because machines needed lots of manual operators to take care of them while working.

Now that we have computers, it's not at all clear that this will be true anymore; machines need to be designed, but that requires much less people working on them.

comment 9y ago · link · parent

I'm afraid the material is some handwritten notes in Spanish, interleaved with some code examples in PROLOG. They were quite systematic IIRC, covering basic logic, data structures, proper use of the !bang for performance, etc.

I no longer have the exercises in code, just paper. I've yet to scan my handwritten notes and bring them to the digital era :-) This may prompt me to finally do it.

If you still want them, I can send you the scanned pdf to your mail. However, I think you'd better off with some free online course. On a cursory examination, this one seems similar to the content in my notes:

[1] http://www.learnprolognow.org/lpnpage.php?pageid=online

comment 9y ago · link · parent

It was introductory, yes, although it also covered relational programming in PROLOG.

I benefited from the type inference/type declarations, and learning about generics explained in a non-duck-typing way, though, which I wouldn't have had in LISP.

comment 9y ago · link · parent

I studied Haskell in college (with the Gofer variant), and it was GREAT for learning practical functional programming.

We didn't use monads though (they weren't in widespread use back then), so we had to learn the accumulator-parameter pattern and tail recursion the hard way.

Learning my foldr's and foldl's and zipwith's gave me confidence that almost any imperative programming can be equally represented as a recursive function, which is an important lesson for someone who had only learned about traditional imperative programming and OOP up to that point.

Of course, a proper course should center around algorithms and recursive data structures where functional programming shines; it should not begin with building business application logic, for which a classic language may have a gentler ramp-up.

comment 9y ago · link · parent

Offtopic, but does anyone know what's going on with the FreeRTOS license? They add a GPL incompatible restriction to benchmarking, but they also use license GPL v2 "or later", which allows the users to remove such restrictions. Do they have a clue about their licensing model?

comment 9y ago · link · parent

Maybe, but comp-sci does not study all possible programs with equal probability. A notation should be optimized for the kind of problems that are more often studied, and make expressing those easier.

If this pushes complexity towards the expression of randomly generated programs, that's a good thing (except for the few guys that study randomly generated programs, that is).

comment 9y ago · link · parent

As a corollary, if you're using a general purpose language, there will always exist some domain where a Domain Specific Language will be equal or better.

comment 9y ago · link · parent

I have not watched the talk in-depth so I can't tell whether it's trolling, but I have worked with academic CS papers. I would agree with an attempt to develop a new symbolism for describing CS theory, that was closer to modern programming languages, or at least to a LISP-like Domain Specific Language.

It's true that the language of mathematics was optimized for a different medium: written formulas on paper. Algorithms are better expressed in pseudo-code, but to describe the exact effects of a language instructions we have to resort to formal semantics (whether denotational, operational or axiomatic), which basically describe the workings of a virtual machine in terms of a temporal logic expressed with mathematical symbols.

The ellipsis in maths is usually an ambiguous symbol whose meaning changes depending on context. In CS, it typically represents either vectors in memory or successive recursive calls. Trying to provide a precise meaning for its usage is a legitimate endeavor; it appears that Steele is using symbols from vector maths to achieve it. What I get from skimming the video is that the combination of overlines and underlines would be a way to represent how you would combine your nested loops in imperative programming to traverse the data structure.

comment 9y ago · link · parent

> They could easily configure it to be malicious one time out of a million (say); what are the odds that they would be caught?

How could they do that easily? Their source code is public, and many third parties work on it and produce their own compiled versions - plus every security people tracking unexpected connections would catch it.

comment 9y ago · link · parent

> It can, however, easily be read via javascript, so mozilla needs to be trusted in any case.

Or you (and some friends from organizations like the EFF and FSF) can read the source code to see what it does, and even compile it yourself. If you do that, you only need to trust the compiler.

comment 9y ago · link · parent

> A man that (if you bother to read up on what he is up to now) doesn't even believe any of the shit he said back then and actually apologised for it.

Can you provide a pointer to that? I haven't found anything in that regard, either at Wikipedia nor searching at news sites.

comment 9y ago · link · parent

> rather than expressing them as particular instances of more general things (as you'd do using category theory), he breaks them into a small set of more fundamental things which can be re-combined into familiar design patterns.

I haven't read that book, but it sounds similar to how Peter van Roy deconstructs programming paradigms:

[1] https://www.info.ucl.ac.be/~pvr/VanRoyChapter.pdf

[2] https://en.wikipedia.org/wiki/File:Programming_paradigms.svg

comment 9y ago · link · parent

Having a universal platform with several competing implementations ported to multiple hardware and operating systems, easy deployment, and a standardized user interface model with very high configurability, resolution independent, allowing end-user tweaks to presentation, and responsive resizing of the user interface?

No, I haven't, and I was developing before the web existed. I don't doubt there may be much better tools for some things outside the web, but none for a platform with all those features.

comment 9y ago · link · parent

> That event (or part of a store, or however it's implemented) already has to be defined in code (even if it's just a stub) by the time you're making the UI.

That's a good point. A visual tool for building components will need a testing feature that can keep all those stubs. But isn't that just like Test-Driven Development?

> It's also starting to approach the difficulty of just learning to code in the first place.

Not at all.

In any design, you'll have to think about all the cases thoroughly and systematically; and any rational people can do that. But coding in a general purpose language has the additional requirement of having a mental model of the execution platform and conveying precise instructions; it's not enough to think in terms of the problem being solved. That makes all the difference to people without coding experience.

The syntax of programming languages is particularly tricky and difficult to learn. The people working with Chris Granger, the designer of Light Table, found that users of visual development tools find it incredibly difficult to understand scope. And coding in any modern general PL is all about scope.

You may think of this kind of visual environment as a particular Domain Specific Language. The users are coding in it, but the programming language is not general purpose, which makes it not "coding" as developers understand it.

> I can imagine the tool exporting some kind of interface with a list of things it needs (project-wide, across different components), that the developers would then implement

BTW, the mockup tools I'm talking about already offer that kind of interfaces to define the list of coding requirements generated by the user interface prototype. They cough up that list of requirements as a Word document or web page, though. Wouldn't it be best to generate those as placeholders in code?

1
474849
71