Posts by juliangonggrijp@ieji.de
(DIR) Post #ATZlbJOcOAji063NSK by juliangonggrijp@ieji.de
2023-03-13T14:41:36Z
0 likes, 0 repeats
@noim @ph1 They are a bit niche.- Generating just one value: async/await is easier, as mentioned.- Generating a series: more likely to use events or streams or to just store everything in an array eagerly.Generators do allow lazy patterns, where e.g. you transform and filter a series partially with takeWhile. Lodash attempted to do such a thing before generators existed with "shortcut fusion", which was bloaty and nonscalable. #UnderscoreJS 2.0 will support generators as a collection type.
(DIR) Post #AVQ2hASFhRMrkbuIm8 by juliangonggrijp@ieji.de
2023-05-07T17:50:26Z
0 likes, 0 repeats
@nicole To be honest, I find .slice() also the most straightforward.
(DIR) Post #B13SGPw2xoLMYFFXY8 by juliangonggrijp@ieji.de
2025-12-09T00:05:51Z
0 likes, 0 repeats
@futurebird @Moss It cannot really describe what it's doing, either, because it doesn't know that about itself. All it can really do is make up a story about what it's doing. It's not even a guess; that already attributes too much intention to what is actually happening. The machine is just putting word after word, based on what it was rewarded for during training. It's a bluff story.In that sense, the counting is not really different. It can do neither. All it can do is put word after word in a way to looks plausible.