Citace od: nemo1 kdy 17. 11. 2015, 15:28:14Čím parsovat HTML v C++?
Citace od: javaman kdy 17. 11. 2015, 17:27:13Přesně, lepší máš Javu.
XMLIterator xiter(...)while (xiter.hasItems()) { const XMLEntity &ent = xiter.getNext(); //do something with ent}
Citace od: čumil kdy 17. 11. 2015, 17:38:57Citace od: javaman kdy 17. 11. 2015, 17:27:13Přesně, lepší máš Javu.V čem je lepší ? Proč ne třeba Haskell?
Citace od: Kit kdy 17. 11. 2015, 17:38:36Citace od: javaman kdy 17. 11. 2015, 17:27:13Přesně, lepší máš Javu.Nevíme nic o účelu - HTML parser se nachází téměř v každém jazyce. Když Java, tak klidně i Python nebo PHP.
Citace od: javaman kdy 17. 11. 2015, 17:48:05PHP je paskvil, který vařil pejsek s kočičkou. Python je spíše tak na hraní, ale třeba by to ne moc dobře šlo také.
Citacedecoding a mere megabyte of continuous backslashes took over a second, consumed over a gigabyte of memory, and killed concurrency by causing the runtime system to spend almost 90% of its time in the garbage collector.Whatever was going on? If you look at the old implementation of aeson's unescape function, it seems quite efficient and innocuous. It's reasonably tightly optimized low-level Haskell.Trouble is, unescape uses an API (a bytestring builder) that is intended for streaming a result incrementally. Unfortunately the unescape function can't hand any data back to its caller until it has processed an entire string.The result is as you'd expect: we build a huge chain of thunks. In this case, the thunks will eventually write data efficiently into buffers. Alas, the thunks have nobody demanding the evaluation of their contents. This chain consumes a lot (a lot!) of memory and incurs a huge amount of GC overhead (long chains of thunks are expensive).
Citace od: javaman kdy 17. 11. 2015, 19:07:31A za měsíc marně pátrají, co ten program asi tak dělá, protože tvrďáci komentáře nedělají
Citace od: javaman kdy 17. 11. 2015, 17:48:05Citace od: čumil kdy 17. 11. 2015, 17:38:57Citace od: javaman kdy 17. 11. 2015, 17:27:13Přesně, lepší máš Javu.V čem je lepší ? Proč ne třeba Haskell?Java je prostě nejlepší! Proč myslíš, že je to nejpopulárnější jazyk...Citace od: Kit kdy 17. 11. 2015, 17:38:36Citace od: javaman kdy 17. 11. 2015, 17:27:13Přesně, lepší máš Javu.Nevíme nic o účelu - HTML parser se nachází téměř v každém jazyce. Když Java, tak klidně i Python nebo PHP.PHP je paskvil, který vařil pejsek s kočičkou. Python je spíše tak na hraní, ale třeba by to ne moc dobře šlo také.
Citace od: javaman kdy 17. 11. 2015, 17:48:05Java je prostě nejlepší! Proč myslíš, že je to nejpopulárnější jazyk...