Glossary entry

English term or phrase:

iterators are lazy be design.

Polish translation:

iteratory są umyślnie zaprojektowane z wartościowaniem/Iteratory wykorzystują wartościowanie leniwe leniwym

Added to glossary by Frank Szmulowicz, Ph. D.
Jan 25, 2023 21:33
1 yr ago
18 viewers *
English term

Iterators are lazy be design.

English to Polish Tech/Engineering IT (Information Technology)
Próbuję zrozumieć to zdanie, ale niestety nie jestem w stanie wychwycić sensu. Może ktoś pomoże? Dziękuję!

kontekst:

It is interesting to combine local functions with iterators.
Iterators are lazy be design.
But you may want to perform an argument check eagerly, which is where local functions can be helpful.
Change log

Feb 2, 2023 11:49: Frank Szmulowicz, Ph. D. Created KOG entry

Discussion

geopiet Jan 25, 2023:
inicjalizacja z opóźnieniem https://fiona.dmcs.pl/zswww/zai/spring2_core.pdf
Justyna Polak (asker) Jan 25, 2023:
it makes more sense with "by" :)
Justyna Polak (asker) Jan 25, 2023:
maybe the translation would be like this then: Iteratory w zamyśle są leniwe.
geopiet Jan 25, 2023:
lazy vs eager design Eager Loading is a design pattern in which data initialization occurs on the spot. Lazy Loading is a design pattern that we use to defer initialization of an object as long as it's possible
geopiet Jan 25, 2023:
perhaps it's lazy by design ....

Proposed translations

+1
24 mins
English term (edited): iterators are lazy by design.
Selected

iteratory są umyślnie zaprojektowane z wartościowaniem leniwym

wartościowanie
gorliwe, 244
leniwe, 244
https://helion.pl/pobierz-fragment/javpi6/pdf

--------------------------------------------------
Note added at 27 mins (2023-01-25 22:00:52 GMT)
--------------------------------------------------

CCCC
Generators are lazy. As we loop over generators, they don’t compute the next item in the loop until we ask them to.
https://pycon2019.trey.io/iterator-protocol.html

CCCCCCCCC


In programming language theory, lazy evaluation, or call-by-need,[1] is an evaluation strategy which delays the evaluation of an expression until its value is needed (non-strict evaluation) and which also avoids repeated evaluations (sharing).

https://en.wikipedia.org/wiki/Lazy_evaluation

CCCCC

Wartościowanie leniwe (ang. lazy evaluation, ewaluacja leniwa) – strategia wyznaczania wartości argumentów funkcji tylko wtedy, kiedy są potrzebne (na żądanie).

Zaletami tego podejścia są możliwość obliczenia wartości funkcji nawet wtedy, gdy nie jest możliwe wyznaczenie wartości któregoś z jej argumentów, o ile tylko nie jest on używany, wzrost wydajności dzięki uniknięciu wykonywania niepotrzebnych obliczeń oraz możliwość tworzenia nieskończonych struktur danych. Wadą wartościowania leniwego jest to, że mogą nie wystąpić (być może oczekiwane) skutki uboczne procesu wyznaczania wartości argumentów.

https://pl.wikipedia.org/wiki/Wartościowanie_leniwe
Peer comment(s):

agree Piotr Kresak : Zgoda co do zasady, ale uprościłbym zdanie do "Iteratory wykorzystują wartościowanie leniwe".
9 hrs
Dziękuję Piotrze za Twoje fachowe i zgrabne określenie.
Something went wrong...
4 KudoZ points awarded for this answer.
Term search
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search