Live data from Hacker News

“Hello, (real) world” in PHP in 2017

kukuruku.co

141–144 of 144 posts

Re: “Hello, (real) world” in PHP in 2017

#141
post #132

Earlier quoted context omitted.

Why should make solve the dependency expectations of what it is building? If I use pip as part of my buildchain, then it has a series of places it can lookup, or you can supply one. Same with npm, cargo, and even Go. If instead, I use a tool that has dynamic lookup, then it will only look in those places after the event. So, if I used make to send a command like: $(echo 'require "foo"' > bar.lua) Then it can lookup t…

A makefile consists of rules. Each rule contains a dependency line which defines a target and an enumeration of prerequisites. This means that the dependencies have to be known before the target is built. By design, it is impossible for a single-pass make(1) invocation to derive dependencies for a C program, as dependencies are output by the compiler. By contrast, redo builds the target first and then records what wa…

I mentioned m4 before as a way of using more passes, and is how the Linux kernel approaches this, but looking deeper at make, I'm not even sure you need it.

From the manual, on implicit rules:

foo : foo.o bar.o cc -o foo foo.o bar.o $(CFLAGS) $(LDFLAGS)

Because you mention `foo.o' but do not give a rule for it, make will automatically look for an implicit rule that tells how to update it. This happens whether or not the file `foo.o' currently exists.

Re: “Hello, (real) world” in PHP in 2017

#142
post #141

Earlier quoted context omitted.

A makefile consists of rules. Each rule contains a dependency line which defines a target and an enumeration of prerequisites. This means that the dependencies have to be known before the target is built. By design, it is impossible for a single-pass make(1) invocation to derive dependencies for a C program, as dependencies are output by the compiler. By contrast, redo builds the target first and then records what wa…

I mentioned m4 before as a way of using more passes, and is how the Linux kernel approaches this, but looking deeper at make, I'm not even sure you need it. From the manual, on implicit rules: foo : foo.o bar.o cc -o foo foo.o bar.o $(CFLAGS) $(LDFLAGS) Because you mention `foo.o' but do not give a rule for it, make will automatically look for an implicit rule that tells how to update it. This happens whether or not…

I do not understand. I know that make(1) has many implicit rules – but which of the problems I mentioned does this solve and how? Please be specific about your solution.

Re: “Hello, (real) world” in PHP in 2017

#143
post #100

Earlier quoted context omitted.

I think this is a realistic reflection on the state of this area in our industry. It is both sarcastic/a joke and not a joke at all.

I think this is a realistic reflection of one side of the industry. There are still some that I know who don't use 70% of what's mentioned but still run a profitable business in website development. Sometimes I think they're the more productive ones that don't comment on HN posts :)

Nicely done. Now back to work! LOL :)

Re: “Hello, (real) world” in PHP in 2017

#144

Earlier quoted context omitted.

"When you follow a link, Turbolinks automatically fetches the page, swaps in its , and merges its , all without incurring the cost of a full page load." Is the cost really that high to warrant this?

It prevents the browser from requesting all the external files (CSS and/or JS), so yes, it may be that high.

I would have assumed they would be cached?
Post reply on HN