Feda /dev/ - No Javascript allowed

Normas
spoiler
Personas non gratas
Memes feda dev




desu

samsung to jump into laptop processor market with exynos chip in h2
https://www.kedglobal.com/newsview/ked202105090002

ahi lo teneis sacos de mierda hijos de puta.

que sea la ultima vez que me poneis en duda.

@kazuludev @wei-yu si yo digo algo es que va a suceder no es tan dificil de entender ostia puta ya.

ni 1 semana a tardado el tiempo en darme la razon. mama huevos.

hahahahahahahaahahahahahahahahhahah
hahahahahahahaahahahahahahahahhahah
hahahahahahahaahahahahahahahahhahah
hahahahahahahaahahahahahahahahhahah
hahahahahahahaahahahahahahahahhahah
hahahahahahahaahahahahahahahahhahah
hahahahahahahaahahahahahahahahhahah

1 respuesta
JuAn4k4

#22876 Que cabrón jajaja, tengo un amigo que a sus 23 decía que 30 era old ( @isvidal le conoce) , y ahora tiene 32 y siempre se lo recuerdo. Yo voy a hacer 35 este año.

De hecho teníamos una pregunta anti bots en una sección para nosotros que teníamos la pregunta: How old is old? Y la respuesta era 30.

1 respuesta
Zoko

No hay stream hoy?

1 respuesta
neil90

#22891 404

desu

#22893 Hoy estoy de vacaciones.

No voy a abrir un stream fuera de horario laboral, no me jodas.

Hoy estoy programando por placer, un poquito de rustlings a ver si los termino.

Luego a ver un poquito de kdramas, leer hemingway, entreno y cortarme el pelo.

Zoko

Razon de más, sabemos que ayer fallaste por temas del curro. Hoy podrías deleitarnos con un buen despliegue de conocimientos.

1 respuesta
wdaoajw

30 por aquí, según #22892 ya soy old nivel dinosaurio

desu

#22896 Uff estas muy perdido. Ayer? Éxito. Despliegue de conocimientos? Para nada el objetivo.

Tiene una mirada ebria de palabras y poesías,
bajo el cielo claro de un pueblito por ahí.
Un mundo imaginario hecho de ilusiones coloridas,
y el amor monta en un caballo y es feliz.

JackWhy

#22838 Pues si quieres tener tiempo para hacer algo con tu vida no juegas al wow...
como si las raids posteriores no quitasen tiempo...

1 respuesta
afhn

#22899 Si no tienes tiempo para todo es que gestionas mal tu tiempo; tengo tiempo para trabajar, trollear y shitpostear en mediavida, ir al gym, jugar al wow y además, tener tiempo para hacer salidas de vez en cuando.

1 respuesta
Wei-Yu

tengo tiempo para trabajar, trollear y shitpostear en mediavida, ir al gym, jugar al wow y además, tener tiempo para hacer salidas de vez en cuando.

traducido:

estoy en mv en el trabajo, las tardes me las paso en el wow, voy al gym una vez al mes y a veces salgo de casa

6 1 respuesta
JackWhy

#22900 Me parece perfecto, pero te va a quitar el mismo tiempo o más hacer raids que levear, asi que la excusa de hacer algo con mi vida no cuela.

1 respuesta
afhn

#22901 Eres tontísimo colega.

#22902 No me va a quitar más de lo que me quita ahora. Actualmente sólo voy a raidear 1 día a la semana en la TBC, al menos en la guild en la que estoy tiene el potencial para eso y tiene como objetivo eso. Para los meses de progress serán 2. No es nada. No pienso dedicarle más de 2 días de raid tbh, entonces si que no tendré tiempo para jugar al wow. Entre semana sólo tengo 2 horas de juego y me gustaría dedicarlo a hacer arenas y no a hacer progress como si estuviera en el retail.

desu

Rust es increible. La puta polla. Si compila funciona. El type inference y los genericos parametricos sobre colecciones es increible. Cosas que en otros lenguajes no funcionan aqui lo hacen.

Fijaros como he escrito la misma solucion para dos funciones distintas y rust se encarga de todo.
Mapeando sobre cualquier tipo que implemente el trait iterable... genial.

El collect me convierte a una collecion(vec) o me convierte a in String haciendo joins...

Zoko

Senior Hello World Developer

16 1 respuesta
desu

#22905

#22895desu:

un poquito de rustlings a ver si los termino.

Tu como llevas rust? O la programacion de ese estilo?

Ranthas

Lo mismo te pica un docker en 100 líneas que te hace un capitalize, versatilidad en estado puro

1 respuesta
desu

#22907 https://github.com/rust-lang/rustlings/blob/main/exercises/standard_library_types/iterators2.rs

hdps no me baiteeis.

