Hacker Newsnew | past | comments | ask | show | jobs | submit | sirtel's commentslogin

I'm just curious, did you construct these tables manually? I mean did you type those html tags manually?


I made a template table which I then added table-rows to by copy-paste and then filling them out.

It was a bit tedious work I must admit.


It's common. Is it because of the protocols the website/connection is using? If it is like stream, the total size won't be known until the end.


Usually a missing Content-Length in the response header.


It's very kind of you to not have adblock installed


Its card style doesn't follow Material design.


Is the Japanese learning tool online? Are you going to share it with others? I'm just curious.


It's still in development. I didn't think anyone would be interested, since I see one pop up on /r/learnjapanese each month.

Perhaps, I'll clean it up and submit my first ShowHN


A developer answered in another post

> The point of parallelization is to harness the full power of the CPU. If you don’t want that try reducing the content process limit near the bottom of general options.

[https://hacks.mozilla.org/2017/11/entering-the-quantum-era-h...]


It's not murdering battery because it's "harnessing the full power of the CPU", it's chomping through almost 1% battery a minute on Mac while doing virtually nothing.

Apparently "vibrance" is one of the culprits and switching to the light or dark themes can help a lot. But yes, it's destroying battery compared to Safari for me. Which is a shame, as it's already my default on Windows.


Sounds like you should definitely file a bug.


there is one: https://bugzilla.mozilla.org/show_bug.cgi?id=1404042 — it was moved to being tracked for v58.


Interestingly, many territories have meaningful names, rather than a mixture of numbers and letters


Just try to fill in all areas and you may understand.

I think developer forum should be designed like this.


It seams there are more than one solutions. Can we generalize a theory of this phenomenon?


It's probably a good chunk of a PhD thesis to come up with both the theory and an arbitrary generator for any language. However, you could probably brute force your way to the shortest solution in this particular language fairly easily.


If you sum up the M for the active lines in a solution they equal the total number of lines. So in this one, 2 + 2 + 2 + 3 + 2 + 3 = 14.

Take 1 active line and 1 inactive line as some minimum, this contradicts, because this can only produce 1 line. 1 active line and two inactive lines, contradicts, because it can either produce 2 lines ( and it took 3 ) or it can produce m lines if the final line is a repeat, and yet this repeat is not printed.

The function of PRINT X thus becomes like a variable definition. Something needs to be "PRINTED" in order to be available for a back reference. So everything in the quine needs to itself be printed, so that it can be "printed in the quine" by back reference. This suggests that the set of different statements, being, different values of (M) and (M,N) will be conserved.

So let's assume ( and we have evidence of this ) the minimum size of statement set for a solution is 2.

What two statements can produce solutions ?

At this point, considering the above observations, one can enter the area of solving constraints on the numbers M and N through logic.

The weird thing is I wonder how you classify these languages ( of these statements such as the one given, being, a PRINT statement and a repeat statement ). It's not Turing complete. It's not a state machine. It's not a production grammar. It's not a read and say sequence. Interesting to consider what it is and what other types there are.

It also seems like there are more solutions of the same pattern.

Such as

print 2 print 2 print 2 print 2 print 2 print 2 print 2 print 2 print 2 print 2 print 2 print 2 repeat 4 2 print 2 repeat 4 2 print 2 repeat 4 2 print 2 repeat 4 2

And

One with 15 print 2 statements followed by 5 "repeat 5 2" statements delimited by "print 2" statements.

And so on. The pattern is (3 * x) * "PRINT 2" + (x - 1) * "REPEAT X 2\nPRINT 2" + "REPEAT X 2"

For the other type "repeat 3 2 print 2 repeat 3 2 print 2 repeat 3 2" ( of which the version with m = 4 contains a terminating "print 2", and m = 5 doesn't work since in that case the M's sum to 2 + 2 + 5 = 9 lines of output, and there are only 8 statements in the source. Changing the active repeat statement from "repeat 5 2" to "repeat 4 2" with 2 + 2 + 4 gives 8 statements in the output and the source, and we can then do this:

repeat 4 2

print 2

repeat 4 2

print 2

repeat 4 2

print 2

print 123123123211231

repeat 12312312 123123123

And it always works to echo whatever the last two lines are, so in that sense, the above "code" is like a "PRINT" function.

A "concat" function can be obtained like so :

repeat 5 2

print 2

repeat 5 2

print 2

repeat 5 2

print 2

repeat XXX YYY

==> and the output is the source + "repeat 5 2" + "repeat XXX YYY"

So this function concatenates "repeat 5 2" and "repeat XXX"

Likely other "primitives" can be constructed. It's interesting to consider what the "product space" of these would be. What functionality could be derived from this simple language ?


I have the same problem here in Oxford. Twitter is down locally as well. Most websites except for google.com, youtube.com, facebook.com are down.

Maybe submarine cable is broken or something wrong with the servers.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: