News for hackers. Stuff that matters.
Re:Paint16b: A 16 byte paint program written in 12 lines by benj111 on Monday November 19, 2018 @05:21AM (#18485358)
In the parents defense 'assembly' isn't one thing. Every assembler has a different syntax, as does every chip family. The parent might be a master of 6502 ASM. And as that XKCD comic says. Everyone has to learn even the most obvious thing for the first time at some point.
Re:Paint16b: A 16 byte paint program written in 12 lines by Kurtz79 on Monday November 19, 2018 @06:12AM (#18485584)
I admit my experience is limited, but there are few things that should immediately identify some code as assembly to someone with previous experience, regardless of the platform, such as the prevalence of the "mov" command, a "jump" command or the use of registers, using memory addresses as parameters, accssing stack using "push" and "pop" commands.

Registers might have different names depending on the platform, actual command names may vary, but I would be surprised to see non-obscure platforms for which the pattern above is not valid.

Re:Paint16b: A 16 byte paint program written in 12 lines by benj111 on Monday November 19, 2018 @07:08AM (#18485824)
I suppose my gp wasn't very clear. Language in this context could be just ASM or it could be intel x86 DOS ASM. As I said, the gp could be a master of 6502 ASM, but not be able to tell the difference between ARM and X86.
Re:Paint16b: A 16 byte paint program written in 12 lines by vlovich123 on Monday November 19, 2018 @11:01AM (#18487302)
The question is whether it's recognizable as assembly at all rather than which specific flavor. I think it's correct that all assembly flavors tend to look very similar to each & very dissimilar from any language.
Re:Paint16b: A 16 byte paint program written in 12 lines by m0skit0 on Monday November 19, 2018 @05:48AM (#18485465)
Hm... If you know one assembly you can easily recognize when it is assembly, even if you don't know the specific architecture.
Re:Paint16b: A 16 byte paint program written in 12 lines by odn86 on Tuesday November 20, 2018 @12:10PM (#18495446)
I'm the worst type of bootcamp web developer you can imagine.

I only knew it was Assembly because i once looked at the apollo guidance computer's source code.

Re:Paint16b: A 16 byte paint program written in 12 lines by vanderZwan on Monday November 19, 2018 @07:53AM (#18486030)
Not if it is your first time seeing assembly.
Re:Paint16b: A 16 byte paint program written in 12 lines by dpcx on Monday November 19, 2018 @08:10AM (#18486127)
Doesn't that then imply that you don't know assembly?
Re:Paint16b: A 16 byte paint program written in 12 lines by vanderZwan on Monday November 19, 2018 @08:53AM (#18486371)
Blargh, I somehow read that as "if you don't know assembly" instead of "if you know one assembly".
Re:Paint16b: A 16 byte paint program written in 12 lines by userbinator on Monday November 19, 2018 @07:58AM (#18486064)
The syntax is different but the structure (or... lack thereof) is almost always the same (excluding the "edge cases" like highly-macroised code.) Asm looks like a step-by-step list of instructions, which is exactly what it is.

Confusing Asm with early (GOTO-only) BASIC, on the other hand, would seem far more common to me.

Re:Paint16b: A 16 byte paint program written in 12 lines by hondadriver on Monday November 19, 2018 @06:04AM (#18485544)
Re:Paint16b: A 16 byte paint program written in 12 lines by klohto on Monday November 19, 2018 @06:40AM (#18485697)
This applies to general public but someone with Freelance Web developer based in Amsterdam. Mostly Node and React. in their bio should probably know what Assembly is...
Re:Paint16b: A 16 byte paint program written in 12 lines by nkozyra on Monday November 19, 2018 @06:59AM (#18485785)
Should they? Why?

Look, I wrote assembly when I was a teen, went to school for CS twice and can't do squat with it today. I know it is ASM but beyond that it's not that interesting or exciting to me.

This person's job is strictly to build frontend web apps. Knowledge of assembly is largely ornamental to that pursuit. I'm not even sure someone getting as BSCS and MSCS would spend enough time with it to care.

It's important, critically so for some people, but I wouldn't ding a job applicant for a node job for not recognizing it.

Re:Paint16b: A 16 byte paint program written in 12 lines by saagarjha on Monday November 19, 2018 @08:01AM (#18486077)
I don’t think everyone who writes code needs to know how to write assembly, but I think it’s important to know that it exists and possibly what it looks like. Maybe not while you’re still learning to code, but once you’ve actually started working in the industry it’s a good thing to know, if only because it gives you a bit of context of how computers actually work.
Re:Paint16b: A 16 byte paint program written in 12 lines by AstralStorm on Monday November 19, 2018 @11:13AM (#18487397)
1) No, you only need to know about assembly language if you go for deep microoptimizations.

2) Assembly is vastly more high level than modern hardware, so much that most of those CISC instructors are broken into tens to thousands micro operations. It's not even close to any kind of machine architecture course. You will need that kind of deep knowledge to write optimal compilers which probably take (extended) C and not assembly language.

Re:Paint16b: A 16 byte paint program written in 12 lines by Sharlin on Monday November 19, 2018 @12:26PM (#18487965)
Assembly (well, machine code if you want to nitpick) is still the representation of a program right at the interface between software and hardware. It's the processor's native API, no matter how many layers of additional abstraction behind that API. So it's a pretty important level of abstraction if you want to have a reasonable high-level idea of how a computer works.
Re:Paint16b: A 16 byte paint program written in 12 lines by codetrotter on Monday November 19, 2018 @06:56AM (#18485770)
Why? Serious question. Nothing about that bio says “this person should know about the existence of assembly” to me.

And besides, with their question they’ve made an effort to learn about it so I don’t see any reason to criticize them for not knowing. It’s like the xkcd referenced says, every day there are a bunch of people hearing about something for the first time. We should be happy that they hear about it!

Re:Paint16b: A 16 byte paint program written in 12 lines by AnIdiotOnTheNet on Monday November 19, 2018 @07:32AM (#18485918)
Really? A programmer of any stripe who doesn't recognize assembly just seems like a very wrong thing. One wonders what their mental model of the computer is like.
Re:Paint16b: A 16 byte paint program written in 12 lines by Skrillex on Monday November 19, 2018 @11:17AM (#18487424)
I imagine that most people abstract at the levels above and below assembly languages. E.g. they know about high level languages, and that a CPU cannot directly run that, but their view of the lower level probably does not include any human readable artifacts such as latin characters but rather binary and voltages.
Re:Paint16b: A 16 byte paint program written in 12 lines by xiphias2 on Monday November 19, 2018 @09:16AM (#18486507)
We have web pages with multiple seconds of latency because devs don't have a deep understanding of the performance hits of composing programs. And for that you need to understand how the CPU works.
Re:Paint16b: A 16 byte paint program written in 12 lines by owenmarshall on Monday November 19, 2018 @10:20AM (#18486996)
I do not believe that knowing ASM would even remotely translate into the ability to optimize web pages for latency: understanding high-level concepts like TLS, HTTP/HTTP2, and being to understand JS engines seems far more applicable.

You also seem to be making the assertion that you cannot understand how a CPU works without knowing ASM, which seems equally spurious.

Re:Paint16b: A 16 byte paint program written in 12 lines by detaro on Monday November 19, 2018 @12:34PM (#18488038)
ASM is fairly useless knowledge for that problem, unless you go in the deep weeds of internals of your JS interpreter.