« first day (4170 days earlier)      last day (69 days later) » 

00:02
0
Q: Idiomatic/Best Practices for Scala for Working HTTP Service in Typeless Scala - cats, cats effect, http4s, etc

PacificNW_LoverUsing Scala 2.13.14 have a fully functional (all tests pass) HTTP Web Service which displays weather info based on latitude and longitude coordinates using Typelevel Scala stack: WeatherServer: package weather import cats.effect._ import org.http4s._ import org.http4s.dsl.io._ import org.http4s....

00:20
REFRESH! There are 5764 unanswered questions (92.5858 answered)
 
3 hours later…
03:04
0
Q: Dynamic Arrays with Count / Capacity in C

Justin ChangI write in C for several projects (e.g. learning / teaching, coding competitions, data processing) and frequently need arrays (e.g. strings) with fast appending / concatenation / reversing. I've isolated the code below from a project. For simplicity, I assume all arguments are valid, including no...

 
4 hours later…
06:44
possible answer invalidation by Toby Speight on question by Toby Speight: codereview.stackexchange.com/posts/293928/revisions
possible answer invalidation by Toby Speight on question by Toby Speight: codereview.stackexchange.com/posts/293928/revisions
possible answer invalidation by Toby Speight on question by Toby Speight: codereview.stackexchange.com/posts/293928/revisions
@Duga Note reviewable code - just analysis of the input data
06:59
possible answer invalidation by Toby Speight on question by Toby Speight: codereview.stackexchange.com/posts/293928/revisions
possible answer invalidation by Toby Speight on question by Toby Speight: codereview.stackexchange.com/posts/293928/revisions
07:49
Er, I meant Not reviewable, obviously!
08:39
An alternative choice, fully compatible with Win and Mac and generally faster than any other solution can be found at VBA-FastDictionary. I will not add an answer here as I already have posted relevant information on the sister site Code ReviewCristian Buse 40 secs ago
 
5 hours later…
13:45
@TobySpeight I don't know if you noticed, but the GenericDictionary is no longer an abstract class. It is at the bottom of the new question for reference. Your observation about inheritance made me rethink some things. The constructor tries to find missing definitions, that's why the performance test became necessary.
The performance test generator does insert the number of tests generated and the size of the tests. Adding the name of the test generator is a good idea.
 
2 hours later…
15:22
@TobySpeight You might want to rethink your answer, testOut.close() does not return a value.
There is no need to flush test.close() because supposedly ofstream.close() performs a flush.
16:18
Monking
 
1 hour later…
17:43
Monking
 
3 hours later…
20:38
0
Q: Simulating mv --backup=numbered with BSD mv

minseong#!/bin/zsh function mvbk { alias no_overwrite_mv="/usr/bin/yes n | /bin/mv -i --" destination="${@[-1]}" for file in "${@[1,-2]}" do error="$(no_overwrite_mv "$file" "$destination" 2>&1 >/dev/null)" if [[ "$error" == "overwrite "*"? (y/n [n]) not overwritten" ]] ...

 
2 hours later…
22:36
codereview.stackexchange.com is that way. — Botje 27 secs ago
^ Use Code Review if you have code that works but you want to make work better. If the code doesn't work, then you come here. — user4581301 12 secs ago
23:08
0
Q: Optimize a C++ Multithreaded Program for Processing Large POSTFIX .tar Files

Lewis TremThe program processes files within a large POSTFIX .tar archive using a multithreaded approach, where a worker pool processes files in parallel. It maps the .tar file into memory, distributes the file processing tasks to multiple worker threads using a thread-safe queue, and updates the total cou...


« first day (4170 days earlier)      last day (69 days later) »