Денис
ну мы с системой-то вроде разобрались
Денис
надо разобраться с тем, как переводить soundness в отношении argument, то есть утверждения
Αλεχ
A sound argument is a valid argument whose conclusion follows from its premise(s), and the premise(s) of which is/are true.
Αλεχ
An argument is formally valid if and only if the denial of the conclusion is incompatible with accepting all the premises.
Денис
утверждение "is sound" тогда и только тогда, когда ...
Ignat
я о выражениях умею рассуждать в терминах выводимости/доказуемости
Ignat
и оценки моделью
Денис
аналогично; я в русской литературе ваще никогда не встречал специального названия для такого: > The argument is valid (because the conclusion is true based on the premises, that is, that the conclusion follows the premises) and since the premises are in fact true, the argument is sound
Αλεχ
In modern argumentation theories, arguments are regarded as defeasible passages from premises to a conclusion. Defeasibility means that when additional information (new evidence or contrary arguments) is provided, the premises may be no longer lead to the conclusion (non-monotonic reasoning). This type of reasoning is referred to as defeasible reasoning. For instance we consider the famous Tweedy example: Tweedy is a bird. Birds generally fly. Therefore, Tweedy (probably) flies. This argument is reasonable and the premises support the conclusion unless additional information indicating that the case is an exception comes in. If Tweedy is a penguin, the inference is no longer justified by the premise. Defeasible arguments are based on generalizations that hold only in the majority of cases, but are subject to exceptions and defaults. In order to represent and assess defeasible reasoning, it is necessary to combine the logical rules (governing the acceptance of a conclusion based on the acceptance of its premises) with rules of material inference, governing how a premise can support a given conclusion (whether it is reasonable or not to draw a specific conclusion from a specific description of a state of affairs). Argumentation schemes have been developed to describe and assess the acceptability or the fallaciousness of defeasible arguments. Argumentation schemes are stereotypical patterns of inference, combining semantic-ontological relations with types of reasoning and logical axioms and representing the abstract structure of the most common types of natural arguments.
Денис
In modern argumentation theories, arguments are regarded as defeasible passages from premises to a conclusion. Defeasibility means that when additional information (new evidence or contrary arguments) is provided, the premises may be no longer lead to the conclusion (non-monotonic reasoning). This type of reasoning is referred to as defeasible reasoning. For instance we consider the famous Tweedy example: Tweedy is a bird. Birds generally fly. Therefore, Tweedy (probably) flies. This argument is reasonable and the premises support the conclusion unless additional information indicating that the case is an exception comes in. If Tweedy is a penguin, the inference is no longer justified by the premise. Defeasible arguments are based on generalizations that hold only in the majority of cases, but are subject to exceptions and defaults. In order to represent and assess defeasible reasoning, it is necessary to combine the logical rules (governing the acceptance of a conclusion based on the acceptance of its premises) with rules of material inference, governing how a premise can support a given conclusion (whether it is reasonable or not to draw a specific conclusion from a specific description of a state of affairs). Argumentation schemes have been developed to describe and assess the acceptability or the fallaciousness of defeasible arguments. Argumentation schemes are stereotypical patterns of inference, combining semantic-ontological relations with types of reasoning and logical axioms and representing the abstract structure of the most common types of natural arguments.
прочитал сначала semantic-ornitological relations xD но это таки не про саунднесс
Αλεχ
это про аргументы
Денис
короче я знаю, как надо сделать. надо чё-нить перевести для хабра, где бы говорилось про soundness в отношении высказываний, и специально написать, мол, я перевожу soundness как непротиворечивость, после чего наблюдать за срачем о терминологии в каментах и делать выводы)
Αλεχ
если до конца месяца не переведешь - заклеймим
Денис
ваще реально так и надо поступить мне кажется, там по-любому набегут те, кто в теме (среди прочих, разумеется)
Αλεχ
ну я буду рад
Αλεχ
и статье, и комментариям
Vlad
@vlad20012 ну что, есть мысли?
Глянул. Ну что, мы не поддерживаем #[cfg()], а в pwasm_std через него объявлен Vec. А красным он почеркивается потому что из liballoc предлагает импортировать. По поводу #[cfg()] лежит уже полгода PR от какого-то чувака, где он начал хотяб парсить эти атрибуты, но он недоделал нифига.
Αλεχ
нужно просто юзать вектор из alloc напрямую, я тебя правильно понял?
Vlad
нужно просто юзать вектор из alloc напрямую, я тебя правильно понял?
Хмм, я такого не говорил. Я не знаю, что это за библиотека, и не знаю, эквивалентен ли Vec оттуда Vec'у из liballoc
Αλεχ
pub use alloc::vec::Vec;
Vlad
А вот что на самом деле можно сделать - так это пойти и законтрибьютить нам поддержку #[cfg()] ^^
Αλεχ
я не умею в котлин
Vlad
pub use alloc::vec::Vec;
Ну тогда да, можно сразу брать из liballoc просто
Αλεχ
там бы запилил
Alexander
а как тут от двух to_owned избавиться? что-то торможу: https://play.rust-lang.org/?gist=57d6cff4bfae9158b772d066258ca526&version=nightly&mode=debug&edition=2015
Антон
.cloned() конкретно в этом примере
Alexander
https://play.rust-lang.org/?gist=5769a854fa34dd5bb3af1df0d66f6470&version=nightly&mode=debug&edition=2015
Vladimir
clone же специализирован для Copy? По этому это поидее также беспатно
Loo
Блеать
Loo
Клонед!
Денис
Cloned
исправь)
Денис
Cloned
https://play.rust-lang.org/?gist=3b0da58554b68e782a3823553d9d424a&version=nightly&mode=debug&edition=2015
123
кто-нибудь работал с diesel + askama? Хочу заderiveить дизелевские трейты + трейт Template из askama. Все поля в структуре идут как Optional<&'a str>, в примерах в оф. репе askama все окейно обрабатывается, у меня жалуется что такой имплементации нету. Суть в том, что поидее должно из коробки работать. Мб кто-нибудь сталкивался?
Loo
https://play.rust-lang.org/?gist=3b0da58554b68e782a3823553d9d424a&version=nightly&mode=debug&edition=2015
а там типо задача последнее вхождение ключа сохранить?
Денис
а там типо задача последнее вхождение ключа сохранить?
ваще хз, открыл ссылку, исправил to_owned() на *, нажал share
Loo
ошибку
Loo
что у тебя там
Loo
не хочется гадать
123
std::option::Option<std::string::String> cannot be formatted with the default formatter; try using :? instead if you are using a format string | = help: the trait std::fmt::Display is not implemented for std::option::Option<std::string::String> = note: required because of the requirements on the impl of std::fmt::Display for &std::option::Option<std::string::String> = note: required by askama::MarkupDisplay
123
дерайв
123
вынес в отдельные структуры, задерайвил, но тип уже сделал &str, исходя из примера в оф. репе все должно сработать, однако теперь все то же самое, только жалуется на &str
123
#[derive(Clone, Debug, Serialize, PartialEq, Deserialize, Identifiable, Queryable, Insertable)] #[table_name="articles"] pub struct Article { pub id: i32, pub title: Option<String>, pub creation_date: Option<String>, pub last_edit_date: Option<String>, pub tags: Option<String>, pub content: Option<String>, pub published: bool, pub author_name: Option<String>, pub editor_name: Option<String>, }
Loo
мде
123
ну представь что он там есть, просто его уже вынес ради теста, о котором выше написал
Loo
#[derive(Template)] я имею ввиду
Loo
а не темплейт в файлике
123
ладно сейчас восстановлю и покажу
123
#[derive(Clone, Debug, Serialize, PartialEq, Deserialize, Identifiable, Queryable, Insertable, Template)] #[template(path = "article/get_article.html")] #[table_name="articles"] pub struct Article { pub id: i32, pub title: Option<String>, pub creation_date: Option<String>, pub last_edit_date: Option<String>, pub tags: Option<String>, pub content: Option<String>, pub published: bool, pub author_name: Option<String>, pub editor_name: Option<String>, }
123
да
Loo
я прост на винде ща. лень перезагружаться(
vladislav
http://sysdev.me/rust-is-pain/
123
UPD: Выяснил причину своей ошибки: в самом темплейте, во-первых, не указал все необходимые поля из структуры, во-вторых, т.к использую обертку из Option`а, нужно прямо внутри темплейта было unwrap`ить/проверять
Anonymous
Есть какие статьи годные почитать о футурках? Понял как они структурированы, но не как их параллельно выполнять
Anonymous
О
Anonymous
Спасибо
Berkus
там чувак экзекуторы футурок на стыке раста и glib делает, познавательно насчет внутренностей экзекьюторов как раз
Anonymous
То что надо
պլհկ
Toykio читай))
Vital
Подскажите, пожалуйста, в чём дело есть код сгенерированный свогером // send request Box::new( configuration.client.request(req).and_then(|res| { res.body().concat2() }) .map_err(|e| { Error::from(e) }) .and_then(|body| { let parsed: Result<::models::SemverTagSet, _> = serde_json::from_slice(&body); parsed.map_err(|e| Error::from(e)) }).map_err(|e| { Error::from(e) }) ) если клиент не запущен - как положено возвращает ошибку. если клиент запущен - висит и ничего не делает отправляю запрос курлом - всё ок спсибо
Anton
Можно как-то без матчинга сравнить значение внутри Option с другим значением? Пытаюсь делать вот так: .find(|player| player.socket == Some(socket)) но он, судя по всему, пытается мувнуть socket
Anton
Пробовал Some(&socket), но тогда типы не сходятся
Dmitry
а на чем .find вызываешь?
Dmitry
хотя, это не играет роли :)
Anton
На итераторе)
Dmitry
вообще я подозреваю что должен быть fold