Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
83 views

I'm working for weeks to get the duration of a video file. I want to use direct api calls. I know, that I can use external command line tools to get it. But I want to avoid the dependencies with these ...
Peter71's user avatar
  • 2,324
0 votes
0 answers
36 views

(thanks in advance for any info 🙏) I'm trying to find an objectId that satisfies 3 conditions across 3 different tables. These tables are in different Kusto clusters (if that matters). There are many ...
joseville's user avatar
  • 1,013
0 votes
2 answers
249 views

Recently to better understand the advantages and disadvantages of lazy evaluation, I check for some details of Haskell. I did that to do exercise 5.9 in SDF (Software Design for Flexibility) More ...
An5Drama's user avatar
  • 774
3 votes
1 answer
86 views

How do let and case differ in terms of lazyness? Where do I find the information myself? And how do I experiment with it in ghci? Some context This incomplete piece of code is an excerpt from Parallel ...
Enlico's user avatar
  • 30.2k
4 votes
1 answer
102 views

Is it possible in some way to force the evaluation order in a {tidypolars} pipe? For example: install.packages("tidypolars", repos = c("https://community.r-multiverse.org", '...
crestor's user avatar
  • 1,558
2 votes
0 answers
53 views

Consider I have a large (potentially infinite) array of JSON objects: [ { "id": 41, "name": "foo" }, { "id": 42, &...
Андрей Щеглов's user avatar
5 votes
1 answer
135 views

auto ResultView { std::views::iota(1,30) | std::views::take(20) | std::views::filter([](int x){ return x%2!=0; }) }; std::cout<<...
rmoss3475's user avatar
  • 101
1 vote
2 answers
1k views

I created a library that uses lazy_static to create a static HashMap that other parts of the code can reference to look up values like this: use lazy_static::lazy_static; use std::collections::HashMap;...
RBF06's user avatar
  • 2,491
1 vote
1 answer
91 views

I'm working with Datomic and need to process a large result set from a query. I want to make the processing lazy to handle the large output efficiently. Here's my current approach: (let [normalized-...
Huseyin Yavas's user avatar
0 votes
1 answer
621 views

We are in process of upgrading Databricks platform. Couple of weeks ago we setup Unity Catalog. Now we are trying to go from Databricks Runtime 13.3 LTS to 15.4 LTS. Two notebooks that we running (out ...
DejanS's user avatar
  • 116
2 votes
2 answers
81 views

Problem: Kotlin by lazy throws unexpected NullPointerException when reached. Through debugger, when reached, this is properly evaluated and findViewById<ShapeableImageView>(R.id.image_view_icon) ...
Dorian Pavetić's user avatar
1 vote
2 answers
599 views

I read everywhere that List is supposed to be Lazy on iOS but following snippet seems to contradict it import SwiftUI struct Item { var id: Int } let items = (1...30000) .map { v in ...
gswierczynski's user avatar
2 votes
1 answer
103 views

The issue There is a case such as this, acc = \ (a) \ (b) base::list(a = a, b = b) for (x in c("A","B")) {acc = acc(x)} acc It returns: $a [1] "B" $b [1] "B" ...
ypa y yhm's user avatar
  • 219
0 votes
1 answer
129 views

I've been solving LeetCode's 1331. Rank Transform of an Array challenge and came up with this one-line solution: class Solution: def arrayRankTransform(self): return map({e: i for i, e in ...
diduk001's user avatar
  • 218
2 votes
1 answer
94 views

The Spark Scala code snippet below reproduces the behavior I'm trying to understand. At a high level, we construct two tuples each containing a DF and a Bloom filter of the id column of the respective ...
shintyl's user avatar
  • 23
2 votes
2 answers
192 views

Dependency DAG Description Pretty straight forward, basically, I am reading some parquet files from disk using polars which are the source of data. Doing some moderately heavy duty processing (a few ...
Della's user avatar
  • 1,730
3 votes
1 answer
2k views

I had my lazy.lua file in .config/nvim/lua/{name}/ directory and then to structure my config I moved it to .config/nvim/lua. After that I got some errors basically about nil values in some lazy files. ...
J S's user avatar
  • 31
0 votes
1 answer
92 views

4.1.4 of the Rails Guide explains "Lazy" Lookup for the Internationalization gem. As an example: en.yml en: clients: show: good_client: 5 Star Client app/views clients/show....
Dan SimBed's user avatar
0 votes
1 answer
96 views

let's assume I have an expensive PySpark query that results in a large dataframe sdf_input. I now want to add a column to this dataframe that requires the count of the total number of rows in ...
Freerk Venhuizen's user avatar
3 votes
2 answers
124 views

Considering the Haskell code: do -- it's IO !!! ... !x <- someFunction ... usage of x how useful is ! here? It's a result of monadic (it's IO !) evaluation, so my questions are: if x is a ...
RandomB's user avatar
  • 3,739
0 votes
1 answer
81 views

The Stream API supports lazy operations, so I understand that it calculates vertically. However, the results are different depending on the location of the limit method. Why does the operation ...
shining's user avatar
3 votes
1 answer
141 views

So I was reading the book Programming in Haskell by Graham Hutton. In chapter 11, the game tic-tac-toe is implemented. My question is about the AI part of the game, where minimax is used. I was a ...
GoodQues's user avatar
0 votes
1 answer
352 views

If i have a service that stores a token as a lazy object, and the token is fetched inside a value factory, is that value persisted across multiple requests, or since the underlying service is scoped, ...
GeorgeR's user avatar
  • 211
0 votes
1 answer
24 views

There is implicitly typped array to be send to jsTree: var first = new[] { new { id = "Root " + i.ToString(), text = "Root Node " + i.ToString(), state = new { ...
user24407581's user avatar
0 votes
1 answer
83 views

Let's say I have a function templated according to Eigen's documentation, in order to use it both from C++ and Python using pybind11. The main goal of that function if to perform a cartesian -> ...
Thibault de Villèle's user avatar

1
2 3 4 5
53