me gustaria veros a vosotros en stream en directo, resolviendo los ejercicios a ver como llorais sangre.

1 respuesta
X-Crim

si fueras de fp lo que haces tendría mérito desu, pero siendo de carrera deberías venir con ello sabido

1 respuesta
Ranthas

#22908 Me pillas ya muy mayor para hacer streaming de ejercicios de clase

1 respuesta
Wei-Yu

#22910 cómo de mayor te pillamos para hacer streaming en tanga?

1 1 respuesta
desu

#22909 Pues la verdad. he hecho un ejemplo de concurrencia y me ha costado entenderlo.

deberia leer la teoria antes de hacer los ejercicios XD

pero siempre hago los ejercicios y voy buscando lo que me falta.

https://github.com/rust-lang/rustlings/blob/main/exercises/standard_library_types/arc1.rs

este me ha costado, no me quedaba claro porque era necesario clonar una referencia a algo que no voy a modificar. pero claro ahi esta la gracia de rust, que me fuerza explicitamente a hacerlo. si hiciese c o cpp no lo habria hecho.

https://doc.rust-lang.org/std/sync/struct.Arc.html

el problema no seria la mutabilidad si no el tema de droppear una referencia o hacer un doble free entiendo... al contar las referencias te evitas esto.

1 respuesta
Ranthas

#22911 Me falta solo comprar la piscina hinchable, sed pacientes.

1 respuesta
Wei-Yu

#22912 muy bien vida, vamos a poner el dibujito en la nevera al lado del imán de cuando fuimos a venecia.

afhn

#22913 Y el platano.

1
Zoko

Fundamentos de Programación vibes.

2 respuestas
desu

#22916 The whole process of learning the facility to play jazz, is to take these problems from the outer level in, one by one, and to stay with it at a very intense conscience concentration level, until that process becomes secondary and subconscious. Now, when that becomes subconscious, then you can begin concentrating on that next problem, which will allow you to do a little bit more…

BILL EVANS

Tengo un blog post al respecto.

Ranthas

#22916 Después de ese tema venía el de acceso a ficheros, ya sabes cuál es el próximo ejercicio que toca

Kaledros

Mierda, me he vuelto a equivocar de temporada de feda/dev y me he puesto la del desu reinventarruedas sin querer.

1 respuesta
desu

Joder con el nivel del FP. Que en Fundamentos de la programacion se da esto:

A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.

The type Arc<T> provides shared ownership of a value of type T, allocated in the heap. Invoking clone on Arc produces a new Arc instance, which points to the same allocation on the heap as the source Arc, while increasing a reference count. When the last Arc pointer to a given allocation is destroyed, the value stored in that allocation (often referred to as “inner value”) is also dropped.

Shared references in Rust disallow mutation by default, and Arc is no exception: you cannot generally obtain a mutable reference to something inside an Arc. If you need to mutate through an Arc, use Mutex, RwLock, or one of the Atomic types.
Thread Safety

Unlike Rc<T>, Arc<T> uses atomic operations for its reference counting. This means that it is thread-safe. The disadvantage is that atomic operations are more expensive than ordinary memory accesses. If you are not sharing reference-counted allocations between threads, consider using Rc<T> for lower overhead. Rc<T> is a safe default, because the compiler will catch any attempt to send an Rc<T> between threads. However, a library might choose Arc<T> in order to give library consumers more flexibility.

Arc<T> will implement Send and Sync as long as the T implements Send and Sync. Why can’t you put a non-thread-safe type T in an Arc<T> to make it thread-safe? This may be a bit counter-intuitive at first: after all, isn’t the point of Arc<T> thread safety? The key is this: Arc<T> makes it thread safe to have multiple ownership of the same data, but it doesn’t add thread safety to its data. Consider Arc<RefCell<T>>. RefCell<T> isn’t Sync, and if Arc<T> was always Send, Arc<RefCell<T>> would be as well. But then we’d have a problem: RefCell<T> is not thread safe; it keeps track of the borrowing count using non-atomic operations.

In the end, this means that you may need to pair Arc<T> with some sort of std::sync type, usually Mutex<T>.
Breaking cycles with Weak

The downgrade method can be used to create a non-owning Weak pointer. A Weak pointer can be upgraded to an Arc, but this will return None if the value stored in the allocation has already been dropped. In other words, Weak pointers do not keep the value inside the allocation alive; however, they do keep the allocation (the backing store for the value) alive.

A cycle between Arc pointers will never be deallocated. For this reason, Weak is used to break cycles. For example, a tree could have strong Arc pointers from parent nodes to children, and Weak pointers from children back to their parents.

#22919 No, hoy estamos en programacion de "bajo nivel" o manual memory management. y por lo visto en /dev la gente sue;a en compilador y programa en C sin stackoverflows ni corromper memoria. al toque.

Usuarios habituales